Thread overview
Docker images for LDC releases?
Aug 04, 2018
Jon Degenhardt
Aug 05, 2018
Anton Fediushin
Aug 05, 2018
Jon Degenhardt
Aug 05, 2018
Jacob Carlborg
Aug 05, 2018
Jon Degenhardt
Aug 06, 2018
Jacob Carlborg
Aug 05, 2018
Seb
Aug 06, 2018
Jon Degenhardt
August 04, 2018
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
August 05, 2018
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.
August 05, 2018
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
August 05, 2018
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
August 05, 2018
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.
August 05, 2018
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/
August 06, 2018
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
August 06, 2018
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