Containerize Your D Server Application

Valeriy Fedotov valeriy.fedotov at gmail.com
Fri Apr 19 20:45:12 UTC 2019


On Thursday, 14 March 2019 at 12:38:30 UTC, Mike Parker wrote:
> One of the items on my list of "things I'd like to do if I only 
> had the time" is to create a Mud server with D and deploy it 
> with Docker. Just for kicks. If I ever do get around to it, my 
> ignorance of all things Docker will not be the time sink it 
> could have been thanks to this latest post on the D Blog by Kai 
> Nacke.
>
> The Blog
> https://dlang.org/blog/2019/03/14/containerize-your-d-server-application/
>
> Reddit
> https://www.reddit.com/r/programming/comments/b0zqck/containerize_your_d_server_application/

Seems that multithe tutorial no longer works.

```
The dependency resolution process is taking too long. The 
dependency graph is likely hitting a pathological case in the 
resolution algorithm. Please file a bug report at 
https://github.com/dlang/dub/issues and mention the package 
recipe that reproduces this error.
```

Seems for me as issue of very old dub version. Running `dub 
--version` in the container shows

```
DUB version 1.8.0-3, built on May  7 2018
```

Image tag is ubuntu:cosmic, it is relatively fresh distro 
(18.10). It is very sad, that dub from official ubuntu repo can 
not compile any vibe.d app because of this issue. Even in desktop 
installation.

Anyway, the tutoial should be fixed, for example with usage of 
official Dlang docker image dlang2/dmd-ubuntu. But changing 
dlang2/dmd-ubuntu does not simply works either, because it is 
based on ubuntu artful 17.10, and 17.10 does not have libssl1.1. 
I tried to switch to libssl1.0, but then I got linker errors.

Maybe for this beginner tutorial makes sense disabling SSL and 
swithing to dlang2/dmd-ubuntu base image?

P.S. My first post here. :)


More information about the Digitalmars-d-announce mailing list