-
Notifications
You must be signed in to change notification settings - Fork 51
[---] Build docker executable with musl libc. #751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 3 commits
1c26588
30576a9
a199ce7
9f07c74
b831ff7
17cc190
35af2ab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| FROM busybox:glibc | ||
| FROM busybox | ||
|
|
||
| MAINTAINER "André Stein <[email protected]>" | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| FROM alpine:edge | ||
|
|
||
| RUN apk add --no-cache g++ binutils-gold clang \ | ||
|
||
| zlib-dev curl-dev curl-static openssl openssl-dev make git \ | ||
| ldc dub dtools-rdmd | ||
|
|
||
| COPY docker.build.sh /docker.build.sh | ||
| RUN chmod +x /docker.build.sh | ||
|
|
||
| ENTRYPOINT [ "/docker.build.sh" ] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| #!/bin/sh | ||
| set -e -u | ||
|
|
||
| cd /core/ | ||
| DFLAGS="-linker=bfd" dub build -c static --compiler=ldc2 | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,9 @@ dub --compiler=${DC} -- --sanitycheck | |
|
|
||
| # Compile to static binary with ldc | ||
| if [[ "${DC}" == "ldc2" ]]; then | ||
| dub build -c static --compiler=${DC} | ||
| docker build -t dlangtour_build ./ci/ | ||
| docker run --rm -v `pwd`:/core/ -ti dlangtour_build | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why the interactive run ?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Copied from the docker run below. |
||
|
|
||
| docker build -t dlangtour_test_image ./ | ||
| docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -ti dlangtour_test_image --wait-until-pulled --sanitycheck | ||
| fi | ||
Uh oh!
There was an error while loading. Please reload this page.