No description
Find a file
2017-09-25 17:03:46 -04:00
roles/flask Initial 2017-09-07 11:12:48 -07:00
.gitignore Initial 2017-09-07 11:12:48 -07:00
.travis.yml Install Ansible 2017-09-18 11:18:37 -04:00
ansible-requirements.txt Initial 2017-09-07 11:12:48 -07:00
ansible.cfg Initial 2017-09-07 11:12:48 -07:00
container.yml From 'fest' to 'world' 2017-09-18 10:15:14 -04:00
deploy.yml Set deployment_path 2017-09-25 17:03:46 -04:00
helloworld.py From 'fest' to 'world' 2017-09-18 10:15:14 -04:00
meta.yml Tags 2017-09-18 11:07:03 -04:00
README.md Moves buttons 2017-09-18 10:56:34 -04:00
requirements.txt Initial 2017-09-07 11:12:48 -07:00
requirements.yml Initial 2017-09-07 11:12:48 -07:00
run-tests.yml Run tests on local Docker host. 2017-09-07 11:24:52 -07:00

Build Status

Hello World

A simple example project for Ansible Container.

Prerequisites

Run it!

The following script will download this project from Galaxy, build the container, and run it locally, exposing the flask server on host port 4000:

#!/bin/bash
# Create a new directory, and set it as your working dir
mkdir hello-world
cd hello-world 

# Download the project
ansible-container init ansible.hello-world

# Build the container
ansible-container build 

# Run hello world
ansible-container run

# Open a browser and load http://localhost:4000
open http://localhost:4000

Deploy It!

TODO

Tear it down

When you're ready to remove the hello-world containers and images from your local Docker daemon, run the following from within the hello-world directory:

ansible-container destroy

Authors

Taken from j00bar's AnsibleFest San Francisco 2017 presentation. Thanks @j00bar!

License

Apache V2