diff --git a/ReadmeDocker.md b/ReadmeDocker.md new file mode 100644 index 00000000..5d70ebf0 --- /dev/null +++ b/ReadmeDocker.md @@ -0,0 +1,20 @@ +In order to build MAL/C with [Docker](http://docker.com) 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 . diff --git a/ReadmeDocker.txt b/ReadmeDocker.txt deleted file mode 100644 index 1079696e..00000000 --- a/ReadmeDocker.txt +++ /dev/null @@ -1,15 +0,0 @@ -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 .