Skip to content
Ashwin Madavan edited this page Mar 13, 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-core/src/main/scala
./pants run beaker-core/src/main/scala:server /path/to/application.conf

Docker

  1. Install Docker and VirtualBox.
brew cask install virtualbox
brew install docker docker-machine
  1. Construct a Docker machine.
docker-machine create --driver virtualbox default
  1. Add a bridged network adapter to the virtual machine.
docker-machine stop
VBoxManage modifyvm “default” –nic3 bridged –bridgeadapter3 en0
docker-machine ip
  1. Start the Docker machine, and run a server.
docker-machine start
eval $(docker-machine env)
docker run -d -p 9090:9090 ashwin153/beaker ./pants run beaker-core/src/main/scala:server
Clone this wiki locally