Files
pezkuwi-subxt/docker/scripts/staking-miner/README.md
T
Egor_P eeb368ed9c GHW for building and publishing docker images (#1391)
* add ghw and scripts for docker image deployment

* debug

* add permissions for content

* fix path to the bin folder

* add tags

* rename env

* fix path to docker file

* make polkadot-parachain executable

* fix typo

* fix more typos

* test

* revert back  use of  working directory

* mke bin executable in the artifacts folder

* use cd instead of working directory

* change path to cash

* fix path to cash

* change cache key

* delete old flows

* addressed PR comments

* fix path

* reorg docker files
2023-09-06 17:11:10 +03:00

858 B

staking-miner container image

Build using the Builder

./build.sh

Build the injected Image

You first need a valid Linux binary to inject. Let's assume this binary is located in BIN_FOLDER.

./build-injected.sh "$BIN_FOLDER"

Test

Here is how to test the image. We can generate a valid seed but the staking-miner will quickly notice that our account is not funded and "does not exist".

You may pass any ENV supported by the binary and must provide at least a few such as SEED and URI:

ENV SEED=""
ENV URI="wss://rpc.polkadot.io:443"
ENV RUST_LOG="info"
export SEED=$(subkey generate -n polkadot --output-type json  | jq -r .secretSeed)
podman run --rm -it \
    -e URI="wss://rpc.polkadot.io:443" \
    -e RUST_LOG="info" \
    -e SEED \
    localhost/parity/staking-miner \
        dry-run seq-phragmen