Skip to content

Commit

Permalink
Convert Docker documentation in MarkDown
Browse files Browse the repository at this point in the history
  • Loading branch information
gbonnefille committed May 31, 2018
1 parent 611f208 commit 492a035
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
20 changes: 20 additions & 0 deletions ReadmeDocker.md
Original file line number Diff line number Diff line change
@@ -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 .
15 changes: 0 additions & 15 deletions ReadmeDocker.txt

This file was deleted.

0 comments on commit 492a035

Please sign in to comment.