digitalmars.D.announce - Containerize Your D Server Application
- Mike Parker (9/9) Mar 14 2019 One of the items on my list of "things I'd like to do if I only
- Arun Chandrasekaran (6/16) Mar 14 2019 Can we make dub generate the docker container as well? CMake can
- Andre Pany (8/26) Mar 14 2019 There is a plugin system planned for dub. This requirement seems
- Meta (4/22) Mar 14 2019 Couldn't you use `postBuildCommands` for that?
- Jacob Carlborg (14/26) Mar 14 2019 For reducing the container image I recommend building what's called a
- Nick Sabalausky (Abscissa) (3/15) Mar 14 2019 Interestingly, this appears to be by far the best introduction to docker...
- Meta (4/21) Mar 15 2019 Agreed; it's a good starter tutorial to familiarize someone with
- Valeriy Fedotov (26/36) Apr 19 2019 Seems that multithe tutorial no longer works.
- Andre Pany (7/18) Apr 19 2019 This question occurs from time to time. Dub version 1.8. is very
- Valeriy Fedotov (6/27) Apr 19 2019 Sadly, it is not only my issue, it is reproduced for everyone
- Seb (2/13) Apr 19 2019 dlang2 was upgraded to Ubuntu 18.04 yesterday.
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/
Mar 14 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/Can we make dub generate the docker container as well? CMake can do that. The usage would be simply ``` dub build -b release dub build docker
Mar 14 2019
On Thursday, 14 March 2019 at 18:02:31 UTC, Arun Chandrasekaran wrote:On Thursday, 14 March 2019 at 12:38:30 UTC, Mike Parker wrote:There is a plugin system planned for dub. This requirement seems to be a very good use case. https://github.com/dlang/dub/wiki/DEP3 If you have time, please contribute to Dub by adding this feature. Kind regards AndreOne 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/Can we make dub generate the docker container as well? CMake can do that. The usage would be simply ``` dub build -b release dub build docker
Mar 14 2019
On Thursday, 14 March 2019 at 18:02:31 UTC, Arun Chandrasekaran wrote:On Thursday, 14 March 2019 at 12:38:30 UTC, Mike Parker wrote:Couldn't you use `postBuildCommands` for that? https://dub.pm/package-format-json.html#build-settingsOne 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/Can we make dub generate the docker container as well? CMake can do that. The usage would be simply ``` dub build -b release dub build docker
Mar 14 2019
On 2019-03-14 13:38, 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/For reducing the container image I recommend building what's called a "microcontainer" [1]. It's a container that only contains exactly what's needed to run the application, no more, no less. That is, it contains no base image. There's a tool called Smith [2] that helps to build these microcontainers. You specify the files you want to have included in the container, then it will use the dynamic linker to figure out all the dependencies of the executables. With LDC it's possible to build a fully statically linked executable, that makes it trivial to build a microcontainer out of. [1] https://blogs.oracle.com/developers/the-microcontainer-manifesto [2] https://github.com/oracle/smith -- /Jacob Carlborg
Mar 14 2019
On 3/14/19 8:38 AM, 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/Interestingly, this appears to be by far the best introduction to docker I've ever come across - and that's *including* docker's own vacuous website.
Mar 14 2019
On Friday, 15 March 2019 at 04:43:21 UTC, Nick Sabalausky (Abscissa) wrote:On 3/14/19 8:38 AM, Mike Parker wrote:Agreed; it's a good starter tutorial to familiarize someone with the basics. Great article Kai!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/Interestingly, this appears to be by far the best introduction to docker I've ever come across - and that's *including* docker's own vacuous website.
Mar 15 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. :)
Apr 19 2019
On Friday, 19 April 2019 at 20:45:12 UTC, Valeriy Fedotov wrote:On Thursday, 14 March 2019 at 12:38:30 UTC, Mike Parker wrote:This question occurs from time to time. Dub version 1.8. is very old and the error you mentioned is fixed in the meantime. Your issue is fixed by update to a recent compiler (which includes a recent dub). Kind regards Andre[...]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. ``` [...]
Apr 19 2019
On Friday, 19 April 2019 at 20:51:56 UTC, Andre Pany wrote:On Friday, 19 April 2019 at 20:45:12 UTC, Valeriy Fedotov wrote:Sadly, it is not only my issue, it is reproduced for everyone wanting to make a multi-stage build with Dockerfile.multi from tutorial. I have made the PR to fix it (install fresh dmd and dub), but tutorial should be fixed too.On Thursday, 14 March 2019 at 12:38:30 UTC, Mike Parker wrote:This question occurs from time to time. Dub version 1.8. is very old and the error you mentioned is fixed in the meantime. Your issue is fixed by update to a recent compiler (which includes a recent dub). Kind regards Andre[...]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. ``` [...]
Apr 19 2019
On Friday, 19 April 2019 at 20:45:12 UTC, Valeriy Fedotov wrote:On Thursday, 14 March 2019 at 12:38:30 UTC, Mike Parker wrote:dlang2 was upgraded to Ubuntu 18.04 yesterday.[...]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. ``` [...]
Apr 19 2019