Files
pezkuwi-sdk/docker/dockerfiles/test-teyrchain-collator.Dockerfile
T
pezkuwichain 8acf59c6aa 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/
2025-12-23 09:37:11 +03:00

47 lines
2.1 KiB
Docker

# 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 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
# image, which is required for a launcher script. The script simply adds two
# arguments to the list passed in:
#
# --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/PEER_ID
#
# with the appropriate ip and ID for both Alice and Bob
FROM debian:buster-slim as collator
RUN apt-get update && apt-get install jq curl bash -y && \
curl -sSo /wait-for-it.sh https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh && \
chmod +x /wait-for-it.sh && \
curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
apt-get install -y nodejs && \
npm install --global yarn && \
yarn global add @polkadot/api-cli@0.10.0-beta.14
COPY --from=builder \
/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/
HEALTHCHECK --interval=300s --timeout=75s --start-period=30s --retries=3 \
CMD ["/usr/bin/healthcheck.sh"]
# the runtime stage is normally built once, cached, and ignored, but can be
# specified with the --target build flag. This just preserves one of the builder's
# 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-teyrchain-runtime/pezcumulus_test_teyrchain_runtime.compact.wasm \
/var/opt/
CMD ["cp", "-v", "/var/opt/pezcumulus_test_teyrchain_runtime.compact.wasm", "/runtime/"]
FROM debian:buster-slim
COPY --from=builder \
/paritytech/pezcumulus/target/release/pezkuwi-teyrchain /usr/bin
CMD ["/usr/bin/pezkuwi-teyrchain"]