Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.29 KB

README.md

File metadata and controls

53 lines (33 loc) · 1.29 KB

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