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 \
135135
136136EXPOSE 8081
137137ENTRYPOINT ["/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 \
9696
9797EXPOSE 8081
9898ENTRYPOINT ["/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 \
5959USER imio
6060EXPOSE 8081
6161ENTRYPOINT ["/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 \
9494
9595EXPOSE 8081
9696ENTRYPOINT ["/plone/docker-entrypoint.sh"]
97- CMD ["instance "]
97+ CMD [""]
Original file line number Diff line number Diff line change @@ -142,7 +142,6 @@ services:
142142# SERVICE_NAME: "worker-cron"
143143 maintenance :
144144 image : imiobe/iadelib:dev
145- command : maintenance
146145 ports :
147146 - " 20089:8080"
148147 networks :
Original file line number Diff line number Diff line change @@ -148,8 +148,6 @@ services:
148148
149149 maintenance :
150150 image : imiobe/iadelib:demo-latest
151- # command: maintenance
152- entrypoint : bash
153151 ports :
154152 - " 20089:8080"
155153 networks :
Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ function wait_for_cron() {
1818 INTERVAL=5
1919 set +e
2020 SECONDS=0
21- response=" $( $CURL ) "
22- tries=1
21+ response=" 404 "
22+ tries=0
2323 while [[ $response != " 200" && $tries -lt $MAX_TRIES ]]
2424 do
25- echo " Waiting for cron"
2625 sleep $INTERVAL
26+ echo " Waiting for cron"
2727 response=$( $CURL )
2828 (( tries+= 1 ))
2929 done
@@ -54,19 +54,22 @@ function start() {
5454
5555 trap _stop SIGTERM SIGINT
5656 $cmd start
57- # ensure file xists otherwise logtail returns 1
57+ # ensure file exists otherwise logtail returns 1
5858 touch " /data/log/$HOSTNAME .log"
5959 exec " $cmd " " logtail"
6060}
6161
6262setup " $1 "
6363
6464PRIORIY=" instance-cron instance-debug maintenance zeoserver"
65- if [[ " instance" == " $1 " || ! $PRIORIY == * " $1 " * ]]; then
65+ if [[ " instance" == " $1 " || ( ! $PRIORIY == * " $1 " * && $# -gt 0 ) ]]; then
6666 wait_for_cron " $1 "
6767fi
6868
6969case " $1 " in
70+ " " )
71+ exit 0
72+ ;;
7073" maintenance" )
7174 shift
7275 echo " Executing maintenance command : '$* '"
You can’t perform that action at this time.
0 commit comments