tree: f6beedf69f3ead291512dcffd8ff43c23dd1a059 [path history] [tgz]
  1. Dockerfile


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


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
    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 ""
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]