www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - D Compiler as Docker Image

reply Stefan <dl ng.rocks> writes:
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
Feb 14
next sibling parent aberba <karabutaworld gmail.com> writes:
On Tuesday, 14 February 2017 at 23:24:03 UTC, Stefan wrote:
 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
Saw your images and was really happy its always up to date. I might build a vibe.d image upon it with some neccesary dependencies. Planning to use it with Deis Workflow(Self hosting PaaS aka Open source Heroku: deis.com) with uses k8s and docker under the hood.
Feb 15
prev sibling parent Eugene Wissner <belka caraus.de> writes:
On Tuesday, 14 February 2017 at 23:24:03 UTC, Stefan wrote:
 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.
Seems to be very useful for testing. I have mostly only the latest stable dmd installed in the system. But need to test against elder versions and other compilers before travis reports that the build fails.
Feb 17