-
Notifications
You must be signed in to change notification settings - Fork 10
Docker
Kevin Haack edited this page Jul 13, 2018
·
5 revisions
Setup the project for docker support. The docker container should be build with the linux
and docker
profiles.
If you want to build a Docker container from a microservice, use the following command: You need to run this command on a linux machine
sudo mvn clean install dockerfile:build -P docker,linux
In this cases we run the docker container in the sask
net work. To create this network use the following command:
docker network create sask
To run a docker container use:
sudo docker run -p 8761:8761 -v /logs/:/logs --net sask --name "eureka-server" -t dicegroup/sask-eureka
This works for all microservices.
In addition, the docker run command from fuseki,hadoop and TAIPAN are slightly different from the local ones.
sudo docker run -it -p 50070:50070 -p 50075:50075 -p 2401:8088 --net sask --name "hadoop" -h hadoop sequenceiq/hadoop-docker:2.7.0 /etc/bootstrap.sh -bash -u $(date -u +%m%d%H%M%Y)
sudo docker run -d --name fuseki --net sask -p 3030:3030 -v /ssd/data/fuseki:/fuseki stain/jena-fuseki:3.4.0
docker run -it -p 5000:5000 --net sask -h TAIPAN dicegroup/taipan:latest