379cb741ed
This commit systematically rebrands various references from Parity Technologies' Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk. Key changes include: - Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks. - Modified internal documentation and code comments to reflect PezkuwiChain naming and structure. - Replaced direct references to with or specific paths within the for XCM, Pezkuwi, and other modules. - Cleaned up deprecated issue and PR references in various and files, particularly in and modules. - Adjusted image and logo URLs in documentation to point to PezkuwiChain assets. - Removed or rephrased comments related to external Polkadot/Substrate PRs and issues. This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
60 lines
2.3 KiB
Docker
60 lines
2.3 KiB
Docker
# this image is built on top of existing Zombienet image
|
|
ARG ZOMBIENET_IMAGE
|
|
# this image uses bizinikiwi-relay image built elsewhere
|
|
ARG SUBSTRATE_RELAY_IMAGE=docker.io/paritytech/bizinikiwi-relay:v1.8.0
|
|
|
|
# metadata
|
|
ARG VCS_REF
|
|
ARG BUILD_DATE
|
|
ARG IMAGE_NAME
|
|
|
|
# we need `bizinikiwi-relay` binary, built elsewhere
|
|
FROM ${SUBSTRATE_RELAY_IMAGE} as relay-builder
|
|
|
|
# the base image is the zombienet image - we are planning to run zombienet tests using native
|
|
# provider here
|
|
FROM ${ZOMBIENET_IMAGE}
|
|
|
|
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.revision="${VCS_REF}" \
|
|
io.parity.image.created="${BUILD_DATE}" \
|
|
io.parity.image.documentation="https://github.com/pezkuwichain/pezkuwichain-sdk/bridges/testing"
|
|
|
|
# show backtraces
|
|
ENV RUST_BACKTRACE 1
|
|
USER root
|
|
|
|
# for native provider to work (TODO: fix in zn docker?)
|
|
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
|
|
# 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
|
|
# 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; \
|
|
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/bizinikiwi-relay --version
|
|
|
|
# https://polkadot.js.org/apps/?rpc=ws://127.0.0.1:{PORT}#/explorer
|
|
EXPOSE 9942 9910 8943 9945 9010 8945
|