Files
pezkuwi-subxt/cumulus/docker/injected.Dockerfile
T
Egor_P 953a07a2c6 Refactor docker image build (#3045)
* add lib.sh file from polkadot to reuse existing functionality

* use personal repo for test

* add debug line for visibility

* add more debug

* make lib.sh executable

* more debugging

* add permissons to read conents

* test write permissions for the contents

* try download wothout token

* cleanup

* add lib.sh from polkadot to the manual step

* add new manual docker image build + renaming of the release image build

* replace existing manual docker image publishing to test

* add checkout of lib.sh from polkadot

* copy lib.sh from temp to the artifacts folder

* change path to the artifacts folder and cleanup

* rename to test

* make binary executable

* fix path to binary in the for loop

* add debug

* make bin executable right after fetching it

* change is_final field to a string value

* Add semver version extraction for a tag

* add tags to the image

* tag iamge after it was built

* refactor tagging

* fix docker owner issue in build step

* push right after tagging in loop

* rename of the file

* cleanup

* update workflow description

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>

* use choice to determine type of the image

* add combimed flow for image piublishing

* change conditions

* change conditions for event action

* test another conditions

* fix conditions

* fix typo in conditions

* split fetching artifacts into release and rc

* fix if

* split the rest based on rc or release image

* refactor push and check

* fix if in rc artifacts fetch

* copy lib.sh to the artifacts dir

* cleanup

* address PR comments

---------

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
2023-08-24 08:49:48 +00:00

37 lines
991 B
Docker

FROM docker.io/parity/base-bin
# metadata
ARG VCS_REF
ARG BUILD_DATE
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="Cumulus, the Polkadot collator." \
io.parity.image.source="https://github.com/paritytech/polkadot/blob/${VCS_REF}/scripts/docker/Dockerfile" \
io.parity.image.revision="${VCS_REF}" \
io.parity.image.created="${BUILD_DATE}" \
io.parity.image.documentation="https://github.com/paritytech/cumulus/"
# show backtraces
ENV RUST_BACKTRACE 1
USER root
RUN mkdir -p /specs
# add polkadot-parachain binary to the docker image
COPY ./release-artifacts/* /usr/local/bin
COPY ./parachains/chain-specs/*.json /specs/
USER parity
# check if executable works in this container
RUN /usr/local/bin/polkadot-parachain --version
EXPOSE 30333 9933 9944 9615
VOLUME ["/polkadot", "/specs"]
ENTRYPOINT ["/usr/local/bin/polkadot-parachain"]