File tree Expand file tree Collapse file tree 6 files changed +17
-7
lines changed
ansible/development/group_vars
production/docker/headless Expand file tree Collapse file tree 6 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ inasafe:
2020 depth : 1
2121
2222inasafe_headless_worker :
23- command : /docker-entrypoint.sh dev
23+ command : dev
2424 # Settings to specify broker url manually
2525 broker_url :
2626 # Optional settings to specify path mount
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ inasafe:
2020 depth : 1
2121
2222inasafe_headless_worker :
23- command : /docker-entrypoint.sh prod inasafe-headless-worker
23+ command : prod inasafe-headless-worker
2424 environment :
2525 task_always_eager : " ${TASK_ALWAYS_EAGER}"
2626 on_travis : " ${ON_TRAVIS}"
Original file line number Diff line number Diff line change 11# --------- Generic stuff all our Dockerfiles should start with so we get caching ------------
2- FROM kartoza/qgis-desktop:LTR
2+ FROM kartoza/qgis-desktop:2.18
33
44RUN apt-get -y update; apt-get -y --force-yes install pwgen git inotify-tools
55
@@ -37,4 +37,5 @@ ADD docker-entrypoint.sh /docker-entrypoint.sh
3737RUN chmod +x /docker-entrypoint.sh
3838
3939# Environment variable
40- CMD ["/docker-entrypoint.sh" , "prod" , "inasafe-headless-worker" ]
40+ ENTRYPOINT ["/docker-entrypoint.sh" ]
41+ CMD ["prod" , "inasafe-headless-worker" ]
Original file line number Diff line number Diff line change @@ -13,3 +13,5 @@ if [ $# -eq 2 ] && [ $1 = "prod" ] && [ $2 = "inasafe-headless-worker" ]; then
1313elif [ $# -eq 1 ] && [ $1 = " dev" ]; then
1414 /usr/sbin/sshd -D
1515fi
16+
17+ exec " $@ "
Original file line number Diff line number Diff line change 11# --------- Generic stuff all our Dockerfiles should start with so we get caching ------------
2- FROM kartoza/qgis-desktop:LTR
2+ FROM kartoza/qgis-desktop:2.18
33
44RUN apt-get -y update; apt-get -y --force-yes install pwgen git inotify-tools
55
@@ -33,4 +33,5 @@ ARG INASAFE_HEADLESS_TAG=develop
3333RUN git clone --branch ${INASAFE_HEADLESS_TAG} --depth 1 https://github.com/inasafe/inasafe-headless.git source
3434RUN ln -s source/src/headless headless
3535
36- CMD ["/docker-entrypoint.sh" ]
36+ ENTRYPOINT ["/docker-entrypoint.sh" ]
37+ CMD ["prod" , "inasafe-headless-worker" ]
Original file line number Diff line number Diff line change 88
99cp -n /home/app/headless/celeryconfig_sample.py /home/app/headless/celeryconfig.py
1010
11- /usr/local/bin/celery -A headless.celery_app worker -l info -Q inasafe-headless -n inasafe-headless.%h
11+ if [ $# -eq 2 ] && [ $1 = " prod" ] && [ $2 = " inasafe-headless-worker" ]; then
12+ /usr/local/bin/celery -A headless.celery_app worker -l info -Q inasafe-headless -n inasafe-headless.%h
13+ elif [ $# -eq 1 ]; then
14+ /usr/local/bin/celery -A headless.celery_app worker -l info -Q inasafe-headless -n inasafe-headless.%h
15+ fi
16+
17+ exec " $@ "
You can’t perform that action at this time.
0 commit comments