Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,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
Expand Down
2 changes: 1 addition & 1 deletion cli/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>>> {
Expand Down
16 changes: 4 additions & 12 deletions docker/Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
8 changes: 4 additions & 4 deletions docs/content/docs/references/verifiable-builds.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading