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:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user