forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stable-rc tags to the docker images (paritytech#5896)
This PR adds the `stableYYMM-rcX` or `stableYYMM-X-rcX` tags to the docker images, so that they could be published with the new tag naming scheme. Closes: paritytech/release-engineering#224
- Loading branch information
1 parent
261b3da
commit 826f16f
Showing
5 changed files
with
94 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
FROM docker.io/parity/base-bin | ||
|
||
# metadata | ||
ARG VCS_REF | ||
ARG BUILD_DATE | ||
ARG IMAGE_NAME | ||
# That can be a single one or a comma separated list | ||
ARG BINARY=polkadot | ||
|
||
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/paritytech/polkadot-sdk/blob/${VCS_REF}/docker/dockerfiles/polkadot/polkadot_injected.Dockerfile" \ | ||
io.parity.image.revision="${VCS_REF}" \ | ||
io.parity.image.created="${BUILD_DATE}" \ | ||
io.parity.image.documentation="https://github.com/paritytech/polkadot-sdk/" | ||
|
||
# show backtraces | ||
ENV RUST_BACKTRACE 1 | ||
|
||
USER root | ||
WORKDIR /app | ||
|
||
# add polkadot and polkadot-*-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 && \ | ||
chown -R parity:parity /data && \ | ||
ln -s /data /polkadot/.local/share/polkadot | ||
|
||
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 | ||
|
||
|
||
EXPOSE 30333 9933 9944 9615 | ||
VOLUME ["/polkadot"] | ||
|
||
ENV BINARY=${BINARY} | ||
|
||
# ENTRYPOINT | ||
ENTRYPOINT ["/app/entrypoint.sh"] | ||
|
||
# We call the help by default | ||
CMD ["--help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters