- Build container and run program with single command, right after “git pull”
- Automatically rebuild container if project dependencies change
- Run multiple processes (e.g. application and database) with single command
- Execute network tolerance tests
Let’s make config for hello-world flask application. To start you need to put following in
vagga.yaml:containers:
flask: ❶
setup:
- !Ubuntu xenial ❷
- !UbuntuUniverse ❸
- !Install [python3-flask] ❹
commands:
py3: !Command ❺
container: flask ❻
run: python3 ❼
- ❶ – create a container “flask”
- ❷ – install base image of ubuntu
- ❸ – enable the universe repository in ubuntu
- ❹ – install flask from package (from ubuntu universe)
- ❺ – create a simple command “py3”
- ❻ – run command in container “flask”
- ❼ – the command-line is “python3”
vagga command_name."https://vagga.readthedocs.io/en/latest/info.html https://news.ycombinator.com/item?id=14176191
No comments:
Post a Comment