Heckle1 / osc-docker-compose-runner

Docker-compose via UserData

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What

This script installs docker-ce on a Centos7 machine within Outscale Cloud. Make this machine as an Image. Now run any VM based on that Image Machine by giving a Dockerfile in the User-Data section (see ./dockerfiles for dockerfile examples). The dockefile given will be runned within the new VM.

Quick start

  1. Configure your machine IP under the [basic-instance] section in ./inventory file

  2. Run

ansible-playbook site.yml
  1. Create an Outscale Machine Image (OMI) from this Instance

  2. Run an Instance with the newly created OMI by passing docker-compose.yml file in the UserData Section

TODO / Why not

  • Be able to have multiple docker-compose
  • Open machine ports after parsing the docker-compose file

Note

  • Logs are available in the console-output.

About

Docker-compose via UserData

License:BSD 2-Clause "Simplified" License


Languages

Language:Shell 100.0%