-
Notifications
You must be signed in to change notification settings - Fork 17
CCDC & Docker
TBD
Executing the various docker run commands for the CCDC Docker images will automatically download the latest published images for you. However, you may want to download the images without actually running CCDC (or shelling into the images, etc.). In that case, you may download the CCDC Docker image of interest with the following command:
$ docker pull usgseros/debian-c-ccdcor
$ docker pull usgseros/ubuntu-c-ccdcIn some cases, such as testing new changes to CCDC, you may want to build a local Docker image instead of pulling one down from Dockerhub.
The following top-level project make target will build all supported Docker images for CCDC:
$ make dockerYou may build individual images with the following commands:
(cd docker && make debian-c-ccdc)(cd docker && make ubuntu-c-ccdc)
If you have permissions to publish an updated CCDC Docker image, you may do so with the following target:
$ make dockerhubTBD
The CCDC Docker images use the ENTRYPOINT directive in their Dockerfiles and as such cannot be used like Docker images which just use the CMD directive (e.g., docker run -i ... /bin/bash).
Here is the command to use when you want to override the CCDC Docker image entry point with something other than what is was built with, e.g., /bin/bash:
$ docker run -i -t --entrypoint=/bin/bash usgseros/debian-c-ccdc -sThat being said, there are convenience maketargets for running a bash in the latest CCDC docker image of each supported distro, e.g.:
make ubuntu-bashmake debian-bash