Skip to content

Commit

Permalink
chore: update image to use arg polkadot version
Browse files Browse the repository at this point in the history
  • Loading branch information
EclesioMeloJunior committed Mar 4, 2022
1 parent e12686d commit 03c89c6
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 14 deletions.
6 changes: 4 additions & 2 deletions devnet/alice.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

FROM golang:1.17

# Using a genesis file with 3 authority nodes (alice, bob, charlie) generated using polkadot v0.9.10
ARG CHAIN=3-auth-node-0.9.10
ARG POLKADOT_VERSION=v0.9.10

# Using a genesis file with 3 authority nodes (alice, bob, charlie) generated using polkadot $POLKADOT_VERSION
ARG CHAIN=3-auth-node-${POLKADOT_VERSION}
ARG DD_API_KEY=somekey

ENV DD_API_KEY=${DD_API_KEY}
Expand Down
7 changes: 5 additions & 2 deletions devnet/bob.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Copyright 2021 ChainSafe Systems (ON)
# SPDX-License-Identifier: LGPL-3.0-only


FROM golang:1.17

# Using a genesis file with 3 authority nodes (alice, bob, charlie) generated using polkadot v0.9.10
ARG CHAIN=3-auth-node-0.9.10
ARG POLKADOT_VERSION=v0.9.10

# Using a genesis file with 3 authority nodes (alice, bob, charlie) generated using polkadot $POLKADOT_VERSION
ARG CHAIN=3-auth-node-${POLKADOT_VERSION}
ARG DD_API_KEY=somekey

ENV DD_API_KEY=${DD_API_KEY}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,4 @@
"childrenDefault": {}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,4 @@
}
}
}
}
}
11 changes: 8 additions & 3 deletions devnet/substrate_alice.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright 2022 ChainSafe Systems (ON)
# SPDX-License-Identifier: LGPL-3.0-only

ARG POLKADOT_VERSION=v0.9.10

FROM golang:1.17 as openmetrics
ARG METRICS_NAMESPACE=substrate.local.devnet

Expand All @@ -12,16 +14,19 @@ RUN go mod download
COPY ./devnet .
RUN go run cmd/update-dd-agent-confd/main.go -n=${METRICS_NAMESPACE} -t=key:alice > conf.yaml

FROM parity/polkadot:v0.9.17
FROM parity/polkadot:${POLKADOT_VERSION}

# Using a genesis file with 3 authority nodes (alice, bob, charlie) generated using polkadot v0.9.10
ARG CHAIN=3-auth-node-0.9.10
ARG POLKADOT_VERSION
# Using a genesis file with 3 authority nodes (alice, bob, charlie) generated using polkadot $POLKADOT_VERSION
ARG CHAIN=3-auth-node-${POLKADOT_VERSION}
ARG DD_API_KEY=somekey

ENV DD_API_KEY=${DD_API_KEY}
ENV CHAIN=${CHAIN}

USER root
RUN gpg --recv-keys --keyserver hkps://keys.mailvelope.com 9D4B2B6EB8F97156D19669A9FF0812D491B96798
RUN gpg --export 9D4B2B6EB8F97156D19669A9FF0812D491B96798 > /usr/share/keyrings/parity.gpg
RUN apt update && apt install -y curl && rm -r /var/cache/* /var/lib/apt/lists/*

WORKDIR /cross-client
Expand Down
14 changes: 9 additions & 5 deletions devnet/substrate_bob.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2022 ChainSafe Systems (ON)
# SPDX-License-Identifier: LGPL-3.0-only

ARG POLKADOT_VERSION=v0.9.10
FROM golang:1.17 as openmetrics

ARG METRICS_NAMESPACE=substrate.local.devnet
Expand All @@ -13,18 +13,22 @@ RUN go mod download
COPY ./devnet .
RUN go run cmd/update-dd-agent-confd/main.go -n=${METRICS_NAMESPACE} -t=key:alice > conf.yaml

FROM parity/polkadot:v0.9.17
FROM parity/polkadot:${POLKADOT_VERSION}

ARG key
# Using a genesis file with 3 authority nodes (alice, bob, charlie) generated using polkadot v0.9.10
ARG CHAIN=3-auth-node-0.9.10
ARG POLKADOT_VERSION
# Using a genesis file with 3 authority nodes (alice, bob, charlie) generated using polkadot $POLKADOT_VERSION
ARG CHAIN=3-auth-node-${POLKADOT_VERSION}
ARG DD_API_KEY=somekey
ARG key

ENV DD_API_KEY=${DD_API_KEY}
ENV CHAIN=${CHAIN}
ENV key=${key}

USER root
RUN gpg --recv-keys --keyserver hkps://keys.mailvelope.com 9D4B2B6EB8F97156D19669A9FF0812D491B96798
RUN gpg --export 9D4B2B6EB8F97156D19669A9FF0812D491B96798 > /usr/share/keyrings/parity.gpg

RUN apt update && apt install -y curl && rm -r /var/cache/* /var/lib/apt/lists/*

WORKDIR /cross-client
Expand Down

0 comments on commit 03c89c6

Please sign in to comment.