added okg unpack
This commit is contained in:
1
build.sh
1
build.sh
@@ -1,2 +1,3 @@
|
||||
#!/usr/bin/bash
|
||||
docker build -f kopano.dockerfile -t kopano:1 .
|
||||
# docker run -it kopano:1 bash
|
||||
@@ -1,2 +1,8 @@
|
||||
tar xzf core-11.0.2.50.507cbae-Ubuntu_20.04-amd64.tar.gz
|
||||
tar xzf webapp-6.0.0.57.1049268-Ubuntu_20.04-all.tar.gz
|
||||
cd ~/xzf core-11.0.2.50.507cbae-Ubuntu_20.04-amd64
|
||||
for F in *.deb; do dpkg --unpack --no-triggers $F; done
|
||||
cd ~/webapp-6.0.0.57.1049268-Ubuntu_20.04-all
|
||||
for F in *.deb; do dpkg --unpack --no-triggers $F; done
|
||||
apt install -f -y
|
||||
apt install z-push -y
|
||||
|
||||
@@ -2,17 +2,21 @@
|
||||
FROM tozd/runit:ubuntu-focal
|
||||
# declaration section
|
||||
ARG MAIL_DOMAIN=zntrl.de
|
||||
EXPOSE 80 2003
|
||||
EXPOSE 80 443
|
||||
EXPOSE 2003
|
||||
EXPOSE 993
|
||||
EXPOSE 8443
|
||||
# build section
|
||||
RUN apt update -y
|
||||
RUN DEBIAN_FRONTEND=noninteractive TZ=Europe/Berlin apt-get install -y tzdata
|
||||
# kopano
|
||||
WORKDIR /root
|
||||
COPY ./etc /etc
|
||||
COPY dist/core-11.0.2.50.507cbae-Ubuntu_20.04-amd64.tar.gz .
|
||||
COPY dist/webapp-6.0.0.57.1049268-Ubuntu_20.04-all.tar.gz .
|
||||
COPY deploy-kopano.sh .
|
||||
RUN ./deploy-kopano.sh
|
||||
# https://documentation.kopano.io/kopanocore_administrator_manual/configure_kc_components.html#configure-kopano-dagent-for-delivery-via-unix-socket
|
||||
# create run scripts in etc/service
|
||||
COPY ./etc etc
|
||||
# CMD ["/usr/sbin/kopano-server", "-F", "-c", "/etc/kopano/server.cfg"]
|
||||
# CMD ["/usr/sbin/kopano-server", "-F", "-c", "/etc/kopano/server.cfg"]
|
||||
ENTRYPOINT [""]
|
||||
@@ -1,8 +0,0 @@
|
||||
FROM ubuntu:20.04
|
||||
# declaration section
|
||||
ARG MAIL_DOMAIN=zntrl.de
|
||||
EXPOSE 25/tcp 465/tcp 587/tcp
|
||||
# build section
|
||||
RUN apt update -y
|
||||
VOLUME ["/var/lib/postfix"]
|
||||
CMD ["postfix"]
|
||||
0
service/server/down
Normal file
0
service/server/down
Normal file
3
service/server/run
Normal file
3
service/server/run
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
exec /usr/sbin/kopano-server -c /etc/kopano/server.cfg 2>&1
|
||||
Reference in New Issue
Block a user