diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..84f7e35 --- /dev/null +++ b/build.sh @@ -0,0 +1,9 @@ +#!/usr/bin/bash +DOCKER_BUILDKIT=1 docker build -f kopano.dockerfile -t kopano . +docker container prune -f +docker create --name kopano kopano:latest +docker export kopano | docker import - kopano:squashed +# docker run -d --name kopano kopano:squashed +# docker exec -it kopano bash +# docker stop kopano +# docker rm kopano \ No newline at end of file diff --git a/deploy-kopano.sh b/deploy-kopano.sh index 6d09b1a..d4fbcc4 100644 --- a/deploy-kopano.sh +++ b/deploy-kopano.sh @@ -1,6 +1,6 @@ -apt-get update -y -DEBIAN_FRONTEND=noninteractive -TZ=Europe/Berlin +apt-get update +export DEBIAN_FRONTEND=noninteractive +export 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 webapp-6.0.0.57.1049268-Ubuntu_20.04-all.tar.gz diff --git a/etc-baloghs/build.sh b/etc-baloghs/build.sh deleted file mode 100644 index dd76eb3..0000000 --- a/etc-baloghs/build.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/bash -docker build -f kopano.dockerfile -t kopano:1 . diff --git a/kopano.dockerfile b/kopano.dockerfile index 7bcbd65..484ed2c 100644 --- a/kopano.dockerfile +++ b/kopano.dockerfile @@ -1,24 +1,47 @@ -# FROM ubuntu:20.04 -FROM tozd/runit:ubuntu-focal -# build s6 process manager -# build postfix -# build postgres -# build apache -# build z-push -# build kopano -WORKDIR /root -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 -COPY service /etc/service +# syntax=docker/dockerfile:1.3-labs +FROM ubuntu:20.04 +# install apt packages +RUN <