Skip to content

Commit 9e4d61b

Browse files
author
Adrian Brink
committed
Update Dockerfile for production
1 parent 1cf9cf7 commit 9e4d61b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ GOTOOLS = \
33
github.com/Masterminds/glide
44
PACKAGES=$(shell go list ./... | grep -v '/vendor/')
55
BUILD_TAGS?=ethermint
6+
VERSION_TAG=0.2.0
67

78
all: install test
89

@@ -30,13 +31,11 @@ docker_push_develop:
3031
docker push "tendermint/ethermint:develop"
3132

3233
docker_build:
33-
# TAG=0.2.0
34-
docker build -t "tendermint/ethermint" -t "tendermint/ethermint:$(TAG)" -f scripts/docker/Dockerfile .
34+
docker build -t "tendermint/ethermint" -t "tendermint/ethermint:$(VERSION_TAG)" -f scripts/docker/Dockerfile .
3535

3636
docker_push:
37-
# TAG=0.2.0
3837
docker push "tendermint/ethermint:latest"
39-
docker push "tendermint/ethermint:$(TAG)"
38+
docker push "tendermint/ethermint:$(VERSION_TAG)"
4039

4140
clean:
4241
@rm -rf build/

scripts/docker/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM alpine:3.6
22

33
# This is the release of ethermint to pull in.
44
ENV EM_VERSION 0.2.0
5-
ENV EM_SHA256SUM da34234755937140dcd953afcc965555fad7e05afd546711bc5bdc2df3d54226
5+
ENV EM_SHA256SUM d9d003eec74e05102f10b40be611445ec3179a943c58dd27d5c97a4a43f65f15
66

77
ENV DATA_ROOT /ethermint
88

@@ -19,9 +19,10 @@ RUN mkdir -p $DATA_ROOT && \
1919
# could execute bash commands.
2020
RUN apk add --no-cache bash
2121

22-
RUN wget https://s3.eu-central-1.amazonaws.com/ethermint/${EM_VERSION}/ethermint_${EM_VERSION}_ethermint-linux-amd64.zip && \
23-
echo "${EM_SHA256SUM} tendermint_${TM_VERSION}_linux_amd64.zip" | sha256sum -c && \
24-
unzip -d /bin ethermint_${TM_VERSION}_ethermint-linux-amd64.zip && \
22+
RUN apk add --no-cache openssl && \
23+
wget https://s3.eu-central-1.amazonaws.com/ethermint/${EM_VERSION}/ethermint_${EM_VERSION}_ethermint-linux-amd64.zip && \
24+
echo "${EM_SHA256SUM} ethermint_${EM_VERSION}_ethermint-linux-amd64.zip" | sha256sum -c && \
25+
unzip -d /bin ethermint_${EM_VERSION}_ethermint-linux-amd64.zip && \
2526
rm -f ethermint_${EM_VERSION}_ethermint-linux-amd64.zip
2627

2728
# Expose the data directory as a volume since there's mutable state in there

0 commit comments

Comments
 (0)