Upgrade to Pro — share decks privately, control downloads, hide ads and more …

An Early Look at Ansible Container

An Early Look at Ansible Container

Ansible Container is a tool for building Docker images and orchestrating containers using Ansible playbooks. Learn about building and maintaining your containers using Ansible. End the bash madness of command && command && command (and so on). Enable automation of the entire container build, deployment, and management process. Get an early look at this fast moving project!

Keith Resar

April 20, 2017
Tweet

More Decks by Keith Resar

Other Decks in Technology

Transcript

  1. AN EARLY LOOK AT ANSIBLE CONTAINER END THE BASH MADNESS

    OF COMMAND && COMMAND && COMMAND. ENABLE AUTOMATION OF THE ENTIRE CONTAINER BUILD, DEPLOYMENT, AND MANAGEMENT PROCESS. Keith Resar @KeithResar
  2. @KeithResar Keith Resar: Bio Wear many hats @KeithResar [email protected] Coder

    Open Source Contributor and Advocate Infrastructure Architect
  3. APPLY THE POWER OF ANSIBLE AND REUSE YOUR EXISTING ANSIBLE

    CONTENT FOR YOUR CONTAINERIZED ECOSYSTEM.
  4. FROM node:7.9.0 RUN mkdir -p /app WORKDIR /app ARG NODE_ENV

    dev ENV NODE_ENV $NODE_ENV COPY package.json /app/ RUN npm install && npm cache clean COPY . /app/ CMD [ "npm", "start" ] DOCKERFILE
  5. ANSIBLE CONTAINER’S PROMISE • Build container images and orchestrate them

    using only Ansible playbooks • Describe your application in a single YAML file • See Ansible roles that make up your container images
  6. BUT WAIT, THERE’S MORE Everything Ansible brings to orchestrating your

    infrastructure can now be applied to the image build process. • Use templates • Copy files • Drop in encrypted data • Handle errors • Add conditionals
  7. SCOPE • Definition (instead of Dockerfile) • Build (instead of

    docker build) • Run (instead of docker-compose run) • Deploy (to cloud env)
  8. EARLY REACTIONS • Many exceptions, not meaningful tracebacks • Build

    process is still fragile • Layering roles to build images is cool