Skip to content
Ashwin Madavan edited this page Apr 2, 2018 · 10 revisions

Beaker is built using Pants, Twitter's open-source, cross-language build system. Pants will automatically initialize itself the first time that it is used. Refer to the Pants Tutorial for information about bootstrapping and using the build system. Build artifacts are published to Sonatype Nexus and are synced to Maven Central.

Pants

./pants compile beaker-client/src/main/scala
./pants run beaker-server/src/main/scala:bin

Docker

  1. Install Docker and VirtualBox.
os="$(uname -s)"
case "${os}" in
    Linux*  ) sudo apt-get update
              sudo apt-get install virtualbox
              curl -L https://github.com/docker/machine/releases/download/v0.14.0/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine && \
              sudo install /tmp/docker-machine /usr/local/bin/docker-machine
              ;;
    Darwin* ) brew install caskroom/cask/brew-cask
              brew cask install virtualbox
              brew install docker docker-machine
              ;;
    *       ) echo "\e[31mUnsupported operating system ${os}.\e[39m"
              exit 1
              ;;
esac
  1. Construct a Docker machine with a bridged network adapter.
docker-machine create --driver virtualbox default
docker-machine stop
VBoxManage modifyvm “default” –nic3 bridged –bridgeadapter3 en0
  1. Start the Docker machine.
docker-machine start
eval $(docker-machine env)
Clone this wiki locally