diff --git a/.buildkite/package.yml b/.buildkite/package.yml index 218b4d975a..d50fde9b43 100644 --- a/.buildkite/package.yml +++ b/.buildkite/package.yml @@ -7,7 +7,7 @@ notify: env: IMAGE_UBUNTU_X86_64: "family/core-ubuntu-2004" IMAGE_UBUNTU_ARM_64: "core-ubuntu-2004-aarch64" - GENERATE_CHAINGUARD_IMAGES: true + GENERATE_WOLFI_IMAGES: true steps: - group: "Package" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4cd2470109..87d9e6c43f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,7 +95,7 @@ jobs: # If no PR event or if a PR event that's caused by a non-fork and non dependabot actor if: github.event_name != 'pull_request' || ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]' ) env: - GENERATE_CHAINGUARD_IMAGES: true + GENERATE_WOLFI_IMAGES: true steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 diff --git a/packaging.mk b/packaging.mk index 26f51bd7ec..53d52b6ebb 100644 --- a/packaging.mk +++ b/packaging.mk @@ -31,11 +31,11 @@ DOCKER_IMAGES := \ build/docker/apm-server-ubi-$(APM_SERVER_VERSION).txt \ build/docker/apm-server-ubi-$(APM_SERVER_VERSION)-SNAPSHOT.txt -# If GENERATE_CHAINGUARD_IMAGES is set then generate chainguard docker images. -ifdef GENERATE_CHAINGUARD_IMAGES +# If GENERATE_WOLFI_IMAGES is set then generate wolfi docker images. +ifdef GENERATE_WOLFI_IMAGES DOCKER_IMAGES := $(DOCKER_IMAGES) \ - build/docker/apm-server-chainguard-$(APM_SERVER_VERSION).txt \ - build/docker/apm-server-chainguard-$(APM_SERVER_VERSION)-SNAPSHOT.txt + build/docker/apm-server-wolfi-$(APM_SERVER_VERSION).txt \ + build/docker/apm-server-wolfi-$(APM_SERVER_VERSION)-SNAPSHOT.txt endif build/docker/%.txt: DOCKER_IMAGE_TAG := docker.elastic.co/apm/apm-server:% @@ -43,7 +43,7 @@ build/docker/%.txt: VERSION := $(APM_SERVER_VERSION) build/docker/%.txt: DOCKER_FILE_ARGS := -f packaging/docker/Dockerfile build/docker/%-SNAPSHOT.txt: VERSION := $(APM_SERVER_VERSION)-SNAPSHOT build/docker/apm-server-ubi-%.txt: DOCKER_BUILD_ARGS+=--build-arg BASE_IMAGE=docker.elastic.co/ubi9/ubi-minimal -build/docker/apm-server-chainguard-%.txt: DOCKER_FILE_ARGS := -f packaging/docker/Dockerfile.chainguard +build/docker/apm-server-wolfi-%.txt: DOCKER_FILE_ARGS := -f packaging/docker/Dockerfile.wolfi INTERNAL_DOCKER_IMAGE := docker.elastic.co/observability-ci/apm-server-internal @@ -54,15 +54,15 @@ $(DOCKER_IMAGES): --build-arg GOLANG_VERSION=$(GOLANG_VERSION) \ --build-arg VERSION=$(VERSION) \ $(DOCKER_BUILD_ARGS) \ - --tag $(INTERNAL_DOCKER_IMAGE):$(VERSION)$(if $(findstring arm64,$(GOARCH)),-arm64)$(if $(findstring chainguard,$(@)),-chainguard) \ + --tag $(INTERNAL_DOCKER_IMAGE):$(VERSION)$(if $(findstring arm64,$(GOARCH)),-arm64)$(if $(findstring wolfi,$(@)),-wolfi) \ $(DOCKER_FILE_ARGS) . # Docker image tarballs. We distribute UBI Docker images only for AMD64. DOCKER_IMAGE_SUFFIX := docker-image$(if $(findstring arm64,$(GOARCH)),-arm64).tar.gz DOCKER_IMAGE_PREFIXES := apm-server $(if $(findstring amd64,$(GOARCH)), apm-server-ubi) -# If GENERATE_CHAINGUARD_IMAGES is set then generate chainguard docker images. -ifdef GENERATE_CHAINGUARD_IMAGES -DOCKER_IMAGE_PREFIXES := $(DOCKER_IMAGE_PREFIXES) apm-server-chainguard +# If GENERATE_WOLFI_IMAGES is set then generate wolfi docker images. +ifdef GENERATE_WOLFI_IMAGES +DOCKER_IMAGE_PREFIXES := $(DOCKER_IMAGE_PREFIXES) apm-server-wolfi endif DOCKER_IMAGE_RELEASE_TARBALLS := $(patsubst %, $(DISTDIR)/%-$(APM_SERVER_VERSION)-$(DOCKER_IMAGE_SUFFIX), $(DOCKER_IMAGE_PREFIXES)) DOCKER_IMAGE_SNAPSHOT_TARBALLS := $(patsubst %, $(DISTDIR)/%-$(APM_SERVER_VERSION)-SNAPSHOT-$(DOCKER_IMAGE_SUFFIX), $(DOCKER_IMAGE_PREFIXES)) diff --git a/packaging/docker/Dockerfile.chainguard b/packaging/docker/Dockerfile.wolfi similarity index 100% rename from packaging/docker/Dockerfile.chainguard rename to packaging/docker/Dockerfile.wolfi