mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 01:47:55 +00:00
eeb368ed9c
* add ghw and scripts for docker image deployment * debug * add permissions for content * fix path to the bin folder * add tags * rename env * fix path to docker file * make polkadot-parachain executable * fix typo * fix more typos * test * revert back use of working directory * mke bin executable in the artifacts folder * use cd instead of working directory * change path to cash * fix path to cash * change cache key * delete old flows * addressed PR comments * fix path * reorg docker files
51 lines
1.5 KiB
Docker
51 lines
1.5 KiB
Docker
FROM debian:bullseye-slim
|
|
|
|
# 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="Malus - the nemesis of polkadot" \
|
|
io.parity.image.source="https://github.com/paritytech/polkadot/blob/${VCS_REF}/scripts/ci/dockerfiles/malus.Dockerfile" \
|
|
io.parity.image.revision="${VCS_REF}" \
|
|
io.parity.image.created="${BUILD_DATE}" \
|
|
io.parity.image.documentation="https://github.com/paritytech/polkadot/"
|
|
|
|
# show backtraces
|
|
ENV RUST_BACKTRACE 1
|
|
|
|
# install tools and dependencies
|
|
RUN apt-get update && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
ca-certificates \
|
|
curl \
|
|
libssl1.1 \
|
|
tini && \
|
|
# apt cleanup
|
|
apt-get autoremove -y && \
|
|
apt-get clean && \
|
|
find /var/lib/apt/lists/ -type f -not -name lock -delete; \
|
|
# add user
|
|
groupadd --gid 10000 nonroot && \
|
|
useradd --home-dir /home/nonroot \
|
|
--create-home \
|
|
--shell /bin/bash \
|
|
--gid nonroot \
|
|
--groups nonroot \
|
|
--uid 10000 nonroot
|
|
|
|
|
|
# add adder-collator binary to docker image
|
|
COPY ./artifacts/malus ./artifacts/polkadot-execute-worker ./artifacts/polkadot-prepare-worker /usr/local/bin
|
|
|
|
USER nonroot
|
|
|
|
# check if executable works in this container
|
|
RUN /usr/local/bin/malus --version
|
|
|
|
# Tini allows us to avoid several Docker edge cases, see https://github.com/krallin/tini.
|
|
ENTRYPOINT ["tini", "--", "/bin/bash"]
|