Monday, April 24, 2017

vagga

"Vagga is a tool to create development environments. In particular it is able to:
  • 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
All this seamlessly works using linux namespaces (or containers).

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”
To run command just run vagga command_name."

https://vagga.readthedocs.io/en/latest/info.html 

https://news.ycombinator.com/item?id=14176191 

No comments:

Post a Comment