Skip to content

Commit 157a52f

Browse files
Replace backpackapp/build Docker image with solanafoundation/anchor (solana-foundation#3619)
1 parent 70bdd6a commit 157a52f

File tree

4 files changed

+11
-17
lines changed

4 files changed

+11
-17
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The minor version will be incremented upon a breaking change and the patch versi
1515

1616
### Fixes
1717

18+
- cli, docker: Replace `backpackapp/build` Docker image with `solanafoundation/anchor` ([#3619](https://github.com/coral-xyz/anchor/pull/3619)).
19+
1820
### Breaking
1921

2022
## [0.31.0] - 2025-03-08

cli/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ impl Config {
504504
.anchor_version
505505
.as_deref()
506506
.unwrap_or(crate::DOCKER_BUILDER_VERSION);
507-
format!("backpackapp/build:v{version}")
507+
format!("solanafoundation/anchor:v{version}")
508508
}
509509

510510
pub fn discover(cfg_override: &ConfigOverride) -> Result<Option<WithPath<Config>>> {

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

docs/content/docs/references/verifiable-builds.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ If the program has an IDL, it will also check the IDL deployed on chain matches.
3737
## Images
3838

3939
A docker image for each version of Anchor is published on
40-
[Docker Hub](https://hub.docker.com/r/backpackapp/build). They are tagged in the
41-
form `backpackapp/build:<version>`. For example, to get the image for Anchor
42-
`v0.31.0` one can run
40+
[Docker Hub](https://hub.docker.com/r/solanafoundation/anchor). They are tagged
41+
in the form `solanafoundation/anchor:<version>`. For example, to get the image
42+
for Anchor `v0.31.0` one can run
4343

4444
```shell
45-
docker pull backpackapp/build:v0.31.0
45+
docker pull solanafoundation/anchor:v0.31.0
4646
```
4747

4848
## Removing an Image

0 commit comments

Comments
 (0)