fix: Complete rebrand fixes for dockerfiles, scripts, and service files

- Update all Dockerfile references from polkadot to pezkuwi
- Fix package names in scripts (pezpallet-*, pezframe-*)
- Update GitHub repository URLs to pezkuwichain/pezkuwi-sdk
- Fix template Dockerfiles (minimal, solochain, teyrchain)
- Update service file paths and binary names
- Fix path references from bizinikiwi/frame/ to bizinikiwi/pezframe/
This commit is contained in:
2025-12-20 03:07:55 +03:00
parent d9330bb392
commit a0f04820ab
26 changed files with 215 additions and 215 deletions
@@ -11,9 +11,9 @@ LABEL description="Multistage Docker image for Bizinikiwi: a platform for web3"
io.parity.image.type="builder" \
io.parity.image.authors="chevdor@gmail.com, devops-team@parity.io" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.description="Bizinikiwi is a next-generation framework for blockchain innovation 🚀" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwichain-sdk/blob/${VCS_REF}/bizinikiwi/docker/substrate_builder.Dockerfile" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwichain-sdk"
io.parity.image.description="Bizinikiwi is a next-generation framework for blockchain innovation" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwi-sdk/blob/${VCS_REF}/bizinikiwi/docker/bizinikiwi_builder.Dockerfile" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwi-sdk"
COPY --from=builder /bizinikiwi/target/release/bizinikiwi /usr/local/bin
COPY --from=builder /bizinikiwi/target/release/subkey /usr/local/bin
@@ -124,7 +124,7 @@
* ### Receiver-side Risk: Weight Exhaustion
*
* Both DMP and UMP messages are processed through the message-queue pallet:
* - Weight check: bizinikiwi/frame/message-queue/src/lib.rs:1591 in `process_message_payload()`
* - Weight check: bizinikiwi/pezframe/message-queue/src/lib.rs:1591 in `process_message_payload()`
* - Messages exceeding `overweight_limit` are marked as overweight
* - Configuration: `ServiceWeight` and `IdleMaxServiceWeight`
* - Overweight handling: Permanently overweight messages require manual execution via `execute_overweight()`
@@ -1,4 +1,4 @@
# run this, then copy all files to `bizinikiwi/frame/election-provider-multi-block/src/weights/`
# run this, then copy all files to `bizinikiwi/pezframe/election-provider-multi-block/src/weights/`
source ~/.zshrc
STEPS=2
@@ -10,11 +10,11 @@ LOG="runtime::multiblock-election=info,runtime::staking-async=info,pezkuwi_sdk_f
if [[ "${NO_COMPILE}" == "1" ]]; then
echo "Skipping compilation because 'NO_COMPILE' was set"
else
cargo build --release -p frame-omni-bencher
FORCE_WASM_BUILD=$RANDOM WASMTIME_BACKTRACE_DETAILS=1 RUST_LOG=${LOG} cargo build --release -p pallet-staking-async-teyrchain-runtime --features runtime-benchmarks
cargo build --release -p pezframe-omni-bencher
FORCE_WASM_BUILD=$RANDOM WASMTIME_BACKTRACE_DETAILS=1 RUST_LOG=${LOG} cargo build --release -p pezpallet-staking-async-teyrchain-runtime --features runtime-benchmarks
fi
WASM_BLOB_PATH=../../../../../target/release/wbuild/pallet-staking-async-teyrchain-runtime/pallet_staking_async_teyrchain_runtime.compact.wasm
WASM_BLOB_PATH=../../../../../target/release/wbuild/pezpallet-staking-async-teyrchain-runtime/pezpallet_staking_async_teyrchain_runtime.compact.wasm
echo "WASM_BLOB_PATH: $WASM_BLOB_PATH"
echo "Last modified date of WASM_BLOB:"
@@ -29,14 +29,14 @@ run_benchmark() {
echo "Outputting to '$output_file'"
WASMTIME_BACKTRACE_DETAILS=1 RUST_LOG=${LOG} \
../../../../../target/release/frame-omni-bencher v1 benchmark pallet \
../../../../../target/release/pezframe-omni-bencher v1 benchmark pallet \
--pallet "$pallet_name" \
--extrinsic "*" \
--runtime "$WASM_BLOB_PATH" \
--steps "$STEPS" \
--repeat "$REPEAT" \
--genesis-builder-preset "$genesis_preset" \
--template "../../../../../bizinikiwi/frame/election-provider-multi-block/src/template.hbs" \
--template "../../../../../bizinikiwi/pezframe/election-provider-multi-block/src/template.hbs" \
--heap-pages 65000 \
--output "$output_file"
}
@@ -2,7 +2,7 @@ FROM docker.io/paritytech/base-bin
# This file allows building a Generic container image
# based on one or multiple pre-built Linux binaries.
# Some defaults are set to polkadot but all can be overridden.
# Some defaults are set to pezkuwi but all can be overridden.
SHELL ["/bin/bash", "-c"]
@@ -12,11 +12,11 @@ ARG BUILD_DATE
ARG IMAGE_NAME
# That can be a single one or a comma separated list
ARG BINARY=polkadot
ARG BINARY=pezkuwi
ARG BIN_FOLDER=.
ARG DOC_URL=https://github.com/pezkuwichain/pezkuwichain-sdk
ARG DESCRIPTION="Polkadot: a platform for web3"
ARG DOC_URL=https://github.com/pezkuwichain/pezkuwi-sdk
ARG DESCRIPTION="Pezkuwi: a platform for web3"
ARG AUTHORS="devops-team@parity.io"
ARG VENDOR="Parity Technologies"
@@ -27,13 +27,13 @@ LABEL io.parity.image.authors=${AUTHORS} \
io.parity.image.created="${BUILD_DATE}" \
io.parity.image.documentation="${DOC_URL}" \
io.parity.image.description="${DESCRIPTION}" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwichain-sdk/blob/${VCS_REF}/docker/dockerfiles/binary_injected.Dockerfile"
io.parity.image.source="https://github.com/pezkuwichain/pezkuwi-sdk/blob/${VCS_REF}/docker/dockerfiles/binary_injected.Dockerfile"
USER root
WORKDIR /app
# add binary to docker image
# sample for polkadot: COPY ./polkadot ./polkadot-*-worker /usr/local/bin/
# sample for pezkuwi: COPY ./pezkuwi ./pezkuwi-*-worker /usr/local/bin/
COPY entrypoint.sh .
COPY "bin/*" "/usr/local/bin/"
RUN chmod -R a+rx "/usr/local/bin"
@@ -9,7 +9,7 @@ LABEL io.parity.image.authors="devops-team@parity.io" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.title="${IMAGE_NAME}" \
io.parity.image.description="Bizinikiwi: The platform for blockchain innovators." \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwichain-sdk/blob/${VCS_REF}/docker/dockerfiles/substrate_injected.Dockerfile" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwi-sdk/blob/${VCS_REF}/docker/dockerfiles/bizinikiwi_injected.Dockerfile" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}" \
io.parity.image.documentation="https://wiki.parity.io/Parity-Bizinikiwi"
@@ -19,10 +19,10 @@ LABEL io.parity.image.authors="devops-team@parity.io" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.title="${IMAGE_NAME}" \
io.parity.image.description="Bridges Zombienet tests." \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwichain-sdk/blob/${VCS_REF}/docker/dockerfiles/bridges_zombienet_tests_injected.Dockerfile" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwi-sdk/blob/${VCS_REF}/docker/dockerfiles/bridges_zombienet_tests_injected.Dockerfile" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwichain-sdk/bridges/testing"
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwi-sdk/pezbridges/testing"
# show backtraces
ENV RUST_BACKTRACE 1
@@ -32,27 +32,27 @@ USER root
RUN apt-get update && apt-get install -y procps sudo
RUN yarn global add @polkadot/api-cli
# add polkadot binary to the docker image
COPY ./artifacts/polkadot /usr/local/bin/
COPY ./artifacts/polkadot-execute-worker /usr/local/bin/
COPY ./artifacts/polkadot-prepare-worker /usr/local/bin/
# add polkadot-parachain binary to the docker image
COPY ./artifacts/polkadot-parachain /usr/local/bin
# add pezkuwi binary to the docker image
COPY ./artifacts/pezkuwi /usr/local/bin/
COPY ./artifacts/pezkuwi-execute-worker /usr/local/bin/
COPY ./artifacts/pezkuwi-prepare-worker /usr/local/bin/
# add pezkuwi-teyrchain binary to the docker image
COPY ./artifacts/pezkuwi-teyrchain /usr/local/bin
# copy bizinikiwi-relay to the docker image
COPY --from=relay-builder /home/user/bizinikiwi-relay /usr/local/bin/
# we need bridges zombienet runner and tests
RUN mkdir -p /home/nonroot/bridges-polkadot-sdk
COPY ./artifacts/bridges-polkadot-sdk /home/nonroot/bridges-polkadot-sdk
RUN mkdir -p /home/nonroot/bridges-pezkuwi-sdk
COPY ./artifacts/bridges-pezkuwi-sdk /home/nonroot/bridges-pezkuwi-sdk
# also prepare `generate_hex_encoded_call` for running
RUN set -eux; \
cd /home/nonroot/bridges-polkadot-sdk/bridges/testing/framework/utils/generate_hex_encoded_call; \
cd /home/nonroot/bridges-pezkuwi-sdk/pezbridges/testing/framework/utils/generate_hex_encoded_call; \
npm install
# use the non-root user
USER node
# check if executable works in this container
RUN /usr/local/bin/polkadot --version
RUN /usr/local/bin/polkadot-parachain --version
RUN /usr/local/bin/pezkuwi --version
RUN /usr/local/bin/pezkuwi-teyrchain --version
RUN /usr/local/bin/bizinikiwi-relay --version
# https://polkadot.js.org/apps/?rpc=ws://127.0.0.1:{PORT}#/explorer
@@ -10,10 +10,10 @@ LABEL io.parity.image.authors="devops-team@parity.io" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.title="${IMAGE_NAME}" \
io.parity.image.description="Injected adder-collator Docker image" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwichain-sdk/blob/${VCS_REF}/docker/dockerfiles/collator_injected.Dockerfile" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwi-sdk/blob/${VCS_REF}/docker/dockerfiles/collator_injected.Dockerfile" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwichain-sdk/"
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwi-sdk/"
# show backtraces
ENV RUST_BACKTRACE 1
@@ -31,7 +31,7 @@ RUN apt-get update && \
useradd -m -u 1000 -U -s /bin/sh -d /adder-collator adder-collator && \
mkdir -p /data /adder-collator/.local/share && \
chown -R adder-collator:adder-collator /data && \
ln -s /data /adder-collator/.local/share/polkadot
ln -s /data /adder-collator/.local/share/pezkuwi
# add adder-collator binary to docker image
COPY ./artifacts/adder-collator /usr/local/bin
+4 -4
View File
@@ -8,11 +8,11 @@ ARG IMAGE_NAME
LABEL io.parity.image.authors="devops-team@parity.io" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.title="${IMAGE_NAME}" \
io.parity.image.description="Malus - the nemesis of polkadot" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwichain-sdk/blob/${VCS_REF}/docker/dockerfiles/malus_injected.Dockerfile" \
io.parity.image.description="Malus - the nemesis of pezkuwi" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwi-sdk/blob/${VCS_REF}/docker/dockerfiles/malus_injected.Dockerfile" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwichain-sdk/"
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwi-sdk/"
# show backtraces
ENV RUST_BACKTRACE 1
@@ -39,7 +39,7 @@ RUN apt-get update && \
# add adder-collator binary to docker image
COPY ./artifacts/malus ./artifacts/polkadot-execute-worker ./artifacts/polkadot-prepare-worker /usr/local/bin
COPY ./artifacts/malus ./artifacts/pezkuwi-execute-worker ./artifacts/pezkuwi-prepare-worker /usr/local/bin
USER nonroot
@@ -8,11 +8,11 @@ ARG IMAGE_NAME
LABEL io.parity.image.authors="devops-team@parity.io" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.title="${IMAGE_NAME}" \
io.parity.image.description="Pezcumulus, the Polkadot collator." \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwichain-sdk/blob/${VCS_REF}/docker/dockerfiles/polkadot-parachain/polkadot-parachain-debug_unsigned_injected.Dockerfile" \
io.parity.image.description="Pezcumulus, the Pezkuwi collator." \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwi-sdk/blob/${VCS_REF}/docker/dockerfiles/pezkuwi-teyrchain/pezkuwi-teyrchain-debug_unsigned_injected.Dockerfile" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwichain-sdk/tree/master/pezcumulus"
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwi-sdk/tree/master/pezcumulus"
# show backtraces
ENV RUST_BACKTRACE 1
@@ -27,23 +27,23 @@ RUN apt-get update && \
apt-get autoremove -y && \
apt-get clean && \
find /var/lib/apt/lists/ -type f -not -name lock -delete; \
# add user and link ~/.local/share/polkadot-parachain to /data
useradd -m -u 1000 -U -s /bin/sh -d /polkadot-parachain polkadot-parachain && \
mkdir -p /data /polkadot-parachain/.local/share && \
chown -R polkadot-parachain:polkadot-parachain /data && \
ln -s /data /polkadot-parachain/.local/share/polkadot-parachain && \
# add user and link ~/.local/share/pezkuwi-teyrchain to /data
useradd -m -u 1000 -U -s /bin/sh -d /pezkuwi-teyrchain pezkuwi-teyrchain && \
mkdir -p /data /pezkuwi-teyrchain/.local/share && \
chown -R pezkuwi-teyrchain:pezkuwi-teyrchain /data && \
ln -s /data /pezkuwi-teyrchain/.local/share/pezkuwi-teyrchain && \
mkdir -p /specs
# add polkadot-parachain binary to the docker image
COPY ./artifacts/polkadot-parachain /usr/local/bin
COPY ./pezcumulus/parachains/chain-specs/*.json /specs/
# add pezkuwi-teyrchain binary to the docker image
COPY ./artifacts/pezkuwi-teyrchain /usr/local/bin
COPY ./pezcumulus/teyrchains/chain-specs/*.json /specs/
USER polkadot-parachain
USER pezkuwi-teyrchain
# check if executable works in this container
RUN /usr/local/bin/polkadot-parachain --version
RUN /usr/local/bin/pezkuwi-teyrchain --version
EXPOSE 30333 9933 9944
VOLUME ["/polkadot-parachain"]
VOLUME ["/pezkuwi-teyrchain"]
ENTRYPOINT ["/usr/local/bin/polkadot-parachain"]
ENTRYPOINT ["/usr/local/bin/pezkuwi-teyrchain"]
@@ -1,36 +1,36 @@
# This file is sourced from https://github.com/pezkuwichain/pezkuwichain-sdk/blob/master/docker/dockerfiles/polkadot-parachain/polkadot-parachain_builder.Dockerfile
# This is the build stage for polkadot-parachain. Here we create the binary in a temporary image.
# This file is sourced from https://github.com/pezkuwichain/pezkuwi-sdk/blob/master/docker/dockerfiles/pezkuwi-teyrchain/pezkuwi-teyrchain_builder.Dockerfile
# This is the build stage for pezkuwi-teyrchain. Here we create the binary in a temporary image.
FROM docker.io/paritytech/ci-linux:production as builder
WORKDIR /pezcumulus
COPY . /pezcumulus
RUN cargo build --release --locked -p polkadot-parachain
RUN cargo build --release --locked -p pezkuwi-teyrchain
# This is the 2nd stage: a very small image where we copy the Polkadot binary."
# This is the 2nd stage: a very small image where we copy the Pezkuwi binary."
FROM docker.io/library/ubuntu:20.04
LABEL io.parity.image.type="builder" \
io.parity.image.authors="devops-team@parity.io" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.description="Multistage Docker image for polkadot-parachain" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwichain-sdk/blob/${VCS_REF}/docker/dockerfiles/polkadot-parachain/polkadot-parachain_builder.Dockerfile" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwichain-sdk/tree/master/pezcumulus"
io.parity.image.description="Multistage Docker image for pezkuwi-teyrchain" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwi-sdk/blob/${VCS_REF}/docker/dockerfiles/pezkuwi-teyrchain/pezkuwi-teyrchain_builder.Dockerfile" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwi-sdk/tree/master/pezcumulus"
COPY --from=builder /pezcumulus/target/release/polkadot-parachain /usr/local/bin
COPY --from=builder /pezcumulus/target/release/pezkuwi-teyrchain /usr/local/bin
RUN useradd -m -u 1000 -U -s /bin/sh -d /pezcumulus polkadot-parachain && \
RUN useradd -m -u 1000 -U -s /bin/sh -d /pezcumulus pezkuwi-teyrchain && \
mkdir -p /data /pezcumulus/.local/share && \
chown -R polkadot-parachain:polkadot-parachain /data && \
ln -s /data /pezcumulus/.local/share/polkadot-parachain && \
chown -R pezkuwi-teyrchain:pezkuwi-teyrchain /data && \
ln -s /data /pezcumulus/.local/share/pezkuwi-teyrchain && \
# unclutter and minimize the attack surface
rm -rf /usr/bin /usr/sbin && \
# check if executable works in this container
/usr/local/bin/polkadot-parachain --version
/usr/local/bin/pezkuwi-teyrchain --version
USER polkadot-parachain
USER pezkuwi-teyrchain
EXPOSE 30333 9933 9944 9615
VOLUME ["/data"]
ENTRYPOINT ["/usr/local/bin/polkadot-parachain"]
ENTRYPOINT ["/usr/local/bin/pezkuwi-teyrchain"]
@@ -8,11 +8,11 @@ ARG IMAGE_NAME
LABEL io.parity.image.authors="devops-team@parity.io" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.title="${IMAGE_NAME}" \
io.parity.image.description="Pezcumulus, the Polkadot collator." \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwichain-sdk/blob/${VCS_REF}/docker/dockerfiles/polkadot-parachain/polkadot-parachain_injected.Dockerfile" \
io.parity.image.description="Pezcumulus, the Pezkuwi collator." \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwi-sdk/blob/${VCS_REF}/docker/dockerfiles/pezkuwi-teyrchain/pezkuwi-teyrchain_injected.Dockerfile" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwichain-sdk/"
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwi-sdk/"
# show backtraces
ENV RUST_BACKTRACE 1
@@ -21,7 +21,7 @@ USER root
RUN mkdir -p /specs
# add polkadot-parachain binary to the docker image
# add pezkuwi-teyrchain binary to the docker image
COPY bin/* /usr/local/bin/
COPY specs/* /specs/
@@ -30,9 +30,9 @@ RUN chmod -R a+rx "/usr/local/bin"
USER parity
# check if executable works in this container
RUN /usr/local/bin/polkadot-parachain --version
RUN /usr/local/bin/pezkuwi-teyrchain --version
EXPOSE 30333 9933 9944 9615
VOLUME ["/polkadot", "/specs"]
VOLUME ["/pezkuwi", "/specs"]
ENTRYPOINT ["/usr/local/bin/polkadot-parachain"]
ENTRYPOINT ["/usr/local/bin/pezkuwi-teyrchain"]
@@ -2,6 +2,6 @@
## [Pezkuwi](https://pezkuwichain.io/)
## [GitHub](https://github.com/paritytech/polkadot)
## [GitHub](https://github.com/pezkuwichain/pezkuwi-sdk)
## [Pezkuwi Wiki](https://wiki.network.pezkuwichain.io/)
@@ -1,37 +1,37 @@
# This is the build stage for Polkadot. Here we create the binary in a temporary image.
# This is the build stage for Pezkuwi. Here we create the binary in a temporary image.
FROM docker.io/paritytech/ci-unified:bullseye-1.88.0-2025-06-27-v202507112050 as builder
WORKDIR /polkadot
COPY . /polkadot
WORKDIR /pezkuwi
COPY . /pezkuwi
RUN cargo build --locked --release
# This is the 2nd stage: a very small image where we copy the Polkadot binary."
# This is the 2nd stage: a very small image where we copy the Pezkuwi binary."
FROM docker.io/paritytech/base-bin:latest
LABEL description="Multistage Docker image for Polkadot: a platform for web3" \
LABEL description="Multistage Docker image for Pezkuwi: a platform for web3" \
io.parity.image.type="builder" \
io.parity.image.authors="chevdor@gmail.com, devops-team@parity.io" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.description="Polkadot: a platform for web3" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwichain-sdk/blob/${VCS_REF}/docker/dockerfiles/polkadot/polkadot_builder.Dockerfile" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwichain-sdk/"
io.parity.image.description="Pezkuwi: a platform for web3" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwi-sdk/blob/${VCS_REF}/docker/dockerfiles/pezkuwi/pezkuwi_builder.Dockerfile" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwi-sdk/"
COPY --from=builder /polkadot/target/release/polkadot /usr/local/bin
COPY --from=builder /pezkuwi/target/release/pezkuwi /usr/local/bin
USER root
RUN useradd -m -u 1001 -U -s /bin/sh -d /polkadot polkadot && \
mkdir -p /data /polkadot/.local/share && \
chown -R polkadot:polkadot /data && \
ln -s /data /polkadot/.local/share/polkadot && \
RUN useradd -m -u 1001 -U -s /bin/sh -d /pezkuwi pezkuwi && \
mkdir -p /data /pezkuwi/.local/share && \
chown -R pezkuwi:pezkuwi /data && \
ln -s /data /pezkuwi/.local/share/pezkuwi && \
# unclutter and minimize the attack surface
rm -rf /usr/bin /usr/sbin && \
# check if executable works in this container
/usr/local/bin/polkadot --version
/usr/local/bin/pezkuwi --version
USER polkadot
USER pezkuwi
EXPOSE 30333 9933 9944 9615
VOLUME ["/data"]
ENTRYPOINT ["/usr/local/bin/polkadot"]
ENTRYPOINT ["/usr/local/bin/pezkuwi"]
@@ -5,16 +5,16 @@ ARG VCS_REF
ARG BUILD_DATE
ARG IMAGE_NAME
# That can be a single one or a comma separated list
ARG BINARY=polkadot
ARG BINARY=pezkuwi
LABEL io.parity.image.authors="devops-team@parity.io" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.title="parity/polkadot" \
io.parity.image.description="Polkadot: a platform for web3. This is the official Parity image with an injected binary." \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwichain-sdk/blob/${VCS_REF}/docker/dockerfiles/polkadot/polkadot_injected.Dockerfile" \
io.parity.image.title="parity/pezkuwi" \
io.parity.image.description="Pezkuwi: a platform for web3. This is the official Parity image with an injected binary." \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwi-sdk/blob/${VCS_REF}/docker/dockerfiles/pezkuwi/pezkuwi_injected.Dockerfile" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwichain-sdk/"
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwi-sdk/"
# show backtraces
ENV RUST_BACKTRACE 1
@@ -22,26 +22,26 @@ ENV RUST_BACKTRACE 1
USER root
WORKDIR /app
# add polkadot and polkadot-*-worker binaries to the docker image
# add pezkuwi and pezkuwi-*-worker binaries to the docker image
COPY bin/* /usr/local/bin/
COPY entrypoint.sh .
RUN chmod -R a+rx "/usr/local/bin"; \
mkdir -p /data /polkadot/.local/share && \
mkdir -p /data /pezkuwi/.local/share && \
chown -R parity:parity /data && \
ln -s /data /polkadot/.local/share/polkadot
ln -s /data /pezkuwi/.local/share/pezkuwi
USER parity
# check if executable works in this container
RUN /usr/local/bin/polkadot --version
RUN /usr/local/bin/polkadot-prepare-worker --version
RUN /usr/local/bin/polkadot-execute-worker --version
RUN /usr/local/bin/pezkuwi --version
RUN /usr/local/bin/pezkuwi-prepare-worker --version
RUN /usr/local/bin/pezkuwi-execute-worker --version
EXPOSE 30333 9933 9944 9615
VOLUME ["/polkadot"]
VOLUME ["/pezkuwi"]
ENV BINARY=${BINARY}
@@ -3,16 +3,16 @@ FROM docker.io/paritytech/base-bin
# metadata
ARG VCS_REF
ARG BUILD_DATE
ARG POLKADOT_VERSION
ARG PEZKUWI_VERSION
LABEL io.parity.image.authors="devops-team@parity.io" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.title="parity/polkadot" \
io.parity.image.description="Polkadot: a platform for web3. This is the official Parity image with an injected binary." \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwichain-sdk/blob/${VCS_REF}/scripts/ci/dockerfiles/polkadot/polkadot_injected_debian.Dockerfile" \
io.parity.image.title="parity/pezkuwi" \
io.parity.image.description="Pezkuwi: a platform for web3. This is the official Parity image with an injected binary." \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwi-sdk/blob/${VCS_REF}/docker/dockerfiles/pezkuwi/pezkuwi_injected_debian.Dockerfile" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwichain-sdk/"
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwi-sdk/"
USER root
@@ -21,22 +21,22 @@ ENV RUST_BACKTRACE 1
RUN \
apt-get update && \
apt-get install -y --no-install-recommends polkadot=${POLKADOT_VERSION#?} && \
apt-get install -y --no-install-recommends pezkuwi=${PEZKUWI_VERSION#?} && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* ; \
mkdir -p /data /polkadot/.local/share && \
mkdir -p /data /pezkuwi/.local/share && \
chown -R parity:parity /data && \
ln -s /data /polkadot/.local/share/polkadot
ln -s /data /pezkuwi/.local/share/pezkuwi
USER parity
# check if executable works in this container
RUN /usr/bin/polkadot --version
RUN /usr/lib/polkadot/polkadot-execute-worker --version
RUN /usr/lib/polkadot/polkadot-prepare-worker --version
RUN /usr/bin/pezkuwi --version
RUN /usr/lib/pezkuwi/pezkuwi-execute-worker --version
RUN /usr/lib/pezkuwi/pezkuwi-prepare-worker --version
EXPOSE 30333 9933 9944 9615
VOLUME ["/polkadot"]
VOLUME ["/pezkuwi"]
ENTRYPOINT ["/usr/bin/polkadot"]
ENTRYPOINT ["/usr/bin/pezkuwi"]
@@ -8,11 +8,11 @@ ARG IMAGE_NAME
LABEL io.parity.image.authors="devops-team@parity.io" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.title="${IMAGE_NAME}" \
io.parity.image.description="Polkadot: a platform for web3" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwichain-sdk/blob/${VCS_REF}/docker/dockerfiles/polkadot/polkadot_injected_debug.Dockerfile" \
io.parity.image.description="Pezkuwi: a platform for web3" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwi-sdk/blob/${VCS_REF}/docker/dockerfiles/pezkuwi/pezkuwi_injected_debug.Dockerfile" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwichain-sdk"
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwi-sdk"
# show backtraces
ENV RUST_BACKTRACE 1
@@ -26,26 +26,26 @@ RUN apt-get update && \
apt-get autoremove -y && \
apt-get clean && \
find /var/lib/apt/lists/ -type f -not -name lock -delete; \
# add user and link ~/.local/share/polkadot to /data
useradd -m -u 1000 -U -s /bin/sh -d /polkadot polkadot && \
mkdir -p /data /polkadot/.local/share /polkdot/runtimes && \
chown -R polkadot:polkadot /data && \
ln -s /data /polkadot/.local/share/polkadot
# add user and link ~/.local/share/pezkuwi to /data
useradd -m -u 1000 -U -s /bin/sh -d /pezkuwi pezkuwi && \
mkdir -p /data /pezkuwi/.local/share /pezkuwi/runtimes && \
chown -R pezkuwi:pezkuwi /data && \
ln -s /data /pezkuwi/.local/share/pezkuwi
# add polkadot binaries to docker image
COPY ./artifacts/polkadot ./artifacts/polkadot-execute-worker ./artifacts/polkadot-prepare-worker /usr/local/bin
# add pezkuwi binaries to docker image
COPY ./artifacts/pezkuwi ./artifacts/pezkuwi-execute-worker ./artifacts/pezkuwi-prepare-worker /usr/local/bin
# add runtime binaries to docker image
COPY ./artifacts/runtimes /polkadot/runtimes/
COPY ./artifacts/runtimes /pezkuwi/runtimes/
USER polkadot
USER pezkuwi
# check if executable works in this container
RUN /usr/local/bin/polkadot --version
RUN /usr/local/bin/polkadot-execute-worker --version
RUN /usr/local/bin/polkadot-prepare-worker --version
RUN /usr/local/bin/pezkuwi --version
RUN /usr/local/bin/pezkuwi-execute-worker --version
RUN /usr/local/bin/pezkuwi-prepare-worker --version
EXPOSE 30333 9933 9944
VOLUME ["/polkadot"]
VOLUME ["/pezkuwi"]
ENTRYPOINT ["/usr/local/bin/polkadot"]
ENTRYPOINT ["/usr/local/bin/pezkuwi"]
@@ -3,18 +3,18 @@ FROM docker.io/library/ubuntu:20.04
# metadata
ARG VCS_REF
ARG BUILD_DATE
ARG POLKADOT_VERSION
ARG POLKADOT_GPGKEY=9D4B2B6EB8F97156D19669A9FF0812D491B96798
ARG PEZKUWI_VERSION
ARG PEZKUWI_GPGKEY=9D4B2B6EB8F97156D19669A9FF0812D491B96798
ARG GPG_KEYSERVER="keyserver.ubuntu.com"
LABEL io.parity.image.authors="devops-team@parity.io" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.title="parity/polkadot" \
io.parity.image.description="Polkadot: a platform for web3. This is the official Parity image with an injected binary." \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwichain-sdk/blob/${VCS_REF}/docker/dockerfiles/polkadot/polkadot_injected_release.Dockerfile" \
io.parity.image.title="parity/pezkuwi" \
io.parity.image.description="Pezkuwi: a platform for web3. This is the official Parity image with an injected binary." \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwi-sdk/blob/${VCS_REF}/docker/dockerfiles/pezkuwi/pezkuwi_injected_release.Dockerfile" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwichain-sdk/"
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwi-sdk/"
# show backtraces
ENV RUST_BACKTRACE 1
@@ -25,29 +25,29 @@ RUN apt-get update && \
libssl1.1 \
ca-certificates \
gnupg && \
useradd -m -u 1000 -U -s /bin/sh -d /polkadot polkadot && \
# add repo's gpg keys and install the published polkadot binary
gpg --keyserver ${GPG_KEYSERVER} --recv-keys ${POLKADOT_GPGKEY} && \
gpg --export ${POLKADOT_GPGKEY} > /usr/share/keyrings/parity.gpg && \
useradd -m -u 1000 -U -s /bin/sh -d /pezkuwi pezkuwi && \
# add repo's gpg keys and install the published pezkuwi binary
gpg --keyserver ${GPG_KEYSERVER} --recv-keys ${PEZKUWI_GPGKEY} && \
gpg --export ${PEZKUWI_GPGKEY} > /usr/share/keyrings/parity.gpg && \
echo 'deb [signed-by=/usr/share/keyrings/parity.gpg] https://releases.parity.io/deb release main' > /etc/apt/sources.list.d/parity.list && \
apt-get update && \
apt-get install -y --no-install-recommends polkadot=${POLKADOT_VERSION#?} && \
apt-get install -y --no-install-recommends pezkuwi=${PEZKUWI_VERSION#?} && \
# apt cleanup
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* ; \
mkdir -p /data /polkadot/.local/share && \
chown -R polkadot:polkadot /data && \
ln -s /data /polkadot/.local/share/polkadot
mkdir -p /data /pezkuwi/.local/share && \
chown -R pezkuwi:pezkuwi /data && \
ln -s /data /pezkuwi/.local/share/pezkuwi
USER polkadot
USER pezkuwi
# check if executable works in this container
RUN /usr/bin/polkadot --version
RUN /usr/local/bin/polkadot-execute-worker --version
RUN /usr/local/bin/polkadot-prepare-worker --version
RUN /usr/bin/pezkuwi --version
RUN /usr/local/bin/pezkuwi-execute-worker --version
RUN /usr/local/bin/pezkuwi-prepare-worker --version
EXPOSE 30333 9933 9944
VOLUME ["/polkadot"]
VOLUME ["/pezkuwi"]
ENTRYPOINT ["/usr/bin/polkadot"]
ENTRYPOINT ["/usr/bin/pezkuwi"]
@@ -1,10 +1,10 @@
# This file is sourced from https://github.com/pezkuwichain/pezkuwichain-sdk/blob/master/docker/dockerfiles/test-parachain-collator.Dockerfile
# This file is sourced from https://github.com/pezkuwichain/pezkuwi-sdk/blob/master/docker/dockerfiles/test-teyrchain-collator.Dockerfile
FROM docker.io/paritytech/ci-linux:production as builder
WORKDIR /pezcumulus
COPY . /pezcumulus
RUN cargo build --release --locked -p polkadot-parachain
RUN cargo build --release --locked -p pezkuwi-teyrchain
# the collator stage is normally built once, cached, and then ignored, but can
# be specified with the --target build flag. This adds some extra tooling to the
@@ -23,7 +23,7 @@ RUN apt-get update && apt-get install jq curl bash -y && \
npm install --global yarn && \
yarn global add @polkadot/api-cli@0.10.0-beta.14
COPY --from=builder \
/paritytech/pezcumulus/target/release/polkadot-parachain /usr/bin
/paritytech/pezcumulus/target/release/pezkuwi-teyrchain /usr/bin
COPY ./docker/scripts/inject_bootnodes.sh /usr/bin
CMD ["/usr/bin/inject_bootnodes.sh"]
COPY ./docker/scripts/healthcheck.sh /usr/bin/
@@ -35,12 +35,12 @@ HEALTHCHECK --interval=300s --timeout=75s --start-period=30s --retries=3 \
# outputs, which can then be moved into a volume at runtime
FROM debian:buster-slim as runtime
COPY --from=builder \
/paritytech/pezcumulus/target/release/wbuild/pezcumulus-test-parachain-runtime/cumulus_test_parachain_runtime.compact.wasm \
/paritytech/pezcumulus/target/release/wbuild/pezcumulus-test-teyrchain-runtime/pezcumulus_test_teyrchain_runtime.compact.wasm \
/var/opt/
CMD ["cp", "-v", "/var/opt/cumulus_test_parachain_runtime.compact.wasm", "/runtime/"]
CMD ["cp", "-v", "/var/opt/pezcumulus_test_teyrchain_runtime.compact.wasm", "/runtime/"]
FROM debian:buster-slim
COPY --from=builder \
/paritytech/pezcumulus/target/release/polkadot-parachain /usr/bin
/paritytech/pezcumulus/target/release/pezkuwi-teyrchain /usr/bin
CMD ["/usr/bin/polkadot-parachain"]
CMD ["/usr/bin/pezkuwi-teyrchain"]
@@ -8,11 +8,11 @@ ARG IMAGE_NAME
LABEL io.parity.image.authors="devops-team@parity.io" \
io.parity.image.vendor="Parity Technologies" \
io.parity.image.title="${IMAGE_NAME}" \
io.parity.image.description="Test parachain for Zombienet" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwichain-sdk/blob/${VCS_REF}/docker/dockerfiles/test-parachain_injected.Dockerfile" \
io.parity.image.description="Test teyrchain for Zombienet" \
io.parity.image.source="https://github.com/pezkuwichain/pezkuwi-sdk/blob/${VCS_REF}/docker/dockerfiles/test-teyrchain_injected.Dockerfile" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}" \
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwichain-sdk/tree/master/pezcumulus"
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwi-sdk/tree/master/pezcumulus"
# show backtraces
ENV RUST_BACKTRACE 1
@@ -27,23 +27,23 @@ RUN apt-get update && \
apt-get autoremove -y && \
apt-get clean && \
find /var/lib/apt/lists/ -type f -not -name lock -delete; \
# add user and link ~/.local/share/test-parachain to /data
useradd -m -u 10000 -U -s /bin/sh -d /test-parachain test-parachain && \
mkdir -p /data /test-parachain/.local/share && \
chown -R test-parachain:test-parachain /data && \
ln -s /data /test-parachain/.local/share/test-parachain && \
# add user and link ~/.local/share/test-teyrchain to /data
useradd -m -u 10000 -U -s /bin/sh -d /test-teyrchain test-teyrchain && \
mkdir -p /data /test-teyrchain/.local/share && \
chown -R test-teyrchain:test-teyrchain /data && \
ln -s /data /test-teyrchain/.local/share/test-teyrchain && \
mkdir -p /specs
# add test-parachain binary to the docker image
COPY ./artifacts/test-parachain /usr/local/bin
COPY ./pezcumulus/parachains/chain-specs/*.json /specs/
# add test-teyrchain binary to the docker image
COPY ./artifacts/test-teyrchain /usr/local/bin
COPY ./pezcumulus/teyrchains/chain-specs/*.json /specs/
USER test-parachain
USER test-teyrchain
# check if executable works in this container
RUN /usr/local/bin/test-parachain --version
RUN /usr/local/bin/test-teyrchain --version
EXPOSE 30333 9933 9944
VOLUME ["/test-parachain"]
VOLUME ["/test-teyrchain"]
ENTRYPOINT ["/usr/local/bin/test-parachain"]
ENTRYPOINT ["/usr/local/bin/test-teyrchain"]
+6 -6
View File
@@ -1,13 +1,13 @@
[Unit]
Description=Polkadot Node
Description=Pezkuwi Node
After=network.target
Documentation=https://github.com/pezkuwichain/pezkuwichain-sdk
Documentation=https://github.com/pezkuwichain/pezkuwi-sdk
[Service]
EnvironmentFile=-/etc/default/polkadot
ExecStart=/usr/bin/polkadot $POLKADOT_CLI_ARGS
User=polkadot
Group=polkadot
EnvironmentFile=-/etc/default/pezkuwi
ExecStart=/usr/bin/pezkuwi $PEZKUWI_CLI_ARGS
User=pezkuwi
Group=pezkuwi
Restart=always
RestartSec=120
CapabilityBoundingSet=
@@ -54,7 +54,7 @@ async function run(nodeName, networkInfo, _jsArgs) {
unsub();
return resolve();
} else if (result.isError) {
// Probably happens because of: https://github.com/pezkuwichain/pezkuwichain-sdk/issues/1202.
// Probably happens because of: https://github.com/pezkuwichain/pezkuwi-sdk/issues/1202.
console.log(`Transaction error`);
// We ignore the error because it is very likely misleading, because of the issue mentioned above.
unsub();
+4 -4
View File
@@ -1,13 +1,13 @@
#!/bin/bash
# Find all Cargo.toml files excluding the root,umbrella/Cargo.toml,
# bizinikiwi/frame/contracts/fixtures/build/Cargo.toml,
# bizinikiwi/frame/contracts/fixtures/contracts/common/Cargo.toml
# bizinikiwi/pezframe/contracts/fixtures/build/Cargo.toml,
# bizinikiwi/pezframe/contracts/fixtures/contracts/common/Cargo.toml
find . -name "Cargo.toml" \
! -path "./Cargo.toml" \
! -path "./umbrella/Cargo.toml" \
! -path "./bizinikiwi/frame/contracts/fixtures/build/Cargo.toml" \
! -path "./bizinikiwi/frame/contracts/fixtures/contracts/common/Cargo.toml"| while read -r file; do
! -path "./bizinikiwi/pezframe/contracts/fixtures/build/Cargo.toml" \
! -path "./bizinikiwi/pezframe/contracts/fixtures/contracts/common/Cargo.toml"| while read -r file; do
echo "Processing $file..."
+4 -4
View File
@@ -37,7 +37,7 @@ export RUSTFLAGS="-C debug-assertions -D warnings"
# ./bizinikiwi
$RUSTUP_RUN cargo test -q --locked --manifest-path bizinikiwi/primitives/runtime-interface/Cargo.toml ui
$RUSTUP_RUN cargo test -q --locked -p sp-api-test ui
$RUSTUP_RUN cargo test -q --locked -p frame-election-provider-solution-type ui
$RUSTUP_RUN cargo test -q --locked -p frame-support-test --features=no-metadata-docs,try-runtime,experimental ui
$RUSTUP_RUN cargo test -q --locked -p xcm-procedural ui
$RUSTUP_RUN cargo test -q --locked -p pezsp-api-test ui
$RUSTUP_RUN cargo test -q --locked -p pezframe-election-provider-solution-type ui
$RUSTUP_RUN cargo test -q --locked -p pezframe-support-test --features=no-metadata-docs,try-runtime,experimental ui
$RUSTUP_RUN cargo test -q --locked -p xcm-pez-procedural ui
+8 -8
View File
@@ -1,26 +1,26 @@
FROM docker.io/paritytech/ci-unified:latest as builder
WORKDIR /polkadot
COPY . /polkadot
WORKDIR /pezkuwi
COPY . /pezkuwi
RUN cargo fetch
RUN cargo build --workspace --locked --release
FROM docker.io/parity/base-bin:latest
COPY --from=builder /polkadot/target/release/minimal-template-node /usr/local/bin
COPY --from=builder /pezkuwi/target/release/minimal-template-node /usr/local/bin
USER root
RUN useradd -m -u 1001 -U -s /bin/sh -d /polkadot polkadot && \
mkdir -p /data /polkadot/.local/share && \
chown -R polkadot:polkadot /data && \
ln -s /data /polkadot/.local/share/polkadot && \
RUN useradd -m -u 1001 -U -s /bin/sh -d /pezkuwi pezkuwi && \
mkdir -p /data /pezkuwi/.local/share && \
chown -R pezkuwi:pezkuwi /data && \
ln -s /data /pezkuwi/.local/share/pezkuwi && \
# unclutter and minimize the attack surface
rm -rf /usr/bin /usr/sbin && \
# check if executable works in this container
/usr/local/bin/minimal-template-node --version
USER polkadot
USER pezkuwi
EXPOSE 30333 9933 9944 9615
VOLUME ["/data"]
+8 -8
View File
@@ -1,26 +1,26 @@
FROM docker.io/paritytech/ci-unified:latest as builder
WORKDIR /polkadot
COPY . /polkadot
WORKDIR /pezkuwi
COPY . /pezkuwi
RUN cargo fetch
RUN cargo build --locked --release
FROM docker.io/parity/base-bin:latest
COPY --from=builder /polkadot/target/release/solochain-template-node /usr/local/bin
COPY --from=builder /pezkuwi/target/release/solochain-template-node /usr/local/bin
USER root
RUN useradd -m -u 1001 -U -s /bin/sh -d /polkadot polkadot && \
mkdir -p /data /polkadot/.local/share && \
chown -R polkadot:polkadot /data && \
ln -s /data /polkadot/.local/share/polkadot && \
RUN useradd -m -u 1001 -U -s /bin/sh -d /pezkuwi pezkuwi && \
mkdir -p /data /pezkuwi/.local/share && \
chown -R pezkuwi:pezkuwi /data && \
ln -s /data /pezkuwi/.local/share/pezkuwi && \
# unclutter and minimize the attack surface
rm -rf /usr/bin /usr/sbin && \
# check if executable works in this container
/usr/local/bin/solochain-template-node --version
USER polkadot
USER pezkuwi
EXPOSE 30333 9933 9944 9615
VOLUME ["/data"]
+10 -10
View File
@@ -1,28 +1,28 @@
FROM docker.io/paritytech/ci-unified:latest as builder
WORKDIR /polkadot
COPY . /polkadot
WORKDIR /pezkuwi
COPY . /pezkuwi
RUN cargo fetch
RUN cargo build --workspace --locked --profile production
FROM docker.io/parity/base-bin:latest
COPY --from=builder /polkadot/target/production/parachain-template-node /usr/local/bin
COPY --from=builder /pezkuwi/target/production/teyrchain-template-node /usr/local/bin
USER root
RUN useradd -m -u 1001 -U -s /bin/sh -d /polkadot polkadot && \
mkdir -p /data /polkadot/.local/share && \
chown -R polkadot:polkadot /data && \
ln -s /data /polkadot/.local/share/polkadot && \
RUN useradd -m -u 1001 -U -s /bin/sh -d /pezkuwi pezkuwi && \
mkdir -p /data /pezkuwi/.local/share && \
chown -R pezkuwi:pezkuwi /data && \
ln -s /data /pezkuwi/.local/share/pezkuwi && \
# unclutter and minimize the attack surface
rm -rf /usr/bin /usr/sbin && \
# check if executable works in this container
/usr/local/bin/parachain-template-node --version
/usr/local/bin/teyrchain-template-node --version
USER polkadot
USER pezkuwi
EXPOSE 30333 9933 9944 9615
VOLUME ["/data"]
ENTRYPOINT ["/usr/local/bin/parachain-template-node"]
ENTRYPOINT ["/usr/local/bin/teyrchain-template-node"]