Coder Social home page Coder Social logo

docker_ansible's Introduction

Get Docker

Step through the getting started guide to install docker (note that you'll need docker toolbox if you don't have windows 10) here:

https://docs.docker.com/engine/getstarted/

This guide will also walk you through some basic docker commands and have you run a hello world docker image.

Building and using this image

Pull this repo. Run docker build to create the image. This will take a few minutes to complete. -t tells docker to give the finished image a name for ease of use.

docker build -t ansible-dev .

You should now have an image called 'ansible-dev' that you can work with. Verify this with docker images:

$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
ansible-dev         latest              68dd3ba11803        9 seconds ago       472.1 MB

This image will now be a basic environment that you can launch whenever you want to run ansible.

docker run --rm -it -v `pwd`:/working ansible-dev

Now go into your working directory and you're all set.

The /working directory is a mount inside of the docker container of the directory from which the container was started.

➜  docker run --rm -it -v `pwd`:/working ansible-dev

running egg_info
creating lib/ansible.egg-info
writing requirements to lib/ansible.egg-info/requires.txt
writing lib/ansible.egg-info/PKG-INFO
writing top-level names to lib/ansible.egg-info/top_level.txt
writing dependency_links to lib/ansible.egg-info/dependency_links.txt
writing manifest file 'lib/ansible.egg-info/SOURCES.txt'
reading manifest file 'lib/ansible.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'v2'
no previously-included directories found matching 'docsite'
no previously-included directories found matching 'ticket_stubs'
no previously-included directories found matching 'packaging'
no previously-included directories found matching 'test'
no previously-included directories found matching 'hacking'
no previously-included directories found matching 'lib/ansible/modules/core/.git'
no previously-included directories found matching 'lib/ansible/modules/extras/.git'
writing manifest file 'lib/ansible.egg-info/SOURCES.txt'

Setting up Ansible to run out of checkout...

PATH=/ansible/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PYTHONPATH=/ansible/lib:
MANPATH=/ansible/docs/man:

Remember, you may wish to specify your host file with -i

Done!

➜  / ansible --version
ansible 2.2.1.0 (stable-2.2 04b2e1fbc0) last updated 2017/01/28 14:49:16 (GMT +000)
  lib/ansible/modules/core: (detached HEAD 59c9a6d3c2) last updated 2017/01/28 14:50:59 (GMT +000)
  lib/ansible/modules/extras: (detached HEAD c501e006ea) last updated 2017/01/28 14:51:00 (GMT +000)
  config file = /root/.ansible.cfg
  configured module search path = ['/modules/', '/vendor/f5-ansible/library']

docker_ansible's People

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.