Deploy Docker to Mesosphere, Compose and many others
308
Depcon makes managing clusters that run docker containers a breeze. It offers the ability to define environments such as test, pre-prod, production against Marathon (initial release), Kubernetes and Amazon ECS.
Some key features of Depcon are:
${PARAMS} can be placed in compose filesNormally when depcon is being used outside of docker it requires you to build a config file (via its wizard) containing information about your deployment environments. This workflow is slightly different when running within Docker.
Currently depcon in docker only supports Marathon deployments. Running depcon for compose would require us to have docker-in-docker setup. These docs will be updated in the future with instructions on how to accomplish that.
Inline
docker run -e DEPCON_MODE=marathon -e MARATHON_HOST=http://hostname:8080 pacesys/depcon
Environment File
$ vi myenv
DEPCON_MODE=marathon
MARATHON_HOST=http://hostname:8080
MARATHON_USER=someuser
MARATHON_PASS=pass
$ docker run --env-file=myenv pacesys/depcon app list
docker run -v $HOME/.depcon:/root/.depcon pacesys/depcon
# Run depcon in the background capture cid, add alias
$ cid=$(docker run -itd -v $PWD:/data pacesys/depcon)
$ alias depcon="docker exec -it ${cid} depcon"
# Use depcon like it was native
$ depcon app list
$ depcon app create /data/something.yml
$ .... etc
This quick tutorial assumes you've read the docs on http://github.com/gondor/depcon. Lets assume we have a deployment descriptor we want to deploy called frontend-apache.yml . In summary we need to map the directory this file is into the container.
For this exercise lets assume the frontend-apache.yml descriptor is in the current host directory
docker run -v $PWD:/data --env-file=myenv pacesys/depcon app create /data/frontend-apache.yml
Visit the Github repository for additional documentation and info at: https://github.com/gondor/depcon
Content type
Image
Digest
Size
6.2 MB
Last updated
over 10 years ago
docker pull pacesys/depcon