plantbreeding / IPK-BrAPI-Validator

MIT License
4 stars 3 forks source link

Add Dockerfile #37

Closed robkooper closed 5 years ago

robkooper commented 5 years ago

This adds a Dockerfile to create a docker image that can be used on your local machine when creating a brapi implementation. For example we start the docker image docker run -d --rm -p 8080:8080 brava followed by starting the brapi server on the local machine.

Now we can check the validity of the brapi implementation using the Test your own tab and using (in our case) http://host.docker.internal:5000/brapi/v1 as the URL.

langeipk commented 5 years ago

the build of a brava war using docker image "maven:latest" does not work behind proxies. Please find a way to pass the local proxy environment to the maven build process. I checked alirizasaral/Maven-with-Proxy but without success. Also the passing the proxy einvironment using --build-arg http_proxy=http://: https_proxy=http://: does not help

langeipk commented 5 years ago

The Dockerfile now support proxy environment injection into the container. docker build --build-arg HTTPS_PROXY=<[http|https]://proxyserver:port> --build-arg HTTP_PROXY=<[http|https]://proxyserver:port -t brava .