-
Notifications
You must be signed in to change notification settings - Fork 135
/
Dockerfile.combined
64 lines (46 loc) · 2.51 KB
/
Dockerfile.combined
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# syntax=docker/dockerfile:1
# Dockerfile.combined defines a docker image using different provider/consumer versions
# originated from other docker images.
# This image is used to test different versions of provider and consumer together.
#
# Use docker's build argument --build-arg to specify the consumer/provider image to be used
# e.g. docker build --build-arg CONSUMER_IMAGE=v3.1.0 --build-arg PROVIDER_IMAGE=v3.1.0
ARG PROVIDER_IMAGE
ARG CONSUMER_IMAGE
# TRANSFORMER_IMAGE is the ICS image containing the version of the consumer executable to be used
# to perform the transformation of the consumer genesis exported from the provider.
ARG TRANSFORMER_IMAGE
# The image from where the consumer implementation will be used
# Defaults to
FROM --platform=linux/amd64 ${PROVIDER_IMAGE} AS provider
# The image from where the consumer implementation will be used
# Defaults to
FROM --platform=linux/amd64 ${CONSUMER_IMAGE} AS consumer
# Get Hermes build
# TODO: import Hermes release from ghcr.io/informalsystems repository when
# a Hermes release contains the patch in
# https://github.com/informalsystems/hermes/pull/4182
FROM --platform=linux/amd64 otacrew/hermes-ics:latest AS hermes-builder
# Get GoRelayer
FROM ghcr.io/informalsystems/relayer-no-gas-sim:v2.3.0-rc4-no-gas-sim AS gorelayer-builder
# Transformer
FROM --platform=linux/amd64 ${TRANSFORMER_IMAGE} AS transformer
FROM --platform=linux/amd64 fedora:39
RUN dnf update -y
RUN dnf install -y which iproute iputils procps-ng vim-minimal tmux net-tools htop jq
USER root
COPY --from=hermes-builder /usr/bin/hermes /usr/local/bin/
COPY --from=gorelayer-builder /bin/rly /usr/local/bin/
# Copy consumer from specified image
COPY --from=consumer /usr/local/bin/interchain-security-cd /usr/local/bin/interchain-security-cd
COPY --from=consumer /usr/local/bin/interchain-security-cdd /usr/local/bin/interchain-security-cdd
COPY --from=consumer /usr/local/bin/interchain-security-sd /usr/local/bin/interchain-security-sd
COPY --from=consumer /testnet-scripts /consumer/testnet-scripts
# Copy provider from specified image
COPY --from=provider /usr/local/bin/interchain-security-pd /usr/local/bin/interchain-security-pd
COPY --from=provider /testnet-scripts /provider/testnet-scripts
#Copy cometmock from provider image
COPY --from=provider /usr/local/bin/cometmock /usr/local/bin
# Copy in the hermes config
ADD ./tests/e2e/testnet-scripts/hermes-config.toml /root/.hermes/config.toml
COPY --from=transformer /usr/local/bin/interchain-security-cd /usr/local/bin/interchain-security-transformer