Loading cog/Dockerfile +2 −2 Original line number Diff line number Diff line Loading @@ -90,5 +90,5 @@ VOLUME $COG_INSTALL_DIR COPY scripts/ /usr/local/bin/ COPY conf/supervisord.cog.conf /etc/supervisor/conf.d/supervisord.cog.conf ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] # override CMD options at run time # will override these CMD options at run time CMD ["localhost", "false", "true"] cog/scripts/docker-entrypoint.sh +1 −2 Original line number Diff line number Diff line Loading @@ -31,10 +31,9 @@ sed -i 's/PRODUCTION_SERVER = True/PRODUCTION_SERVER = False/g' $COG_CONFIG_DIR/ # start django server in virtual environment # or keep the container running if [ $RUNSERVER == "true" ]; then echo "Starting CoG server through supervisor daemon" # start supervisor --> cog supervisord -c /etc/supervisord.conf sleep 2 tail -f /tmp/cog.log else tail -f /dev/null fi docker-stack.yml +5 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,11 @@ services: - COG_CONFIG_DIR=/usr/local/cog/cog_config - ESGF_HOSTNAME deploy: mode: replicated replicas: 1 restart_policy: condition: on-failure max_attempts: 0 placement: constraints: [node.labels.esgf_type == front_node] Loading Loading
cog/Dockerfile +2 −2 Original line number Diff line number Diff line Loading @@ -90,5 +90,5 @@ VOLUME $COG_INSTALL_DIR COPY scripts/ /usr/local/bin/ COPY conf/supervisord.cog.conf /etc/supervisor/conf.d/supervisord.cog.conf ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] # override CMD options at run time # will override these CMD options at run time CMD ["localhost", "false", "true"]
cog/scripts/docker-entrypoint.sh +1 −2 Original line number Diff line number Diff line Loading @@ -31,10 +31,9 @@ sed -i 's/PRODUCTION_SERVER = True/PRODUCTION_SERVER = False/g' $COG_CONFIG_DIR/ # start django server in virtual environment # or keep the container running if [ $RUNSERVER == "true" ]; then echo "Starting CoG server through supervisor daemon" # start supervisor --> cog supervisord -c /etc/supervisord.conf sleep 2 tail -f /tmp/cog.log else tail -f /dev/null fi
docker-stack.yml +5 −0 Original line number Diff line number Diff line Loading @@ -63,6 +63,11 @@ services: - COG_CONFIG_DIR=/usr/local/cog/cog_config - ESGF_HOSTNAME deploy: mode: replicated replicas: 1 restart_policy: condition: on-failure max_attempts: 0 placement: constraints: [node.labels.esgf_type == front_node] Loading