[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 1/4] Rename and adjust x86 containers
Insert the Alpine version as we'll need a newer version in due course, and rename 'rootfs' to 'base' as the container really is not a rootfs on it's own. In base, add bash. It's added later by the rootfs generation anyway, but this way we can write the generation script in bash too. In build, group and sort the packages. Drop the ones we don't need, or are pulled in by dependencies. Include diffutils, findutils and gawk to avoid warnings in the kernel build. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- CC: Anthony PERARD <anthony.perard@xxxxxxxxxx> CC: Stefano Stabellini <sstabellini@xxxxxxxxxx> CC: Michal Orzel <michal.orzel@xxxxxxx> CC: Doug Goldstein <cardoe@xxxxxxxxxx> CC: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx> CC: Jason Andryuk <jason.andryuk@xxxxxxx> CC: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx> --- .gitlab-ci.yml | 4 +-- containerize | 4 +-- images/alpine/3.18-x86_64-base.dockerfile | 6 ++++ ...ockerfile => 3.18-x86_64-build.dockerfile} | 32 ++++++++++++------- images/alpine/x86_64-rootfs.dockerfile | 4 --- 5 files changed, 30 insertions(+), 20 deletions(-) create mode 100644 images/alpine/3.18-x86_64-base.dockerfile rename images/alpine/{x86_64-build.dockerfile => 3.18-x86_64-build.dockerfile} (54%) delete mode 100644 images/alpine/x86_64-rootfs.dockerfile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 670f9621e26d..fb997cc62162 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,7 +28,7 @@ stages: tags: - x86_64 variables: - CONTAINER: alpine:x86_64-build + CONTAINER: alpine:3.18-x86_64-build # # ARM64 artifacts @@ -62,7 +62,7 @@ x86_64-rootfs-alpine-3.18: script: - . scripts/x86_64-rootfs-alpine.sh variables: - CONTAINER: alpine:x86_64-rootfs + CONTAINER: alpine:3.18-x86_64-base x86_64-argo-linux-6.6.56: extends: .x86_64-artifacts diff --git a/containerize b/containerize index 7abeb119ff6a..c23f55ead737 100755 --- a/containerize +++ b/containerize @@ -25,8 +25,8 @@ die() { BASE="registry.gitlab.com/xen-project/hardware/test-artifacts" case "_${CONTAINER}" in _alpine-3.18-arm64-build) CONTAINER="${BASE}/alpine:3.18-arm64-build" ;; - _alpine-x86_64-rootfs) CONTAINER="${BASE}/alpine:x86_64-rootfs" ;; - _alpine-x86_64-build|_) CONTAINER="${BASE}/alpine:x86_64-build" ;; + _alpine-3.18-x86_64-base) CONTAINER="${BASE}/alpine:3.18-x86_64-base" ;; + _alpine-3.18-x86_64-build|_) CONTAINER="${BASE}/alpine:3.18-x86_64-build" ;; esac # Use this variable to control whether root should be used diff --git a/images/alpine/3.18-x86_64-base.dockerfile b/images/alpine/3.18-x86_64-base.dockerfile new file mode 100644 index 000000000000..a8cb274d5821 --- /dev/null +++ b/images/alpine/3.18-x86_64-base.dockerfile @@ -0,0 +1,6 @@ +# syntax=docker/dockerfile:1 +FROM --platform=linux/amd64 alpine:3.18 +LABEL maintainer.name="The Xen Project" +LABEL maintainer.email="xen-devel@xxxxxxxxxxxxxxxxxxxx" + +RUN apk --no-cache add bash diff --git a/images/alpine/x86_64-build.dockerfile b/images/alpine/3.18-x86_64-build.dockerfile similarity index 54% rename from images/alpine/x86_64-build.dockerfile rename to images/alpine/3.18-x86_64-build.dockerfile index 98969a5be1da..eac0cda4fed3 100644 --- a/images/alpine/x86_64-build.dockerfile +++ b/images/alpine/3.18-x86_64-build.dockerfile @@ -1,31 +1,39 @@ # syntax=docker/dockerfile:1 FROM --platform=linux/amd64 alpine:3.18 -LABEL maintainer.name="The Xen Project" \ - maintainer.email="xen-devel@xxxxxxxxxxxxxxxxxxxx" +LABEL maintainer.name="The Xen Project" +LABEL maintainer.email="xen-devel@xxxxxxxxxxxxxxxxxxxx" RUN apk --no-cache add bash -RUN bash -ex <<EOF +RUN <<EOF +#!/bin/bash + set -eu + adduser -D user --shell /bin/bash - DEPS=( - musl-dev + DEPS=(# Base environment build-base - libc6-compat - linux-headers - bash - git curl - flex + git + + # Linux build deps bison + diffutils elfutils-dev + findutils + flex + gawk + linux-headers + openssl-dev + perl + + # Argo build deps autoconf automake libtool - openssl-dev ) - apk add --no-cache "\${DEPS[@]}" + apk add --no-cache "${DEPS[@]}" EOF USER user diff --git a/images/alpine/x86_64-rootfs.dockerfile b/images/alpine/x86_64-rootfs.dockerfile deleted file mode 100644 index b912e9c1600d..000000000000 --- a/images/alpine/x86_64-rootfs.dockerfile +++ /dev/null @@ -1,4 +0,0 @@ -# syntax=docker/dockerfile:1 -FROM --platform=linux/amd64 alpine:3.18 -LABEL maintainer.name="The Xen Project" \ - maintainer.email="xen-devel@xxxxxxxxxxxxxxxxxxxx" -- 2.39.5
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |