From 3e6d9629e01964c388c66d3517e88a9dbd5df0fe Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Thu, 6 May 2021 19:06:35 +0200 Subject: [PATCH] [CI] Add AlmaLinux 8 pipeline Signed-off-by: Wojtek Porczyk --- .ci/almalinux-8.dockerfile | 37 +++++++++++++++++++ .ci/lib/config-almalinux8.jenkinsfile | 2 + ...linux-direct-rhel8-gcc-release.jenkinsfile | 20 ++++++++++ 3 files changed, 59 insertions(+) create mode 100644 .ci/almalinux-8.dockerfile create mode 100644 .ci/lib/config-almalinux8.jenkinsfile create mode 100644 .ci/linux-direct-rhel8-gcc-release.jenkinsfile diff --git a/.ci/almalinux-8.dockerfile b/.ci/almalinux-8.dockerfile new file mode 100644 index 0000000000..26dbf645a9 --- /dev/null +++ b/.ci/almalinux-8.dockerfile @@ -0,0 +1,37 @@ +FROM almalinux/almalinux:8 + +RUN dnf -y update && dnf -y install \ + autoconf \ + bison \ + gawk \ + meson \ + python3-click \ + python3-jinja2 \ +&& dnf clean all + +# Add the user UID:1001, GID:1001, home at /leeroy +RUN \ + groupadd -r leeroy -g 1001 && \ + useradd -u 1001 -r -g leeroy -m -d /leeroy -c "Leeroy Jenkins" leeroy && \ + chmod 755 /leeroy + +# Make sure /leeroy can be written by leeroy +RUN chown 1001 /leeroy + +# Blow away any random state +RUN rm -f /leeroy/.rnd + +# Make a directory for the intel driver +RUN mkdir -p /opt/intel && chown 1001 /opt/intel + +# Set the working directory to leeroy home directory +WORKDIR /leeroy + +# Specify the user to execute all commands below +USER leeroy + +# Set environment variables. +ENV HOME /leeroy + +# Define default command. +CMD ["bash"] diff --git a/.ci/lib/config-almalinux8.jenkinsfile b/.ci/lib/config-almalinux8.jenkinsfile new file mode 100644 index 0000000000..339f814dac --- /dev/null +++ b/.ci/lib/config-almalinux8.jenkinsfile @@ -0,0 +1,2 @@ +env.GLIBC_VERSION = '2.33' +env.PYTHONVERSION = 'python3.6' diff --git a/.ci/linux-direct-rhel8-gcc-release.jenkinsfile b/.ci/linux-direct-rhel8-gcc-release.jenkinsfile new file mode 100644 index 0000000000..234fc9302d --- /dev/null +++ b/.ci/linux-direct-rhel8-gcc-release.jenkinsfile @@ -0,0 +1,20 @@ +node('nonsgx_slave') { + checkout scm + + load '.ci/lib/config-docker.jenkinsfile' + docker.build( + "local:${env.BUILD_TAG}", + '-f .ci/almalinux-8.dockerfile .' + ).inside("${env.DOCKER_ARGS_COMMON}") { + load '.ci/lib/config.jenkinsfile' + load '.ci/lib/config-almalinux8.jenkinsfile' + load '.ci/lib/config-release.jenkinsfile' + + load '.ci/lib/stage-lint.jenkinsfile' + load '.ci/lib/stage-clean-check-prepare.jenkinsfile' + load '.ci/lib/stage-build-nosgx.jenkinsfile' + load '.ci/lib/stage-test.jenkinsfile' + load '.ci/lib/stage-test-direct.jenkinsfile' + load '.ci/lib/stage-clean-check.jenkinsfile' + } +}