Coder Social home page Coder Social logo

nielswind / docker-devenv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wsargent/docker-devenv

0.0 2.0 0.0 107 KB

My one stop vagrant based docker development environment

Home Page: https://gist.github.com/wsargent/7049221

Ruby 25.13% Shell 74.87%

docker-devenv's Introduction

Will's Docker Development Environment

This is a one stop Vagrant for a docker based development environment. It comes with riak-cs, scala, zookeeper, kafka, oracle-java7, playframework, and sbt, and probably a bunch more. It will pull and set up images for absolutely everything.

Caution

This is personalized for my use: I recommend you clone your own copy, add this as upstream then use git fetch upstream; git merge upstream/master if you really want to follow it. It's not guaranteed to work all the time.

It also depends on a public registry image for the docker registry, so that's possibly a security risk.

Installation

Run Vagrant

vagrant up

Be prepared to wait while it gets Docker and Shipyard installed.

Reboot to install the Guest Additions:

vagrant reload

Run devenv install

Now that you have Guest additions, you should be able to install and run the scripts.

./bin/devenv install

Once this is done, reboot the VM to have Docker pick up the changes needed for Shipyard:

vagrant reload

Configure Shipyard

Once the server has rebooted, you should have shipyard up. The credentials are "shipyard/admin".

Usage

To start the server:

vagrant up
./bin/devenv start

To push the local images to registry:

./bin/devenv push

To export the registry:

./bin/devenv export

To import registry:

./bin/devenv import

Explanation

It does the following:

  • Installs a Vagrant image from Phusion Passenger that is pre-built with the correct kernel (so you don't have to update and reboot).
  • Installs the VirtualBox Guest Additions (4.3.2, but configurable).
  • Downloads and sets up a docker image containing a private repository from the public Docker index (insecure, not ideal).
  • Clones this github project from Github inside the Vagrant.
  • Runs through a base Docker image that adds important bits to the out of the box Ubuntu 12.04 image.
  • Pushes that base docker image to the private Docker repository.

This gives you a base starting point where all your other Dockerfile images can be built starting with:

FROM internal_registry:5000/base

in your Docker file.

History

It is based on the Relate-IQ Vagrantfile from the devenv blog post .

Additional bits taken from Mailgun shipper talk.

Some concepts taken from Phusion base image.

docker-devenv's People

Contributors

wsargent avatar

Watchers

 avatar  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.