tree: d758780831aeee66323ae95b8c685993e3d4a8cc [path history] [tgz]
  1. Dockerfile
  2. README.md
docker/README.md

================================

This is the “Dockerfile” that will automatically build the environment of this project.


Features:

What does this Dockerfile do?

    1. Build from centos.
    1. Default is not using porxy. Please see instruction below to set up http/https proxy.
    1. Install yum default “Development Tools”.
    1. Install maven.
    1. Set up environment variables of paths.
    1. Create /ws folder and install nvml dependency pandoc in /ws/pandoc.
    1. Install pmalloc in /ws
    1. Install nvml in /ws.
    1. Set up maven proxy mvn.sh.
    1. Clone mnemonic code then build/install.
    1. 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]