Giter Club home page Giter Club logo

dancible's Introduction

Dancible

## What

In it's simplest form, a program to generate Dockerfiles that:

  • Install development Ansible
  • Pull down a repository containing an ansisble playbook
  • Uses the playbook to do all the heavy lifting and configure the container.

In the long term this will not only generate the Dockerfile but also build the docker image with the option to publish/upload to a docker registry.

How

Clone this repository and build

$ go build

Run the executable

$ ./dancible -help
    Usage of ./dancible:
      -branch="": a branch to be checked out from playbook repo containing 'site.yml'
      -name="": name of docker container to be produced
      -os="ubuntu": the base operating system to use in the container (ubuntu, centos, debian)
      -repo="": git URL to pull an ansible playbook and configure this container
      -version="latest": the version of the docker image to use

The only required parameter is the repository to pull down the ansible-playbook.

By default the Dockerfile will be created from the latest ubuntu image.

Example

Create a Dockerfile to deploy the (awesome) sovereign on Debian

$ ./dancible -os debian -repo [email protected]:al3x/sovereign.git

Why

I love Docker and I love Ansible.

It seemed silly not to use simple Ansible Playbooks (of which there are loads already created) to configure containers, hopefully avoiding large, complex Dockerfiles.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.