File tree Expand file tree Collapse file tree 7 files changed +12
-12
lines changed Expand file tree Collapse file tree 7 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -135,4 +135,4 @@ ENV ZEO_ADDRESS=zeo:8100 \
135
135
136
136
EXPOSE 8081
137
137
ENTRYPOINT ["/plone/docker-entrypoint.sh"]
138
- CMD ["instance "]
138
+ CMD [""]
Original file line number Diff line number Diff line change @@ -96,4 +96,4 @@ ENV ZEO_ADDRESS=zeo:8100 \
96
96
97
97
EXPOSE 8081
98
98
ENTRYPOINT ["/plone/docker-entrypoint.sh"]
99
- CMD ["instance "]
99
+ CMD [""]
Original file line number Diff line number Diff line change @@ -59,4 +59,4 @@ RUN sed -i "s/\${buildout:directory}\/var/\/data/g" *.cfg \
59
59
USER imio
60
60
EXPOSE 8081
61
61
ENTRYPOINT ["/plone/docker-entrypoint.sh"]
62
- CMD ["instance "]
62
+ CMD [""]
Original file line number Diff line number Diff line change @@ -94,4 +94,4 @@ ENV ZEO_ADDRESS=zeo:8100 \
94
94
95
95
EXPOSE 8081
96
96
ENTRYPOINT ["/plone/docker-entrypoint.sh"]
97
- CMD ["instance "]
97
+ CMD [""]
Original file line number Diff line number Diff line change @@ -142,7 +142,6 @@ services:
142
142
# SERVICE_NAME: "worker-cron"
143
143
maintenance :
144
144
image : imiobe/iadelib:dev
145
- command : maintenance
146
145
ports :
147
146
- " 20089:8080"
148
147
networks :
Original file line number Diff line number Diff line change @@ -148,8 +148,6 @@ services:
148
148
149
149
maintenance :
150
150
image : imiobe/iadelib:demo-latest
151
- # command: maintenance
152
- entrypoint : bash
153
151
ports :
154
152
- " 20089:8080"
155
153
networks :
Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ function wait_for_cron() {
18
18
INTERVAL=5
19
19
set +e
20
20
SECONDS=0
21
- response=" $( $CURL ) "
22
- tries=1
21
+ response=" 404 "
22
+ tries=0
23
23
while [[ $response != " 200" && $tries -lt $MAX_TRIES ]]
24
24
do
25
- echo " Waiting for cron"
26
25
sleep $INTERVAL
26
+ echo " Waiting for cron"
27
27
response=$( $CURL )
28
28
(( tries+= 1 ))
29
29
done
@@ -54,19 +54,22 @@ function start() {
54
54
55
55
trap _stop SIGTERM SIGINT
56
56
$cmd start
57
- # ensure file xists otherwise logtail returns 1
57
+ # ensure file exists otherwise logtail returns 1
58
58
touch " /data/log/$HOSTNAME .log"
59
59
exec " $cmd " " logtail"
60
60
}
61
61
62
62
setup " $1 "
63
63
64
64
PRIORIY=" instance-cron instance-debug maintenance zeoserver"
65
- if [[ " instance" == " $1 " || ! $PRIORIY == * " $1 " * ]]; then
65
+ if [[ " instance" == " $1 " || ( ! $PRIORIY == * " $1 " * && $# -gt 0 ) ]]; then
66
66
wait_for_cron " $1 "
67
67
fi
68
68
69
69
case " $1 " in
70
+ " " )
71
+ exit 0
72
+ ;;
70
73
" maintenance" )
71
74
shift
72
75
echo " Executing maintenance command : '$* '"
You can’t perform that action at this time.
0 commit comments