Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 861 Bytes

ReadmeDocker.md

File metadata and controls

20 lines (13 loc) · 861 Bytes

In order to build MAL/C with Docker you have to create a docker image using one of the 2 provided configuration files: CentOSDockerfile or OpenSuseDockerfile. These images will contain the requirements to build MAL/C. Then, the freshly built image can be used to build (local) MAL/C.

For example to build an OpenSuse instance of MAL/C:

  1. Creates the docker image

     docker build -t malc-centos -f CentOSDockerfile .
    
  2. Creates and launches a emporary docker container to build current project

     docker run --rm -u `id -u`:`id -g` -v $PWD:$PWD -w $PWD malc-centos ./genmakeall
    

If you are behind a corporate proxy, think of using the build-args:

docker build \
  --build-arg http_proxy=http://proxy.example.com:3128 --build-arg https_proxy=http://proxy.example.com:3128 \
  -t malc-centos -f CentOSDockerfile .