1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-11 16:32:59 +00:00

Check with travis if containers start (#113)

* move .env creation into install
rerun check-scripts after creation as well
* update docker-compose
* add simple test if containers start up
* redirect output of compose stop
This commit is contained in:
Felix Bartels
2019-03-23 08:36:55 +01:00
committed by GitHub
parent 29839286ad
commit 6aff14c021
5 changed files with 76 additions and 13 deletions
+11
View File
@@ -0,0 +1,11 @@
FROM alpine:3.8
ENV DOCKERIZE_VERSION v0.6.1
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz
COPY test.sh /start.sh
CMD ["/start.sh"]
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
# waits for key events in various containers
# e.g. kopano_server:236 signals succesful start of kopano-server process
exec dockerize \
-wait file://var/run/kopano/grapi/notify.sock \
-wait file://var/run/kopano/server.sock \
-wait http://kopano_konnect:8777/.well-known/openid-configuration \
-wait tcp://"${KCCONF_SERVER_MYSQL_HOST}":3306 \
-wait tcp://kopano_dagent:2003 \
-wait tcp://kopano_gateway:143 \
-wait tcp://kopano_ical:8080 \
-wait tcp://kopano_konnect:8778 \
-wait tcp://kopano_server:236 \
-wait tcp://kopano_server:237 \
-wait tcp://kopano_web:2015 \
-wait tcp://kopano_webapp:80 \
-wait tcp://kopano_zpush:80 \
-timeout 120s
+16
View File
@@ -0,0 +1,16 @@
version: "3.5"
services:
test:
build:
context: tests/startup-test
networks:
- kopano-net
- ldap-net
- web-net
volumes:
- kopanodata/:/kopano/data
- kopanossl/:/kopano/ssl
- kopanosocket/:/run/kopano
environment:
- KCCONF_SERVER_MYSQL_HOST=${MYSQL_HOST}