diff --git a/build.sh b/build.sh index dd76eb3..7704ea7 100644 --- a/build.sh +++ b/build.sh @@ -1,2 +1,3 @@ #!/usr/bin/bash docker build -f kopano.dockerfile -t kopano:1 . +# docker run -it kopano:1 bash \ No newline at end of file diff --git a/deploy-kopano.sh b/deploy-kopano.sh index 386a2c3..5d6875d 100644 --- a/deploy-kopano.sh +++ b/deploy-kopano.sh @@ -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 diff --git a/kopano.dockerfile b/kopano.dockerfile index 4ba9980..0cc8bd6 100644 --- a/kopano.dockerfile +++ b/kopano.dockerfile @@ -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"] \ No newline at end of file +# CMD ["/usr/sbin/kopano-server", "-F", "-c", "/etc/kopano/server.cfg"] +ENTRYPOINT [""] \ No newline at end of file diff --git a/postfix.dockerfile b/postfix.dockerfile deleted file mode 100644 index 6a26c84..0000000 --- a/postfix.dockerfile +++ /dev/null @@ -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"] \ No newline at end of file diff --git a/service/server/down b/service/server/down new file mode 100644 index 0000000..e69de29 diff --git a/service/server/run b/service/server/run new file mode 100644 index 0000000..3c62f86 --- /dev/null +++ b/service/server/run @@ -0,0 +1,3 @@ +#!/bin/bash -e + +exec /usr/sbin/kopano-server -c /etc/kopano/server.cfg 2>&1 \ No newline at end of file