Przeglądaj źródła

Replace `backpackapp/build` Docker image with `solanafoundation/anchor` (#3619)

acheron 6 miesięcy temu
rodzic
commit
157a52f1e1

+ 2 - 0
CHANGELOG.md

@@ -15,6 +15,8 @@ The minor version will be incremented upon a breaking change and the patch versi
 
 ### Fixes
 
+- cli, docker: Replace `backpackapp/build` Docker image with `solanafoundation/anchor` ([#3619](https://github.com/coral-xyz/anchor/pull/3619)).
+
 ### Breaking
 
 ## [0.31.0] - 2025-03-08

+ 1 - 1
cli/src/config.rs

@@ -504,7 +504,7 @@ impl Config {
             .anchor_version
             .as_deref()
             .unwrap_or(crate::DOCKER_BUILDER_VERSION);
-        format!("backpackapp/build:v{version}")
+        format!("solanafoundation/anchor:v{version}")
     }
 
     pub fn discover(cfg_override: &ConfigOverride) -> Result<Option<WithPath<Config>>> {

+ 4 - 12
docker/Makefile

@@ -1,17 +1,9 @@
-WORKDIR=$(PWD)
-#
 # Anchor version.
-#
 ANCHOR_CLI=v0.31.0
-#
 # Solana toolchain.
-#
 SOLANA_CLI=v2.1.0
-#
 # Build version should match the Anchor cli version.
-#
-IMG_ORG ?= backpackapp
-IMG_VER ?= $(ANCHOR_CLI)
+VERSIONED_IMG_NAME=solanafoundation/anchor:$(ANCHOR_CLI)
 
 .PHONY: build build-push build-shell publish
 
@@ -21,14 +13,14 @@ build: build/Dockerfile
 	@docker build \
 	--build-arg ANCHOR_CLI=$(ANCHOR_CLI) \
 	--build-arg SOLANA_CLI=$(SOLANA_CLI) \
-	$@ -t $(IMG_ORG)/$@:$(IMG_VER)
+	$@ -t $(VERSIONED_IMG_NAME)
 
 build-push:
-	@docker push $(IMG_ORG)/build:$(IMG_VER)
+	@docker push $(VERSIONED_IMG_NAME)
 
 build-shell:
 	@docker run -ti --rm --net=host \
 		-v $(WORKDIR)/..:/workdir \
-		$(IMG_ORG)/build:$(IMG_VER) bash
+		$(VERSIONED_IMG_NAME) bash
 
 publish: build build-push

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

@@ -37,12 +37,12 @@ If the program has an IDL, it will also check the IDL deployed on chain matches.
 ## Images
 
 A docker image for each version of Anchor is published on
-[Docker Hub](https://hub.docker.com/r/backpackapp/build). They are tagged in the
-form `backpackapp/build:<version>`. For example, to get the image for Anchor
-`v0.31.0` one can run
+[Docker Hub](https://hub.docker.com/r/solanafoundation/anchor). They are tagged
+in the form `solanafoundation/anchor:<version>`. For example, to get the image
+for Anchor `v0.31.0` one can run
 
 ```shell
-docker pull backpackapp/build:v0.31.0
+docker pull solanafoundation/anchor:v0.31.0
 ```
 
 ## Removing an Image