streamlined deploy
This commit is contained in:
1
build.sh
1
build.sh
@@ -1,3 +1,2 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
docker build -f kopano.dockerfile -t kopano:1 .
|
docker build -f kopano.dockerfile -t kopano:1 .
|
||||||
# docker run -it kopano:1 bash
|
|
||||||
@@ -1,8 +1,12 @@
|
|||||||
|
apt-get update -y
|
||||||
|
DEBIAN_FRONTEND=noninteractive
|
||||||
|
TZ=Europe/Berlin
|
||||||
|
apt-get install -y tzdata z-push apache2
|
||||||
tar xzf core-11.0.2.50.507cbae-Ubuntu_20.04-amd64.tar.gz
|
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
|
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 ~/core-11.0.2.50.507cbae-Ubuntu_20.04-amd64/*.deb; do dpkg --unpack --no-triggers $F; done
|
||||||
for F in *.deb; do dpkg --unpack --no-triggers $F; done
|
for F in ~/webapp-6.0.0.57.1049268-Ubuntu_20.04-all/*.deb; do dpkg --unpack --no-triggers $F; done
|
||||||
cd ~/webapp-6.0.0.57.1049268-Ubuntu_20.04-all
|
apt-get install -f -y
|
||||||
for F in *.deb; do dpkg --unpack --no-triggers $F; done
|
# cleanup install
|
||||||
apt install -f -y
|
apt-get clean
|
||||||
apt install z-push -y
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache ~/.npm
|
||||||
|
|||||||
@@ -7,15 +7,13 @@ EXPOSE 2003
|
|||||||
EXPOSE 993
|
EXPOSE 993
|
||||||
EXPOSE 8443
|
EXPOSE 8443
|
||||||
# build section
|
# build section
|
||||||
RUN apt update -y
|
|
||||||
RUN DEBIAN_FRONTEND=noninteractive TZ=Europe/Berlin apt-get install -y tzdata
|
|
||||||
# kopano
|
# kopano
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
COPY ./etc /etc
|
|
||||||
COPY dist/core-11.0.2.50.507cbae-Ubuntu_20.04-amd64.tar.gz .
|
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 dist/webapp-6.0.0.57.1049268-Ubuntu_20.04-all.tar.gz .
|
||||||
COPY deploy-kopano.sh .
|
COPY deploy-kopano.sh .
|
||||||
RUN ./deploy-kopano.sh
|
RUN ./deploy-kopano.sh
|
||||||
|
COPY service /etc/service
|
||||||
# https://documentation.kopano.io/kopanocore_administrator_manual/configure_kc_components.html#configure-kopano-dagent-for-delivery-via-unix-socket
|
# 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
|
# create run scripts in etc/service
|
||||||
# CMD ["/usr/sbin/kopano-server", "-F", "-c", "/etc/kopano/server.cfg"]
|
# CMD ["/usr/sbin/kopano-server", "-F", "-c", "/etc/kopano/server.cfg"]
|
||||||
|
|||||||
Reference in New Issue
Block a user