* CoG will be accessible at the URL: http://${ESG_HOSTNAME}:8000/
To start the container standalone, but using source code from a local directory, for development purposes::
docker run -ti -p 8000:8000 --name cog -v ${COG_INSTALL_DIR}:/usr/local/cog/cog_install esgfhub/esgf-cog:${ESGF_VERSION}
* for example ${COG_INSTALL_DIR}=/Users/cinquini/Documents/workspace/cog
* will again use hostname=localhost
* will again run CoG through the Django server
To run CoG as part of the ESGF software stack, with postgres database and Apache front-end::
# initialize the $ESGF_CONFIG directory containing all ESGF node configuration
cd .../esgf-docker
scripts/esgf_node_init.sh
# start CoG and its dependency containers
docker-compose up esgf-cog esgf-postgres esgf-httpd
* will run CoG within the Apache httpd server (and container) through mod_wsgi
* the cog container is kept running as a data container, exposing the CoG source directory *COG_INSTALL_DIR=/usr/local/cog/cog_install* to the httpd container
After the first startup, the containers can be restarted without re-initializing them as such::