mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-23 05:01:08 +00:00
Publish RC container images (#7556)
* WIP * Add missing checkout * Add debuggin * Fix VAR name * Bug fix * Rework jobs * Revert "Rework jobs" This reverts commit 2bfa79fd3ae633c17403b838f9a5025f0f7fc3f3. * Add cache * Add temp default for testing * Add missing checkout * Fix patch * Comment out the GPG check for now * Rename polkadot_injected_release into a more appropriate polkadot_injected_debian * Refactoring / renaming * Introduce a generic image for binary injection * Flag files to be deleted and changes to be done * WIP * Fix multi binaries images * Add test build scripts * Remove old file, add polkadot build-injected script * Fix doc * Fix tagging * Add build of the injected container * Fix for docker * Remove the need for TTY * Handling container publishing * Fix owner and registry * Fix vars * Fix repo * Fix var naming * Fix case when there is no tag * Fix case with no tag * Handle error * Fix spacings * Fix tags * Remove unnecessary grep that may fail * Add final check * Clean up and introduce GPG check * Add doc * Add doc * Update doc/docker.md Co-authored-by: Mira Ressel <mira@parity.io> * type Co-authored-by: Mira Ressel <mira@parity.io> * Fix used VAR * Improve doc * ci: Update .build-push-image jobs to use the new build-injected.sh * ci: fix path to build-injected.sh script * Rename the release artifacts folder to prevent confusion due to a similar folder in the gitlab CI * ci: check out polkadot repo in .build-push-image This seems far cleaner than copying the entire scripts/ folder into our job artifacts. * feat(build-injected.sh): make PROJECT_ROOT configurable This lets us avoid a dependency on git in our CI image. * ci: build injected images with buildah * ci: pass full image names to zombienet * Add missing ignore --------- Co-authored-by: Mira Ressel <mira@parity.io>
This commit is contained in:
@@ -28,8 +28,9 @@ There are 2 options to build a staking-miner Docker image:
|
||||
### Building the injected image
|
||||
|
||||
First build the binary as documented [above](#building).
|
||||
You may then inject the binary into a Docker base image from the root of the Polkadot repository:
|
||||
You may then inject the binary into a Docker base image: `parity/base-bin` (running the command from the root of the Polkadot repository):
|
||||
```
|
||||
TODO: UPDATE THAT
|
||||
docker build -t staking-miner -f scripts/ci/dockerfiles/staking-miner/staking-miner_injected.Dockerfile target/release
|
||||
```
|
||||
|
||||
@@ -39,6 +40,7 @@ Unlike the injected image that requires a Linux pre-built binary, this option do
|
||||
The trade-off however is that it takes a little longer to build and this option is less ideal for CI tasks.
|
||||
You may build the multi-stage image the root of the Polkadot repository with:
|
||||
```
|
||||
TODO: UPDATE THAT
|
||||
docker build -t staking-miner -f scripts/ci/dockerfiles/staking-miner/staking-miner_builder.Dockerfile .
|
||||
```
|
||||
|
||||
@@ -51,7 +53,7 @@ While it won't prevent a malicious actor to read your `SEED` if they gain access
|
||||
# The following line starts with an extra space on purpose:
|
||||
SEED=0x1234...
|
||||
|
||||
docker run --rm -it \
|
||||
docker run --rm -i \
|
||||
--name staking-miner \
|
||||
--read-only \
|
||||
-e RUST_LOG=info \
|
||||
|
||||
Reference in New Issue
Block a user