Skip to content

Commit 23f1496

Browse files
committed
Remove mariner2 (CBL-Mariner 2) support
Mariner 2 has reached end of life. This removes the mariner2 build target, tests, CI configuration, and all documentation references. Tests and configs that referenced mariner2 as a secondary target now use azlinux3 instead. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
1 parent 2e16ca8 commit 23f1496

26 files changed

Lines changed: 51 additions & 160 deletions

.github/copilot-instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ Always reference these instructions first and fallback to search or bash command
2727
- The frontend requires Docker BuildKit with buildx support
2828

2929
### Integration Testing
30-
- Run specific distro tests: `go test -timeout=59m -v ./test -run=TestMariner2` -- takes 30+ minutes. NEVER CANCEL. Set timeout to 75+ minutes.
30+
- Run specific distro tests: `go test -timeout=59m -v ./test -run=TestAzlinux3` -- takes 30+ minutes. NEVER CANCEL. Set timeout to 75+ minutes.
3131
- Run all integration tests: `go test -timeout=59m -v ./test` -- takes 45+ minutes. NEVER CANCEL. Set timeout to 75+ minutes.
3232
- Tests require Docker and BuildKit to be working properly
33-
- Tests cover multiple Linux distributions: Mariner2, Azlinux3, Jammy, Noble, Bullseye, Bookworm, etc.
33+
- Tests cover multiple Linux distributions: Azlinux3, Jammy, Noble, Bullseye, Bookworm, etc.
3434

3535
## Validation
3636

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ jobs:
9393
fail-fast: false
9494
matrix:
9595
suite:
96-
- Mariner2
9796
- Azlinux3
9897
- Bookworm
9998
- Bullseye
@@ -110,7 +109,7 @@ jobs:
110109
- other
111110
include:
112111
- suite: other
113-
skip: Mariner2|Azlinux3|Bookworm|Bullseye|Bionic|Focal|Jammy|Noble|Windows|Almalinux8|Almalinux9|Rockylinux8|Rockylinux9|Trixie
112+
skip: Azlinux3|Bookworm|Bullseye|Bionic|Focal|Jammy|Noble|Windows|Almalinux8|Almalinux9|Rockylinux8|Rockylinux9|Trixie
114113

115114
# TODO: support diff/merge
116115
# Right now this is handled by the e2e suite, but we can migrate that here.
@@ -419,8 +418,8 @@ jobs:
419418
- name: Build go-md2man example in docs
420419
run: |
421420
version=$(cat docs/examples/go-md2man.yml | yq .version)
422-
docker build -t go-md2man:$version -f docs/examples/go-md2man.yml --target=mariner2/rpm --output=_output .
423-
docker build -t go-md2man:$version -f docs/examples/go-md2man.yml --target=mariner2 .
421+
docker build -t go-md2man:$version -f docs/examples/go-md2man.yml --target=azlinux3/rpm --output=_output .
422+
docker build -t go-md2man:$version -f docs/examples/go-md2man.yml --target=azlinux3 .
424423
- name: dump logs
425424
if: failure()
426425
id: dump-logs

.github/workflows/retag/images.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@
6767
- source: "mcr.microsoft.com/azurelinux/distroless/base:3.0"
6868
dest: mirror/mcr/azurelinux/distroless/base:3.0
6969

70-
- source: "mcr.microsoft.com/cbl-mariner/base/core:2.0"
71-
dest: mirror/mcr/cbl-mariner/base/core:2.0
72-
7370
- source: "mcr.microsoft.com/oss/go/microsoft/golang:1.24"
7471
dest: mirror/mcr/oss/go/microsoft/golang:1.24
7572

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"include":[{"target":"trixie/worker"},{"target":"bookworm/worker"},{"target":"bullseye/worker"},{"target":"bionic/worker"},{"target":"focal/worker"},{"target":"jammy/worker"},{"target":"noble/worker"},{"target":"almalinux8/worker"},{"target":"almalinux9/worker"},{"target":"rockylinux8/worker"},{"target":"rockylinux9/worker"},{"target":"mariner2/worker"},{"target":"azlinux3/worker"},{"target":"windowscross/worker"}]}
1+
{"include":[{"target":"trixie/worker"},{"target":"bookworm/worker"},{"target":"bullseye/worker"},{"target":"bionic/worker"},{"target":"focal/worker"},{"target":"jammy/worker"},{"target":"noble/worker"},{"target":"almalinux8/worker"},{"target":"almalinux9/worker"},{"target":"rockylinux8/worker"},{"target":"rockylinux9/worker"},{"target":"azlinux3/worker"},{"target":"windowscross/worker"}]}

