Repository navigation
Conversation
The octopusdeploy/tentacle image has only ever been published for amd64 (#374). The build already produces an arm64 Tentacle package, so the image only needed to pick the right package for the platform being built.
rhysparry
marked this pull request as ready for review
November 26, 2026 03:13
LukeButters
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
The
octopusdeploy/tentacleLinux image has only ever been published for amd64, so customers can't run it on arm64 hosts such as AWS Graviton. The build already makes an arm64 Tentacle package, andPackDebianPackagealready copies each architecture's package to_artifacts/docker/, where the Kubernetes agent image picks it up. The Linux image's Dockerfile just hard-coded the amd64 package.Publishing two architectures under one tag also means "Build: Docker manifest" has to go. It made
<version>from<version>-linuxwithdocker manifest create, which refuses a source that's already a multi-architecture image.Results
Fixes #374
docker/linux/Dockerfileinstalls_artifacts/docker/tentacle_<version>_linux-<TARGETARCH>.deb, so it builds for whichever platform BuildKit is targeting.BuildAndPushLinuxTentacleContainerImageNuke target:linux/arm64andlinux/amd64(DockerPlatform) with buildx;<version>-linuxand as<version>, which is what Octopus copies to Docker Hub withskopeo copy --all;docker-containerbuilder, because Docker's default builder can't build for several platforms, and always removes it afterwards.BuildAndLoadLocallyLinuxTentacleContainerImagebuilds one platform into the local Docker, using the host's architecture by default.docker-compose.build.ymlstill builds a single architecture, chosen byBUILD_ARCH(amd64 by default). It's used by the test script, and by TeamCity for branches from before this change.build-and-test-linux-docker-image.shtakes--platform linux/amd64or--platform linux/arm64. In its end-to-end stage, SQL Server and Octopus Server stay on amd64, as they have no arm64 images.TeamCity
These changes are already made in the TeamCity UI (LEV-2388):
.nuke/build.schema.jsonlistsBuildAndPushLinuxTentacleContainerImage, it runs that target;<version>.env.OCTOVERSION_FullSemVerto%build.number%, as the other Nuke builds do, so the image's tags and the package it installs match the chain's version.This PR's build is the first to take the new path. On every other branch, TeamCity uses the docker-compose fallback.
How to review this PR
Quality ✔️
build/Build.Pack.cs: the new targets andBuildLinuxTentacleContainerImage. They're separate from the Kubernetes agent image's helper; the two only share the buildx call.docker buildx imagetools inspect docker.packages.octopushq.com/octopusdeploy/tentacle:<version>should list bothlinux/amd64andlinux/arm64;./testing/docker-linux/build-and-test-linux-docker-image.sh --platform linux/arm64. It builds the package and the image, then runs the smoke and end-to-end tests.🤖 Generated with Claude Code
🤖 Agent's description, endorsed by Rhys