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

user user at dlang.io
Wed Nov 13 12:27:52 UTC 2019


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
```


More information about the Digitalmars-d-announce mailing list