Skip to content

Files

Latest commit

 

History

History
 
 

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

pyinfra-docker Example

See deploy.py for example code to use pyinfra-docker.

Quickstart

You will need Vagrant installed.

# Bring up the virtual machine instances
vagrant up

# Install pyinfra-docker + pyinfra dependency
pip install -e '../'

# Deploy docker to each virtual machine
pyinfra @vagrant deploy.py

Tests

# Ensure we have test packages installed
pip install -e '../[test]'

# Dump vagrant SSH config
vagrant ssh-config > ssh_config

# Run pytest
pytest --ssh-config ssh_config tests.py