lindt / docker-ldc Goto Github PK
View Code? Open in Web Editor NEWDocker Image for LDC
Home Page: https://hub.docker.com/r/dlanguage/ldc/
License: MIT License
Docker Image for LDC
Home Page: https://hub.docker.com/r/dlanguage/ldc/
License: MIT License
LDC v1.5.0-beta1 was released, please upgrade the docker image.
If wanted, I can also provide a pull request.
See https://hub.docker.com/r/dlanguage/ldc/builds/bnyfydmfdx9wproqtsyvjwo/
[ In the future, it's better (from my point of view) to submit commits in order of release date, such that the last commit is also the latest version. Right now, the repository last commits sets LDC to version 1.9.0-beta1, so it seems that that is the latest version. ]
Thanks!
Failed to invoke the compiler ldc2 to determine the build platform:
root@machine:/c/code/src# dub
Failed to invoke the compiler ldc2 to determine the build platform:
Note that dub is installed
root@machine:/c/code/src# which dub
/dlang/ldc-1.2.0-beta2/bin/dub
and seems to be able to run as long as compilation is not utilized:
root@machine:/c/code/src# dub run -h
USAGE: dub run [<package>] [<options...>] [-- <application arguments...>]
......snip....
root@machine:/c/code/src# dub init
Package recipe format (sdl/json) [json]:
The following is the same manual scenario but with the latest dlanguage/dmd
:
root@machine:/c/code/src# dub
Neither a package description file, nor source/app.d was found in
... snip....
No valid root package found - aborting.
Installing dub
via apt-get
(base docker image used's package manager, which has dub entries) does not resolve the issue.
The command:
bash /tmp/install.sh -p /dlang install -s "${COMPILER}-${COMPILER_VERSION}"
fails with recent changes to the install.sh script on the site. See dlang/installer#258. The change is to validate arguments, and -s
is not a recognized argument. This will affect the docker-dmd Dockerfile as well.
I am using the docker-ldc image on wercker (CI) to run dub to build my application.
But the image doesn't have libcurl installed and dub depends on it.
The docker image cannot be used with Gitlab CI because of this bug: https://gitlab.com/gitlab-org/gitlab-runner/issues/1253
Is the custom entrypoint really necessary? (why does this D language package include gosu? :) )
In the ldc image dub seems unable to retrieve any package:
Step 4/4 : RUN dub test
---> Running in f265d9ecdb5c
Root package evaluation-d references unknown package fluent-asserts
Removing intermediate container f265d9ecdb5c
The command '/bin/sh -c dub upgrade' returned a non-zero code: 2
I tried different dependencies with the same result. code.dlang.org
is reachable currently, as demonstrated by using dlanguage/dmd
.
dub.json
:
{
"name": "evaluation-d",
"dependencies": {
"fluent-asserts": "~>0.7",
}
}
Dockerfile
:
FROM dlanguage/ldc
ADD dub.json /usr/src/rk-mir/
WORKDIR /usr/src/rk-mir/
RUN dub upgrade
Using FROM dlanguage/dmd
instead works as expected:
Step 4/4 : RUN dub upgrade
---> Running in b6b467fc633b
Upgrading project in /usr/src/rk-mir
Fetching fluent-asserts 0.7.0 (getting selected version)...
Fetching libdparse 0.7.1 (getting selected version)...
Fetching ddmp 0.0.1-0.dev.2 (getting selected version)...
As I want to use mir-glas
switching from ldc
to dmd
is no option for me.
Dunno if the author is still active but this image needs updating.
The latest LDC is 1.10.0 with 1.11.0 about to be release.
@JohanEngelen maybe LDC team could host this image and keep it up2date, make it part of the release.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.