Created
October 7, 2016 20:53
-
-
Save cleac/f021eebd5f10e1dee687bfbc7fad6371 to your computer and use it in GitHub Desktop.
Example of Vagga.yaml with MongoDB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
containers: | |
ubuntu: | |
setup: | |
- !Ubuntu trusty | |
- !UbuntuUniverse | |
mongodb: | |
setup: | |
- !Container ubuntu | |
- !AptTrust keys: [EA312927] | |
- !UbuntuRepo | |
url: http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 | |
suite: multiverse | |
components: [] | |
- !Install | |
- mongodb-org=3.2.6 | |
- mongodb-org-server=3.2.6 | |
- mongodb-org-shell=3.2.6 | |
- mongodb-org-mongos=3.2.6 | |
- mongodb-org-tools=3.2.6 | |
- !EnsureDir /data/db | |
environ: | |
MONGO_ARGS: "" | |
volumes: | |
/data/db: !Tmpfs | |
size: 100M | |
mode: 0o700 | |
base: | |
setup: | |
- !Container ubuntu | |
- !PipConfig { dependencies: true } | |
- !Py3Requirements requirements.txt | |
app-devel: | |
setup: | |
- !Container base | |
- !Depends setup.py | |
- !Sh python3 setup.py develop | |
environ: | |
CONFIG: config/development.ini | |
PSERVE_ARGS: "" | |
app-test: | |
setup: | |
- !Container base | |
- !Py3Install | |
- nose | |
- coverage | |
- !Sh python3 setup.py develop | |
commands: | |
run-devel: !Supervise | |
description: Run server in developer config | |
mode: stop-on-failure | |
children: | |
mongo: !Command | |
description: Run mongodb server | |
container: mongodb | |
run: mongod $(MONGO_ARGS) | |
serve: !Command | |
description: run server. You must specify config file | |
container: app-devel | |
run: pserve $CONFIG $PSERVE_ARGS | |
bash: !Command | |
description: Run bash shell inside app container | |
container: app-devel | |
run: bash | |
test: !Command | |
description: Run tests on project. | |
container: app-test | |
run: python3 setup.py test -q | |
coverage: !Command | |
description: Expose test coverage information | |
container: app-test | |
run: nosetests --cover-package=thymae --cover-erase --with-coverage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment