mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 02:21:14 +00:00
114f487fd9
1602249f0a Enable Beefy debug logs in test deployment (#1237) c61d240b47 Fix storage parameter name computation (#1238) 96d3808e88 Integrate BEEFY with Rialto & Millau runtimes (#1227) f75a1bdd9b update dependencies (#1229) 957da03854 Add mut support (#1232) 8062637289 fixed set_operational in GRANDPA pallet (#1226) 14b36ca4ee Add CODEOWNERS file (#1219) 3bec15766f Unify metric names (#1209) 0e839d2423 remove abandoned exchange relay (#1217) 2c91c6815c Remove unused `relays/headers` (#1216) 80b1e65db8 Remove unused PoA<>Substrate bridge (#1210) f36f76fc2a Fix UI deployment. (#1211) fc0b65365b Add `AtLeast32BitUnsigned` for MessageLance::SourceChainBalance (#1207) git-subtree-dir: bridges git-subtree-split: 1602249f0a258b8bc95d3ff5b8c8851fc97f42f4
54 lines
1.8 KiB
Docker
54 lines
1.8 KiB
Docker
# This file is a "runtime" part from a builder-pattern in Dockerfile, it's used in CI.
|
|
# The only different part is that the compilation happens externally,
|
|
# so COPY has a different source.
|
|
FROM ubuntu:20.04
|
|
|
|
# show backtraces
|
|
ENV RUST_BACKTRACE 1
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN set -eux; \
|
|
apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
curl ca-certificates libssl-dev && \
|
|
update-ca-certificates && \
|
|
groupadd -g 1000 user && \
|
|
useradd -u 1000 -g user -s /bin/sh -m user && \
|
|
# apt clean up
|
|
apt-get autoremove -y && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# switch to non-root user
|
|
USER user
|
|
|
|
WORKDIR /home/user
|
|
|
|
ARG PROJECT=substrate-relay
|
|
|
|
COPY --chown=user:user ./${PROJECT} ./
|
|
COPY --chown=user:user ./bridge-entrypoint.sh ./
|
|
|
|
# check if executable works in this container
|
|
RUN ./${PROJECT} --version
|
|
|
|
ENV PROJECT=$PROJECT
|
|
ENTRYPOINT ["/home/user/bridge-entrypoint.sh"]
|
|
|
|
# metadata
|
|
ARG VCS_REF=master
|
|
ARG BUILD_DATE=""
|
|
ARG VERSION=""
|
|
|
|
LABEL org.opencontainers.image.title="${PROJECT}" \
|
|
org.opencontainers.image.description="${PROJECT} - component of Parity Bridges Common" \
|
|
org.opencontainers.image.source="https://github.com/paritytech/parity-bridges-common/blob/${VCS_REF}/ci.Dockerfile" \
|
|
org.opencontainers.image.url="https://github.com/paritytech/parity-bridges-common/blob/${VCS_REF}/ci.Dockerfile" \
|
|
org.opencontainers.image.documentation="https://github.com/paritytech/parity-bridges-common/blob/${VCS_REF}/README.md" \
|
|
org.opencontainers.image.created="${BUILD_DATE}" \
|
|
org.opencontainers.image.version="${VERSION}" \
|
|
org.opencontainers.image.revision="${VCS_REF}" \
|
|
org.opencontainers.image.authors="devops-team@parity.io" \
|
|
org.opencontainers.image.vendor="Parity Technologies" \
|
|
org.opencontainers.image.licenses="GPL-3.0 License"
|