Features:
What does this Dockerfile do?
- Build from centos.
- Default is not using porxy. Please see instruction below to set up http/https proxy.
- Install yum default “Development Tools”.
- Install maven.
- Set up environment variables of paths.
- Create /ws folder and install nvml dependency pandoc in /ws/pandoc.
- Install pmalloc in /ws
- Install nvml in /ws.
- Set up maven proxy mvn.sh.
- Clone mnemonic code then build/install.
- Go to /ws fold and start bash.
How to set up proxy?
Input IP address and port as the example below, then uncomment all other ENV lines.
ENV proxy_host "172.17.42.1"
ENV proxy_port "8668"
ENV http_proxy "http://${proxy_host}:${proxy_port}"
ENV https_proxy ${http_proxy}
ENV HTTP_PROXY ${http_proxy}
ENV HTTPS_PROXY ${http_proxy}
ENV proxy ${http_proxy}
How to build the docker image from Dockerfile in host OS?
In the folder of Dockerfile, run:
$ docker build -t NAME[:TAG] .
Optional: After build, push image to dockerhub:
$ docker login [OPTIONS] [SERVER]
$ docker push [OPTIONS] NAME[:TAG]
How to run image after build
Run image:
$ docker run --name CONTAINER_NAME -it NAME[:TAG]