-
Notifications
You must be signed in to change notification settings - Fork 0
Home
- Install docker
- Install docker-compose
Folder | Description |
---|---|
freme-package | Contains the freme-package that will be started inside of the freme-broker docker container. |
freme-broker | Dockerfile and resources for the freme-broker docker image. To build the docker image you need to run mvn package on the freme-package first and copy the package (freme-package/target/freme-package) into the freme-broker folder |
freme-mysql | Dockerfile and resources to create the mysql docker container |
freme-ner-old | Old files, will be deleted |
freme-solr | Dockerfiles and resources to create the docker image for the solr server |
compose | Configuration to start all packages together |
Build images for broker, mysql, and solr. Virtuoso currently uses a default image.
# build mysql and solr
https://github.com/freme-project/freme-docker
cd freme-docker/freme-mysql
sudo docker build -t fremeproject/freme-mysql .
cd ../freme-solr
sudo docker build -t fremeproject/freme-solr .
# build freme package
cd ../freme-package
mvn package
rm -r ../freme-broker/freme-package
cp -r target/freme-package ../freme-broker/freme-package
# add english model
cd ../freme-broker/freme-package/freme-ner-models
wget http://api.freme-project.eu/datasets/ner-trained-models/wikiner/wikiner-en-ner-model.ser.gz
# build freme-broker image
cd ../../
sudo docker build -t fremeproject/freme-broker .
Assuming that you have build the images locally and have logged in to dockerhub using docker login
. Further assuming that you have write access to the organization fremeproject
.
sudo docker push fremeproject/freme-broker
You can exchange fremeproject/freme-broker
with other images. Your images will be uploaded to https://hub.docker.com/u/fremeproject/
This assumes you have already cloned the freme-docker repository and build the images. From the freme-docker repository folder, execute
cd compose
sudo docker-compose up
Usually you do not need this. Docker compose will start all of them.
sudo docker run --name freme-mysql -e MYSQL_ROOT_PASSWORD=root -d fremeprojecteu/freme-mysql
sudo docker run --name my-virtuoso -e DBA_PASSWORD=myDbaPassword -e SPARQL_UPDATE=true -e DEFAULT_GRAPH=http://www.example.com/my-graph -v /my/path/to/the/virtuoso/db:/data -d tenforce/virtuoso
sudo docker run --name freme-solr -d-p 4002:8983 fremeprojecteu/freme-solr
sudo docker run --name freme-broker -d --link freme-mysql:mysql --link freme-solr:solr --link freme-virtuoso -p 4000:8080 fremeprojecteu/freme-broker
The broker exposes the FREME API on port 4000 of the host.