mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 00:37:57 +00:00
eeb368ed9c
* 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
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