Skip to content

Commit f1cff5e

Browse files
committed
docker: Replace backpackapp/build Docker image with solanafoundation/anchor
1 parent ca97eba commit f1cff5e

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

docker/Makefile

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
WORKDIR=$(PWD)
2-
#
31
# Anchor version.
4-
#
52
ANCHOR_CLI=v0.31.0
6-
#
73
# Solana toolchain.
8-
#
94
SOLANA_CLI=v2.1.0
10-
#
115
# Build version should match the Anchor cli version.
12-
#
13-
IMG_ORG ?= backpackapp
14-
IMG_VER ?= $(ANCHOR_CLI)
6+
VERSIONED_IMG_NAME=solanafoundation/anchor:$(ANCHOR_CLI)
157

168
.PHONY: build build-push build-shell publish
179

@@ -21,14 +13,14 @@ build: build/Dockerfile
2113
@docker build \
2214
--build-arg ANCHOR_CLI=$(ANCHOR_CLI) \
2315
--build-arg SOLANA_CLI=$(SOLANA_CLI) \
24-
$@ -t $(IMG_ORG)/$@:$(IMG_VER)
16+
$@ -t $(VERSIONED_IMG_NAME)
2517

2618
build-push:
27-
@docker push $(IMG_ORG)/build:$(IMG_VER)
19+
@docker push $(VERSIONED_IMG_NAME)
2820

2921
build-shell:
3022
@docker run -ti --rm --net=host \
3123
-v $(WORKDIR)/..:/workdir \
32-
$(IMG_ORG)/build:$(IMG_VER) bash
24+
$(VERSIONED_IMG_NAME) bash
3325

3426
publish: build build-push

0 commit comments

Comments
 (0)