-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: build linux executable with Debian Stretch (supports GLibC 2.18+) …
- Loading branch information
1 parent
5bee6ed
commit ca3c5d0
Showing
3 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM rust:stretch | ||
|
||
RUN rustup install stable && rustup default stable | ||
RUN rustup component add rustfmt | ||
|
||
ENTRYPOINT ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
#!/bin/bash -xe | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
echo -- Build the Docker build image -- | ||
docker build -f Dockerfile.linux-build -t linux-build . | ||
|
||
mkdir -p target/artifacts | ||
cargo build --release | ||
docker run -t --rm --user "$(id -u)":"$(id -g)" -v "$(pwd):/workspace" -w /workspace linux-build -c 'cargo build --release' | ||
gzip -c target/release/pact-stub-server > target/artifacts/pact-stub-server-linux-x86_64.gz |