Skip to content
C Build environment in a docker container, featuring colored output and compiler cache
Branch: master
Clone or download
nacho
Latest commit 8e8afec Jun 25, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
mmake per compilation ccache stats Jun 24, 2017
test Initial commit Jun 20, 2017
xmake Initial commit Jun 20, 2017
.gitignore Initial commit Jun 20, 2017
LICENSE Initial commit Jun 20, 2017
Makefile Initial commit Jun 20, 2017
README.md Initial commit Jun 20, 2017

README.md

C Build environment in a docker container

C Build environment in a docker container, featuring colored output and compiler cache

Features

  • GCC 6
  • ccache for fast recompilation
  • colorgcc for colored output
  • Support for cross-compiling with external toolchain
  • Very small: 240 MB including the base ownyourbits/minidebian ( ~50 MB )

Usage

Compilation

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

Cross-Compilation

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

Notes

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

You can’t perform that action at this time.