Resolve KASM-5399 "Feature/ alpine 319"

This commit is contained in:
Ryan Kuba 2024-01-03 12:01:48 +00:00 committed by Matthew McClaskey
parent 8b5ee59ae2
commit 4c9b065c31
3 changed files with 165 additions and 0 deletions

View File

@ -43,6 +43,8 @@ default:
build_www: build_www:
stage: www stage: www
allow_failure: false allow_failure: false
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
script: script:
@ -66,6 +68,8 @@ build_www:
build_ubuntu_bionic: build_ubuntu_bionic:
stage: build stage: build
allow_failure: true allow_failure: true
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
- *prepare_www - *prepare_www
@ -102,6 +106,8 @@ build_ubuntu_bionic_arm:
build_ubuntu_focal: build_ubuntu_focal:
stage: build stage: build
allow_failure: true allow_failure: true
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
- *prepare_www - *prepare_www
@ -138,6 +144,8 @@ build_ubuntu_focal_arm:
build_ubuntu_jammy: build_ubuntu_jammy:
stage: build stage: build
allow_failure: true allow_failure: true
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
- *prepare_www - *prepare_www
@ -174,6 +182,8 @@ build_ubuntu_jammy_arm:
build_debian_buster: build_debian_buster:
stage: build stage: build
allow_failure: true allow_failure: true
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
- *prepare_www - *prepare_www
@ -210,6 +220,8 @@ build_debian_buster_arm:
build_debian_bullseye: build_debian_bullseye:
stage: build stage: build
allow_failure: true allow_failure: true
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
- *prepare_www - *prepare_www
@ -247,6 +259,8 @@ build_debian_bullseye_arm:
build_debian_bookworm: build_debian_bookworm:
stage: build stage: build
allow_failure: true allow_failure: true
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
- *prepare_www - *prepare_www
@ -283,6 +297,8 @@ build_debian_bookworm_arm:
build_kali_rolling: build_kali_rolling:
stage: build stage: build
allow_failure: true allow_failure: true
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
- *prepare_www - *prepare_www
@ -319,6 +335,8 @@ build_kali_rolling_arm:
build_centos7: build_centos7:
stage: build stage: build
allow_failure: true allow_failure: true
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
- *prepare_www - *prepare_www
@ -336,6 +354,8 @@ build_centos7:
build_oracle_8: build_oracle_8:
stage: build stage: build
allow_failure: true allow_failure: true
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
- *prepare_www - *prepare_www
@ -372,6 +392,8 @@ build_oracle_8_arm:
build_oracle_9: build_oracle_9:
stage: build stage: build
allow_failure: true allow_failure: true
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
- *prepare_www - *prepare_www
@ -408,6 +430,8 @@ build_oracle_9_arm:
build_opensuse_15: build_opensuse_15:
stage: build stage: build
allow_failure: true allow_failure: true
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
- *prepare_www - *prepare_www
@ -444,6 +468,8 @@ build_opensuse_15_arm:
build_fedora_thirtyseven: build_fedora_thirtyseven:
stage: build stage: build
allow_failure: true allow_failure: true
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
- *prepare_www - *prepare_www
@ -480,6 +506,8 @@ build_fedora_thirtyseven_arm:
build_fedora_thirtyeight: build_fedora_thirtyeight:
stage: build stage: build
allow_failure: true allow_failure: true
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
- *prepare_www - *prepare_www
@ -516,6 +544,8 @@ build_fedora_thirtyeight_arm:
build_alpine_317: build_alpine_317:
stage: build stage: build
allow_failure: true allow_failure: true
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
- *prepare_www - *prepare_www
@ -551,6 +581,8 @@ build_alpine_317_arm:
test: test:
stage: test stage: test
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
script: script:
@ -560,6 +592,8 @@ test:
build_alpine_318: build_alpine_318:
stage: build stage: build
allow_failure: true allow_failure: true
tags:
- oci-fixed-amd64
before_script: before_script:
- *prepare_build - *prepare_build
- *prepare_www - *prepare_www
@ -593,9 +627,49 @@ build_alpine_318_arm:
paths: paths:
- output/ - output/
build_alpine_319:
stage: build
allow_failure: true
tags:
- oci-fixed-amd64
before_script:
- *prepare_build
- *prepare_www
after_script:
- *prepare_artfacts
script:
- bash builder/build-package alpine 319;
only:
variables:
- $BUILD_JOBS == 'all' || $BUILD_JOBS =~ $CI_JOB_NAME
artifacts:
paths:
- output/
build_alpine_319_arm:
stage: build
allow_failure: true
tags:
- oci-fixed-arm64
before_script:
- *prepare_build
- *prepare_www
after_script:
- *prepare_artfacts
script:
- bash builder/build-package alpine 319;
only:
variables:
- $BUILD_JOBS == 'all' || $BUILD_JOBS =~ $CI_JOB_NAME
artifacts:
paths:
- output/
upload: upload:
stage: upload stage: upload
image: ubuntu:focal image: ubuntu:focal
tags:
- oci-fixed-amd64
artifacts: artifacts:
paths: paths:
- output/ - output/
@ -633,6 +707,8 @@ upload_build_preview:
needs: ["upload"] needs: ["upload"]
dependencies: ["upload"] dependencies: ["upload"]
image: ubuntu:focal image: ubuntu:focal
tags:
- oci-fixed-amd64
before_script: before_script:
- . .ci/upload.sh - . .ci/upload.sh
resource_group: upload_build_preview resource_group: upload_build_preview

View File

@ -0,0 +1,7 @@
FROM alpine:3.19
RUN apk add shadow bash
RUN useradd -m docker && echo "docker:docker" | chpasswd
USER docker

View File

@ -0,0 +1,82 @@
FROM alpine:3.19
ENV KASMVNC_BUILD_OS alpine
ENV KASMVNC_BUILD_OS_CODENAME 319
ENV XORG_VER 1.20.14
RUN \
echo "**** install build deps ****" && \
apk add \
alpine-release \
alpine-sdk \
autoconf \
automake \
bash \
ca-certificates \
cmake \
coreutils \
curl \
eudev-dev \
font-cursor-misc \
font-misc-misc \
font-util-dev \
git \
grep \
jq \
libdrm-dev \
libepoxy-dev \
libjpeg-turbo-dev \
libjpeg-turbo-static \
libpciaccess-dev \
libtool \
libwebp-dev \
libx11-dev \
libxau-dev \
libxcb-dev \
libxcursor-dev \
libxcvt-dev \
libxdmcp-dev \
libxext-dev \
libxfont2-dev \
libxkbfile-dev \
libxrandr-dev \
libxshmfence-dev \
libxtst-dev \
mesa-dev \
mesa-dri-gallium \
meson \
nettle-dev \
openssl-dev \
pixman-dev \
procps \
shadow \
tar \
tzdata \
wayland-dev \
wayland-protocols \
xcb-util-dev \
xcb-util-image-dev \
xcb-util-keysyms-dev \
xcb-util-renderutil-dev \
xcb-util-wm-dev \
xinit \
xkbcomp \
xkbcomp-dev \
xkeyboard-config \
xorgproto \
xorg-server-common \
xorg-server-dev \
xtrans
ENV SCRIPTS_DIR=/tmp/scripts
COPY builder/scripts $SCRIPTS_DIR
RUN $SCRIPTS_DIR/build-webp
RUN $SCRIPTS_DIR/build-libjpeg-turbo
RUN useradd -m docker && echo "docker:docker" | chpasswd
COPY --chown=docker:docker . /src/
USER docker
ENTRYPOINT ["/src/builder/build.sh"]