Public Repository

Last pushed: 3 months ago
Short Description
COMETS Analytics deployment environment
Full Description

Tags

base (applications/cbiitss/comets/comets-base.c7.dockerfile)

Description

This image contains the deployment environment for COMETS. The deployment procedure may look something like this:


  • Clone the comets/common resources repositories
    git clone https://github.com/CBIIT/nci-webtools-comets-analytics /tmp/comets_analytics
    git clone https://github.com/CBIIT/R-cometsAnalytics /tmp/comets_package
    git clone https://github.com/CBIIT/nci-analysis-tools-web-presence.git /tmp/web_presence

  • Copy the application files to a local deployment directory
    sudo mkdir -p /local/comets/app /local/comets/logs
    sudo chown -R `id -u`:`id -g` /local/comets
    cp -r /tmp/comets_analytics/comets/* /local/comets/app/
    cp -r /tmp/comets_package/* /local/comets/app/rcode/
    cp -r /tmp/web_presence/common /local/comets/app/

  • Pull the latest image and start a new container
    docker pull cbiitss/comets:base
    docker run \
    --detach \
    --name comets \
    --publish 8000:8000 \
    --user `id -u`:`id -g` \
    --volume /etc/localtime:/etc/localtime:ro \
    --volume /local/comets/:/deploy/ \
    cbiitss/comets
    
    docker exec --user root comets bash -c "R CMD INSTALL /deploy/app/rcode > /deploy/logs/InstallCometsPackage.log"
    docker restart comets

COMETS is now running on localhost:8100

Docker Pull Command
Owner
cbiitss