docker-bake.hcl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ target "maps-dep" {
6666
"dalec_frontend" = "target:frontend"
6767
}
6868
matrix = {
69-
tgt = ["azlinux3/rpm", "mariner2/rpm", "jammy/deb", "noble/deb", "trixie/deb", "bookworm/deb", "bullseye/deb"]
69+
tgt = ["azlinux3/rpm", "jammy/deb", "noble/deb", "trixie/deb", "bookworm/deb", "bullseye/deb"]
7070
}
7171
target = tgt
7272
}
@@ -81,7 +81,7 @@ target "maps-buildstep" {
8181
"dalec_frontend" = "target:frontend"
8282
}
8383
matrix = {
84-
tgt = ["azlinux3/rpm", "mariner2/rpm", "jammy/deb", "noble/deb", "trixie/deb", "bookworm/deb", "bullseye/deb"]
84+
tgt = ["azlinux3/rpm", "jammy/deb", "noble/deb", "trixie/deb", "bookworm/deb", "bullseye/deb"]
8585
}
8686
target = tgt
8787
}
@@ -96,7 +96,7 @@ target "maps-test" {
9696
"dalec_frontend" = "target:frontend"
9797
}
9898
matrix = {
99-
tgt = ["azlinux3/rpm", "mariner2/rpm", "jammy/deb", "noble/deb", "trixie/deb", "bookworm/deb", "bullseye/deb"]
99+
tgt = ["azlinux3/rpm", "jammy/deb", "noble/deb", "trixie/deb", "bookworm/deb", "bullseye/deb"]
100100
}
101101
target = tgt
102102
}
@@ -111,7 +111,7 @@ target "maps-source" {
111111
"dalec_frontend" = "target:frontend"
112112
}
113113
matrix = {
114-
tgt = ["azlinux3/rpm", "mariner2/rpm", "jammy/deb", "noble/deb", "trixie/deb", "bookworm/deb", "bullseye/deb"]
114+
tgt = ["azlinux3/rpm", "jammy/deb", "noble/deb", "trixie/deb", "bookworm/deb", "bullseye/deb"]
115115
}
116116
target = tgt
117117
}
@@ -134,12 +134,12 @@ target "runc-azlinux" {
134134
"dalec_frontend" = "target:frontend"
135135
}
136136
matrix = {
137-
distro = ["mariner2", "azlinux3"]
137+
distro = ["azlinux3"]
138138
tgt = ["rpm", "container", "rpm/spec"]
139139
}
140-
target = "mariner2/${tgt}"
140+
target = "${distro}/${tgt}"
141141
// only tag the container target
142-
tags = tgt == "container" ? ["runc:mariner2"] : []
142+
tags = tgt == "container" ? ["runc:${distro}"] : []
143143
// only output non-container targets to the fs
144144
output = tgt != "container" ? ["_output"] : []
145145
}
@@ -170,7 +170,7 @@ target "runc-jammy" {
170170
target "runc-test" {
171171
name = "runc-test-${distro}"
172172
matrix = {
173-
distro =["mariner2", "azlinux3", "jammy"]
173+
distro =["azlinux3", "jammy"]
174174
}
175175
contexts = {
176176
"dalec-runc-img" = "target:runc-${distro}-container"
@@ -187,7 +187,7 @@ variable "BUILD_SPEC" {
187187
target "build" {
188188
name = "build-${distro}-${tgt}"
189189
matrix = {
190-
distro = ["mariner2"]
190+
distro = ["azlinux3"]
191191
tgt = ["rpm", "container"]
192192
}
193193
dockerfile = BUILD_SPEC

frontend/mux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const (
5858
//
5959
// When BuildMux calls a handler, it modifies the client to chomp off the
6060
// matched route prefix. So a BuildMux with receiving a build target of
61-
// mariner2/container will match on the registered handler for mariner2 then
61+
// azlinux3/container will match on the registered handler for azlinux3 then
6262
// call the handler with the build target changed to just container.
6363
//
6464
// Finally, BuildMux sets an extra build option on the client

target.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
const (
1111
// PreBuiltPkgSuffix is what is expected to be appended to a targetKey when it's
12-
// meant to be a target distro specific package (e.g. mariner2-pkg, azlinux3-pkg,
12+
// meant to be a target distro specific package (e.g. azlinux3-pkg,
1313
// windowscross-pkg, bookworm-pkg, etc.). When this is provided and used to buildkit
1414
// and container, it will take precedence over GenericPkg.
1515
PreBuiltPkgSuffix = "-pkg"

targets/linux/distro_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func HandleSysext(c DistroConfig) gwclient.BuildFunc {
187187
// getPrebuiltPackage retrieves a package based on the target environment.
188188
// Target-specific packages (e.g., "{targetKey}-pkg") are prioritized over generic packages ("pkg").
189189
// This ensures compatibility with the build context and optimizes functionality for specific environments.
190-
// Examples of target keys include "mariner2", "azlinux3", "windowscross", and "bookworm".
190+
// Examples of target keys include "azlinux3", "windowscross", and "bookworm".
191191
func getPrebuiltPackage(ctx context.Context, targetKey string, client gwclient.Client, opts []llb.ConstraintsOpt, sOpt dalec.SourceOpts) (llb.State, bool) {
192192
var pkgSt llb.State
193193

targets/linux/rpm/azlinux/common.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ var (
1717
}
1818

1919
targets = map[string]gwclient.BuildFunc{
20-
Mariner2TargetKey: Mariner2Config.Handle,
2120
AzLinux3TargetKey: Azlinux3Config.Handle,
2221
}
2322

targets/linux/rpm/azlinux/mariner2.go

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)