Skip to content

Commit 9c3d22e

Browse files
committed
Update docker cron config
1 parent 9839792 commit 9c3d22e

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

docker-dev.cfg

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ zope-conf-additional =
5252
${zope-conf:zamqp}
5353

5454
environment-vars +=
55-
ACTIVE_BIGBANG True
56-
PLONE_EXTENSION_IDS plonetheme.classic:default, plonetheme.sunburst:default, Products.MeetingCommunes:zcity
57-
DEFAULT_LANGUAGE fr
55+
environment-vars += ${bigbang:environment-vars}
5856

5957
[instance-debug]
6058
blob-storage = /data/blobstorage

docker/docker-compose.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323
environment:
2424
- HOSTNAME=zeo
2525
volumes:
26-
- ./data/:/data
26+
- data:/data
2727
- tmp:/tmp
2828
- vartmp:/var/tmp
2929
networks:
@@ -51,7 +51,7 @@ services:
5151
- HOSTNAME=instance1
5252
- PLONE_PATH=demo
5353
volumes:
54-
- ./data/:/data
54+
- data:/data
5555
- tmp:/tmp
5656
- vartmp:/var/tmp
5757
healthcheck:
@@ -77,7 +77,7 @@ services:
7777
- CLUSTER=iadelib_pm42
7878
- HOSTNAME=worker-cron
7979
volumes:
80-
- ./data/:/data
80+
- data:/data
8181
- tmp:/tmp
8282
- vartmp:/var/tmp
8383
healthcheck:
@@ -101,7 +101,7 @@ services:
101101
healthcheck:
102102
test: "curl -f localhost:8089/$$PLONE_PATH/@@ok"
103103
volumes:
104-
- ./data/:/data
104+
- data:/data
105105
- tmp:/tmp
106106
- vartmp:/var/tmp
107107
labels:
@@ -134,14 +134,15 @@ services:
134134
healthcheck:
135135
test: "curl -f localhost:8286/$$PLONE_PATH/@@ok"
136136
volumes:
137-
- ./data/:/data
137+
- data:/data
138138
- tmp:/tmp
139139
- vartmp:/var/tmp
140140
labels:
141141
SERVICE_NAME: "worker-cron"
142142
maintenance:
143143
image: imiobe/iadelib:demo-latest
144-
command: maintenance
144+
# command: maintenance
145+
entrypoint: bash
145146
ports:
146147
- "20089:8080"
147148
networks:
@@ -160,14 +161,15 @@ services:
160161
healthcheck:
161162
test: "curl -f localhost:8080/$$PLONE_PATH/@@ok"
162163
volumes:
163-
- ./data/:/data
164+
- data:/data
164165
- tmp:/tmp
165166
- vartmp:/var/tmp
166167
labels:
167168
SERVICE_NAME: "maintenance"
168169
volumes:
169170
tmp:
170171
vartmp:
172+
data:
171173

172174
networks:
173175
delib_internal:

docker/docker-entrypoint.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ function wait_for_cron() {
1818
echo "Waiting for cron"
1919
URL="worker-cron:8087/$PLONE_PATH"
2020
CURL="curl --write-out %{http_code} -so /dev/null $URL/@@ok"
21-
MAX_TRIES=240
22-
INTERVAL=1
21+
MAX_TRIES=250
22+
INTERVAL=5
2323
set +e
2424
SECONDS=0
2525
response="$($CURL)"
2626
tries=1
2727
while [[ $response != "200" && $tries -lt $MAX_TRIES ]]
2828
do
29+
echo "Waiting for cron"
2930
sleep $INTERVAL
3031
response=$($CURL)
3132
((tries+=1))
@@ -72,7 +73,7 @@ fi
7273
case "$1" in
7374
"maintenance")
7475
shift
75-
echo "Executing maintenance command : $@"
76+
echo "Executing maintenance command : '$*'"
7677
exec "$@"
7778
;;
7879
*)

scripts/copy-data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ for i in "$@"; do
44
case $i in
55
-s=* | --server=*)
66
echo "source found ${i#*=}"
7-
SOURCE_HOST="${i#*=}.imio.be"
7+
SOURCE_HOST="${i#*=}"
88
shift # past argument=value
99
;;
1010
-b=* | --buildout=*)

0 commit comments

Comments
 (0)