Skip to content

Commit c08aef5

Browse files
committed
Added ability to select genesis version as the tag
1 parent 85cd8f0 commit c08aef5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ RUN apt-get update \
2121
&& curl -Lo /usr/bin/bosh https://github.com/cloudfoundry/bosh-cli/releases/download/v6.2.1/bosh-cli-6.2.1-linux-amd64 \
2222
&& chmod 0755 /usr/bin/bosh
2323

24-
RUN curl -Lo /usr/bin/genesis https://github.com/genesis-community/genesis/releases/download/v2.7.4/genesis \
24+
ARG GENESIS_VERSION
25+
26+
RUN curl -Lo /usr/bin/genesis https://github.com/genesis-community/genesis/releases/download/v$GENESIS_VERSION/genesis \
2527
&& chmod 0755 /usr/bin/genesis
2628

2729
RUN genesis -v

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ IMAGE := starkandwayne/genesis
22
TAG ?= 2.7.1
33

44
build:
5-
docker build -t $(IMAGE):dev .
5+
docker build -t $(IMAGE):dev --build-arg GENESIS_VERSION=$(TAG) .
66
docker run $(IMAGE):dev genesis -v
77
release: build
88
docker tag $(IMAGE):dev $(IMAGE):latest

0 commit comments

Comments
 (0)