Skip to content
Ashwin Madavan edited this page Apr 25, 2018 · 14 revisions

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

#!/bin/bash
####################################################################################################
#                                    Install Pants Dependencies                                    #
#              https://github.com/pantsbuild/pants/blob/master/README.md#requirements              #
####################################################################################################
sudo apt update && sudo apt -y install curl build-essential python python-dev openjdk-8-jdk git

####################################################################################################
#                                            Build Beaker                                          #
#                                https://github.com/ashwin153/beaker                               #
####################################################################################################
git clone https://github.com/ashwin153/caustic && cd caustic/ && ./pants compile ::

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/caustic ./pants run caustic-runtime/src/main/scala:server

Clone this wiki locally