Deploying and executing the SCM Harvester Frontend of the Smart Developer Hub project with Docker.
The first step consists in building the image defined by Dockerfile
in the repository's root directory:
docker build -t sdh/scm-harvester .
In order to run the SCM Harvester Frontend it is necessary to define several environment variables:
-
HTTP_PORT: the port to be used by the SCM Harvester Frontend. This port will have to be exposed by the container.
-
TARGET: the GitLab Enhancer instance to be used by the SCM Harvester Frontend. The endpoint can be specified using an IP address (e.g., http://192.168.1.33:5000/api) or a fully qualified domain name (e.g., http://gitlab_enhancer.smartdeveloperhub.org:5000/api).
Taking all of this into account a container could be executed as follows:
docker run -e "HTTP_PORT=8088" \
-e "TARGET=http://gitlab_enhancer.smartdeveloperhub.org:5000/api" \
-p 8088:8088 \
--name sdh-scm-harvester
sdh/scm-harvester
SDH-SCM-Harvester-Docker is distributed under the Apache License, version 2.0.