www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - Docker images for LDC releases?

reply Jon Degenhardt <jond noreply.com> writes:
Is there an up-to-date docker image for LDC?

Why I ask: I've been using a dockerized LDC image on TravisCI for 
building public release binaries. The docker image I've been 
using, dlanguage/ldc (https://github.com/lindt/docker-ldc), has 
not been updated recently (currently at LDC 1.9).

The reason for using a docker image on Travis is that Travis 
still runs Ubuntu 14.04, and I've had trouble with static linking 
on Ubuntu 14.04. Ubuntu 16.04 works fine 
(https://github.com/ldc-developers/ldc/issues/2390).

I can of course create my own docker image supporting the LDC 
version I need, but I'd prefer to use a standard image if one is 
available. I'm guessing too that other people might be interested 
in a docker version as well.

--Jon
Aug 04 2018
next sibling parent reply Anton Fediushin <fediushin.anton yandex.com> writes:
On Saturday, 4 August 2018 at 18:41:40 UTC, Jon Degenhardt wrote:
 Is there an up-to-date docker image for LDC?

 Why I ask: I've been using a dockerized LDC image on TravisCI 
 for building public release binaries. The docker image I've 
 been using, dlanguage/ldc 
 (https://github.com/lindt/docker-ldc), has not been updated 
 recently (currently at LDC 1.9).

 The reason for using a docker image on Travis is that Travis 
 still runs Ubuntu 14.04, and I've had trouble with static 
 linking on Ubuntu 14.04. Ubuntu 16.04 works fine 
 (https://github.com/ldc-developers/ldc/issues/2390).

 I can of course create my own docker image supporting the LDC 
 version I need, but I'd prefer to use a standard image if one 
 is available. I'm guessing too that other people might be 
 interested in a docker version as well.

 --Jon
I had the same problem with outdated LDC, but I actually made my own docker image. https://hub.docker.com/r/ohboi/minildc/ It's based on a slim debian and includes OpenSSL 1.1. CI builds this image daily, meaning that it's always up-to-date.
Aug 04 2018
parent Jon Degenhardt <jond noreply.com> writes:
On Sunday, 5 August 2018 at 05:21:11 UTC, Anton Fediushin wrote:
 On Saturday, 4 August 2018 at 18:41:40 UTC, Jon Degenhardt 
 wrote:
 Is there an up-to-date docker image for LDC?
I had the same problem with outdated LDC, but I actually made my own docker image. https://hub.docker.com/r/ohboi/minildc/ It's based on a slim debian and includes OpenSSL 1.1. CI builds this image daily, meaning that it's always up-to-date.
Thanks! I'll take a look. --Jon
Aug 04 2018
prev sibling next sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2018-08-04 20:41, Jon Degenhardt wrote:
 Is there an up-to-date docker image for LDC?

 Why I ask: I've been using a dockerized LDC image on TravisCI for
 building public release binaries. The docker image I've been using,
 dlanguage/ldc (https://github.com/lindt/docker-ldc), has not been
 updated recently (currently at LDC 1.9).

 The reason for using a docker image on Travis is that Travis still runs
 Ubuntu 14.04, and I've had trouble with static linking on Ubuntu 14.04.
 Ubuntu 16.04 works fine
 (https://github.com/ldc-developers/ldc/issues/2390).
Perhaps you can try "group: travis_latest" [1] and see if that gives you a later version of Ubuntu. [1] https://blog.travis-ci.com/2017-12-01-new-update-schedule-for-linux-build-images -- /Jacob Carlborg
Aug 04 2018
parent reply Jon Degenhardt <jond noreply.com> writes:
On Sunday, 5 August 2018 at 06:53:23 UTC, Jacob Carlborg wrote:
 On 2018-08-04 20:41, Jon Degenhardt wrote:
 The reason for using a docker image on Travis is that Travis 
 still runs
 Ubuntu 14.04, and I've had trouble with static linking on 
 Ubuntu 14.04. Ubuntu 16.04 works fine.
Perhaps you can try "group: travis_latest" [1] and see if that gives you a later version of Ubuntu. [1] https://blog.travis-ci.com/2017-12-01-new-update-schedule-for-linux-build-images
Thanks for tip, I hadn't seen that. I tried switching my build to use it. It upgrades some installed packages, but Ubuntu remains at 14.04.
Aug 05 2018
parent Jacob Carlborg <doob me.com> writes:
On 2018-08-05 20:27, Jon Degenhardt wrote:

 Thanks for tip, I hadn't seen that. I tried switching my build to use
 it. It upgrades some installed packages, but Ubuntu remains at 14.04.
Hmm, that's unfortunate. -- /Jacob Carlborg
Aug 06 2018
prev sibling parent reply Seb <seb wilzba.ch> writes:
On Saturday, 4 August 2018 at 18:41:40 UTC, Jon Degenhardt wrote:
 Is there an up-to-date docker image for LDC?

 Why I ask: I've been using a dockerized LDC image on TravisCI 
 for building public release binaries. The docker image I've 
 been using, dlanguage/ldc 
 (https://github.com/lindt/docker-ldc), has not been updated 
 recently (currently at LDC 1.9).

 The reason for using a docker image on Travis is that Travis 
 still runs Ubuntu 14.04, and I've had trouble with static 
 linking on Ubuntu 14.04. Ubuntu 16.04 works fine 
 (https://github.com/ldc-developers/ldc/issues/2390).

 I can of course create my own docker image supporting the LDC 
 version I need, but I'd prefer to use a standard image if one 
 is available. I'm guessing too that other people might be 
 interested in a docker version as well.

 --Jon
If you just need a recent Ubuntu image with LDC, maybe https://github.com/wilzbach/dlang-docker helps you. The image gets build automatically by a cron, so it should always offer all recent tags, e.g. https://hub.docker.com/r/dlang2/ldc-ubuntu/tags/
Aug 05 2018
parent Jon Degenhardt <jond noreply.com> writes:
On Sunday, 5 August 2018 at 22:11:44 UTC, Seb wrote:
 If you just need a recent Ubuntu image with LDC, maybe 
 https://github.com/wilzbach/dlang-docker helps you.

 The image gets build automatically by a cron, so it should 
 always offer all recent tags, e.g.

 https://hub.docker.com/r/dlang2/ldc-ubuntu/tags/
Thanks, this looks really helpful. --Jon
Aug 06 2018