Commit 0645f388 authored by Luca Cinquini's avatar Luca Cinquini
Browse files

Working on cog initialization.

parent 23819e69
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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"]
+1 −2
Original line number Diff line number Diff line
@@ -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
+5 −0
Original line number Diff line number Diff line
@@ -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]