Skip to content

ovstetun/jz14

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the demo code for my Javazone 2014 talk Using Docker to streamline development!

Getting started

First, install the needed components. This setup has only been tested on OS X using Homebrew, but should work on Linux (no need for boot2docker). Windows-support will need native Docker-support for Windows, which isn't quite there yet...

Anyways, to install the basic components:

  • Docker

    brew install boot2docker docker boot2docker init boot2docker up

    Then use boot2docker ip to get the IP of your boot2docker host, and add this to your hosts-file as localdocker. This hostname is used throughout the linking process later, and must be set correctly for the other components to work.

  • Fig Fig is used to run prebuilt Docker containers as dependencies for each submodule. This is the magic for making everyday development so much easier. Whenever a command fig up is issued, configured containers will start up and be available on the localdocker host for use by the module you are actively working with. That simple.

    brew install python (unsure if the python installation in OS X is OK, might try without this one)

    pip install fig

  • Scala Build Tool (if working with the scala backend)

    brew install sbt

  • Node.js To build the frontend in nginx

    brew install node

  • nginx

    brew install nginx

After installing, have a look at the Readme-files in each module for instructions to get started.