Skip to content

Commit

Permalink
Switch back to Ubuntu 20.04-based Docker images in the cloud
Browse files Browse the repository at this point in the history
According to the support matrix, ECE versions up to 3.6 are marked as
compatible with Docker 19.03 and the Wolfi images require Docker
version of 20.10.10.

Also, we need Ubuntu version 20.04 for glibc compatibility.
  • Loading branch information
rdner committed Dec 19, 2024
1 parent 3d3c557 commit 49a8eeb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
41 changes: 22 additions & 19 deletions dev-tools/packaging/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,11 @@ shared:
- &docker_ubuntu_spec
docker_variant: 'basic'
extra_vars:
from: '--platform=linux/amd64 ubuntu:24.04'
from: '--platform=linux/amd64 ubuntu:20.04'
- &docker_ubuntu_arm_spec
docker_variant: 'basic'
extra_vars:
from: '--platform=linux/arm64 ubuntu:24.04'
from: '--platform=linux/arm64 ubuntu:20.04'

- &docker_ubi_spec
docker_variant: 'ubi'
Expand Down Expand Up @@ -986,15 +986,17 @@ specs:
files:
'{{.BeatName}}{{.BinaryExt}}':
source: ./build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}}
#### ubi-based ####

#### Cloud specific docker images ####
- os: linux
arch: amd64
types: [docker]
spec:
<<: *docker_ubi_spec
<<: *docker_builder_spec
<<: *agent_docker_spec
<<: *docker_elastic_spec
# The cloud image is always based on Ubuntu
<<: *docker_ubuntu_spec
<<: *docker_builder_spec
<<: *agent_docker_cloud_spec
<<: *elastic_license_for_binaries
files:
'{{.BeatName}}{{.BinaryExt}}':
Expand All @@ -1003,25 +1005,25 @@ specs:
arch: arm64
types: [docker]
spec:
<<: *docker_ubi_arm_spec
<<: *docker_builder_arm_spec
<<: *agent_docker_spec
<<: *docker_elastic_spec
# The cloud image is always based on Ubuntu
<<: *docker_ubuntu_arm_spec
<<: *docker_builder_arm_spec
<<: *agent_docker_cloud_spec
<<: *elastic_license_for_binaries
files:
'{{.BeatName}}{{.BinaryExt}}':
source: ./build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}}
#### wolfi-based ####
#### Cloud specific docker images ####

#### ubi-based ####
- os: linux
arch: amd64
types: [docker]
spec:
<<: *agent_docker_spec
# The cloud image is always based on Wolfi
<<: *docker_wolfi_spec
<<: *docker_ubi_spec
<<: *docker_builder_spec
<<: *agent_docker_cloud_spec
<<: *agent_docker_spec
<<: *docker_elastic_spec
<<: *elastic_license_for_binaries
files:
'{{.BeatName}}{{.BinaryExt}}':
Expand All @@ -1030,15 +1032,16 @@ specs:
arch: arm64
types: [docker]
spec:
<<: *agent_docker_spec
# The cloud image is always based on Wolfi
<<: *docker_wolfi_arm_spec
<<: *docker_ubi_arm_spec
<<: *docker_builder_arm_spec
<<: *agent_docker_cloud_spec
<<: *agent_docker_spec
<<: *docker_elastic_spec
<<: *elastic_license_for_binaries
files:
'{{.BeatName}}{{.BinaryExt}}':
source: ./build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}}

#### wolfi-based ####
#### Service specific docker images ####
- os: linux
arch: amd64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ RUN for iter in {1..10}; do microdnf update -y && microdnf install -y tar gzip f
{{- end }}

{{- if contains .from "ubuntu" }}
# Delete the existing "ubuntu" user to prevent conflict with the user that is added later.
# See https://bugs.launchpad.net/cloud-images/+bug/2005129/comments/2.
RUN touch /var/mail/ubuntu && chown ubuntu /var/mail/ubuntu && userdel -r ubuntu
RUN for iter in {1..10}; do \
apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes ca-certificates curl gawk xz-utils && \
Expand Down

0 comments on commit 49a8eeb

Please sign in to comment.