-
Notifications
You must be signed in to change notification settings - Fork 775
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add chain-spec-builder docker image (#4655)
This PR adds possibility to publish container images for the `chain-spec-builder` binary on the regular basis. Related to: paritytech/release-engineering#190
- Loading branch information
1 parent
63f0cbf
commit f66e693
Showing
4 changed files
with
70 additions
and
27 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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Sample call: | ||
# $0 /path/to/folder_with_binary | ||
# This script replace the former dedicated Dockerfile | ||
# and shows how to use the generic binary_injected.dockerfile | ||
|
||
PROJECT_ROOT=`git rev-parse --show-toplevel` | ||
|
||
export BINARY=chain-spec-builder | ||
export ARTIFACTS_FOLDER=$1 | ||
# export TAGS=... | ||
|
||
$PROJECT_ROOT/docker/scripts/build-injected.sh |
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,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
TMP=$(mktemp -d) | ||
ENGINE=${ENGINE:-podman} | ||
|
||
export TAGS=latest,beta,7777,1.0.2-rc23 | ||
|
||
# Fetch some binaries | ||
$ENGINE run --user root --rm -i \ | ||
--pull always \ | ||
-v "$TMP:/export" \ | ||
--entrypoint /bin/bash \ | ||
parity/chain-spec-builder -c \ | ||
'cp "$(which chain-spec-builder)" /export' | ||
|
||
echo "Checking binaries we got:" | ||
ls -al $TMP | ||
|
||
./build-injected.sh $TMP |