Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

[CI] Add AlmaLinux 8 pipeline #2355

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 37 additions & 0 deletions .ci/almalinux-8.dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
2 changes: 2 additions & 0 deletions .ci/lib/config-almalinux8.jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
env.GLIBC_VERSION = '2.33'
env.PYTHONVERSION = 'python3.6'
20 changes: 20 additions & 0 deletions .ci/linux-direct-rhel8-gcc-release.jenkinsfile
Original file line number Diff line number Diff line change
@@ -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'
}
}