C Build environment in a docker container, featuring colored output and compiler cache
- GCC 6
ccache
for fast recompilationcolorgcc
for colored output- Support for cross-compiling with external toolchain
- Very small: 240 MB including the base
ownyourbits/minidebian
( ~50 MB )
It is recommended to use this alias
alias mmake='docker run --rm -v "$(pwd):/src" -t ownyourbits/mmake'
Then, use it just as you would use 'make'
cd test
mmake
Adjust to the path to your toolchain directory
alias xmake='docker run --rm -v "$(pwd):/src" -v "/toolchain/path:/toolchain" -t ownyourbits/xmake'
Then, use it just as you would use 'make'
cd test
xmake
A '.ccache' directory will be generated in the directory of execution
To avoid the delay in the creation and deletion of the conttainer, you can leave the container running for faster execution. Use these aliases
alias runmake='docker run --rm -d -v "$(pwd):/src" --entrypoint /bg.sh -t --name mmake ownyourbits/mmake'
alias mmake='docker exec -t mmake /run.sh'
Details at ownyourbits