Giter Club home page Giter Club logo

salted-docker-vagrant's Introduction

Salted Vagrant Docker

This will automatically install Docker using Salt. Docker will be automatically configured to accept connections from anywhere which means you can alias docker on the host to talk directly with docker on the Vagrant virtual machine.

Dependencies

For this to work you need the following installed.

  • VirtualBox
  • Vagrant 1.1+

Usage

Clone the repo and vagrant up

TODO

Create containers for :

  • Apache
  • PHP 5.2.17
  • Data

Saltstack :

  • Use the unless commands to prevent duplicates and unnecessary cmd commands

For testing purpose : http://dylanlindgren.com/docker-for-the-laravel-framework/

  • Install docker containers via Saltstack

Misc

Debug containers locally :

sudo docker build -t lossendae/data .
sudo docker build -t lossendae/php52 .
sudo docker build -t lossendae/apache .

sudo docker run --name app-data -v /app:/var/www:rw lossendae/data && \
sudo docker run --privileged=true --name app-php --volumes-from app-data -d lossendae/php52 && \
sudo docker run --privileged=true --name app-apache --volumes-from app-data -p 80:80 --link app-php:lamp-legacy -d lossendae/apache
sudo docker run --privileged=true --name app-test --volumes-from app-data-legacy-container -p 80:80 --link app-php-legacy-container:lamp-legacy -d lossendae/apache

# There they are...
sudo docker pull lossendae/data && \
sudo docker pull lossendae/php52 && \
sudo docker pull lossendae/apache

#status sudo docker ps -a

#remove image sudo docker rmi

#remove container sudo docker rm

#logs sudo docker logs

salted-docker-vagrant's People

Contributors

lossendae avatar

Watchers

 avatar

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.