Created
December 12, 2017 10:04
-
-
Save anryko/4fa8773f60f12e0ddf84146a1ae86c7c to your computer and use it in GitHub Desktop.
Run gcc make build in a docker container producing executable on a local filesystem.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Change dir to source directory and run: | |
$ docker run \ | |
-it \ | |
--rm \ | |
--name gcc \ | |
-v $PWD:/mnt \ | |
-p 9090:9090 \ | |
gcc bash -c 'cd /mnt && make && ./a.out' | |
Kill the container when you done: | |
$ docker kill gcc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment