This is the demo code for my Javazone 2014 talk Using Docker to streamline development!
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:
-
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 aslocaldocker
. 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 thelocaldocker
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
-
brew install nginx
After installing, have a look at the Readme-files in each module for instructions to get started.