In order to deploy into Docker, make sure Docker is installed.
-
Have the services you want to bring up built (Svalinn, Gungnir, and Fenrir).
-
Set an environment variables relevant for the services you are deploying. If you aren't using locally built images, replace
local
with the correct tag:export SVALINN_VERSION=local export GUNGNIR_VERSION=local export FENRIR_VERSION=local
If you don't want to set environment variables, set them inline with each
docker-compose
command below. -
To bring the containers up run:
docker-compose up -d
If you only want to bring up, for example, the database and Svalinn, run:
docker-compose up -d yb-master yb-tserver db-init svalinn
This can be done with any combination of services and the database.
-
To bring the containers down:
docker-compose down