sbt "project s2rest_play" docker:publishLocal
cd dev-support
docker-compose build
docker-compose up -d graph_mysql
will run MySQL and HBase at same time.docker-compose up -d
S2Graph should be connected with MySQL at initial state. Therefore you have to run MySQL and HBase before running it.
In OS X, the docker container is running on VirtualBox. In order to connect with HBase in the docker container from your local machine. You have to register the IP of the docker-machine into the /etc/hosts
file.
Within the docker-compose.yml
file, I had supposed the name of docker-machine as default
. So, in the /etc/hosts
file, register the docker-machine name as default
.
ex) 192.168.99.100 default
In order to develop and test S2Graph. You might be want to run S2Graph as dev
mode on your local machine. In this case, the following commands are helpful.
# docker-compose up -d graph_mysql
# sbt "project s2rest_play" run -Dhost=default
# sbt test -Dhost=default