D Compiler as Docker Image
Stefan via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Tue Feb 14 15:24:03 PST 2017
Want to share the outcome of a vivid discussion today at the
Munich D Meetup with you.
Installation of a D Compiler is ok-ish. But sometime you don't
want to install it. Sometimes you want a very clean
compiler-environment. Sometimes you want to compile your projects
in the cloud and not on your local PC.
To ease this a bit I drafted Docker Images for the Compilers
(dmd, ldc, gdc, sdc) [1]. Based on this you have a clean
compilation environment. And you even could use dub with it. No
installation anymore.
Want to know how to use it? [2], [3]
The usage examples are in the repo are currently:
- return code - simplest D program for compilation with dmd,
ldc, gdc, sdc
- hello world - simplest D program using phobos
- all_dmd_versions - simplest D program compiled with all
available DMD versions
- dub - simplest dub project
- building dub - building dub with dub as a complex real world
use case
Really would appreciate your feedback!
[1] Docker Hub:
https://hub.docker.com/r/dlanguage/
[2] Slides:
https://github.com/d-muc/talks/raw/master/2017_02_14.d_and_the_cloud/D-Compiler-in-Docker.pdf
[3] Github Repo with Examples:
https://github.com/d-muc/docker-compiler-examples
More information about the Digitalmars-d-announce
mailing list