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