D for microservices: ldc, rdmd, dub now available on Alpine x86_64

Mathias Lang pro.mathias.lang at gmail.com
Tue Nov 26 01:43:24 UTC 2019


On Wednesday, 13 November 2019 at 12:27:52 UTC, user wrote:
> On Tuesday, 5 November 2019 at 02:16:28 UTC, Mathias Lang wrote:
>> ```
>> apk --no-cache add -X 
>> http://dl-cdn.alpinelinux.org/alpine/edge/testing ldc 
>> ldc-static dtools-rdmd dub
>> ```
>
> A hello world vibe project doesn't build for me using a 
> Dockerfile using your template. I tried to add missing deps, 
> but I couldn't really figure out what's missing.
>
> I get an error during the `dub build` step:
>
> ```
> eventcore 0.8.48: building configuration "epoll"...
> /root/.dub/packages/eventcore-0.8.48/eventcore/source/eventcore/drivers/posix/processes.d(316,10): Error: module `core.sys.posix.sys.wait` import `idtype_t` not found`
> ```
>
> My full Dockefile:
>
> ```
> FROM alpine:edge as builder
>
> RUN apk --no-cache add build-base git
> RUN apk --no-cache add -X 
> http://dl-cdn.alpinelinux.org/alpine/edge/testing ldc 
> ldc-static dtools-rdmd dub
> RUN apk --no-cache add -X 
> http://dl-cdn.alpinelinux.org/alpine/edge/testing libevent 
> ibevent-dev
>
> WORKDIR /tmp/app
>
> ADD source ./source
> ADD dub.json ./
>
> RUN dub build  --compiler=ldc2
> ```

Unfortunately recent versions of Vibe.d seems to be broken with 
Alpine.
We use eventcore v0.8.43, Vibe.d v0.8.6, vibe-core v1.7.0.
I'll see if I can get a CI in place for Vibe (and fix the 
issues). Thanks for reporting!


More information about the Digitalmars-d-announce mailing list