D for microservices
Tamas
user at dlang.io
Sun Mar 11 11:10:09 UTC 2018
On Thursday, 8 March 2018 at 22:53:11 UTC, aberba wrote:
> On Thursday, 8 March 2018 at 09:35:08 UTC, Andrew Benton wrote:
>> On Thursday, 8 March 2018 at 07:54:29 UTC, Jacob Carlborg
>> wrote:
>>> On Thursday, 8 March 2018 at 07:20:53 UTC, Radu wrote:
>>>
>>>> This guys says that vide.d works
>>>> https://forum.dlang.org/thread/gikoeutmdyvolfshpqqq@forum.dlang.org
>>>
>>> Yes, it's pretty straightforward:
>>>
>>> 1. Build on Ubuntu, or some other dist
>>> 2. Statically link the whole binary with LDC, then you don't
>>> need to use Musl
>>> 3. Run it on Alpine
>>>
>>> --
>>> /Jacob Carlborg
>>
>> Looks like that works out much nicer than using alpine as the
>> first stage right now. I'm not sure anyone will be too upset
>> about the extra 7MB.
>
> Building directly in alpine will simplify automated builds too.
Simple Vibe.d app talking to Redis, packed into docker containers:
https://github.com/tam4s/hello-redis
The takeaway is that I could not use Alpine as a host image,
because I could not build the app statically on ubuntu.
warning: Using 'dlopen' in statically linked applications
requires at runtime the shared libraries from the glibc version
used for linking
More information about the Digitalmars-d
mailing list