Skip to content

Commit

Permalink
WIP [CI] Add pipeline for noble (Ubuntu 24.04 LTS)
Browse files Browse the repository at this point in the history
noble is not yet released at this point

Signed-off-by: Wojtek Porczyk <woju@invisiblethingslab.com>
  • Loading branch information
woju committed Apr 12, 2024
1 parent 85f0bbf commit eb1bebb
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .ci/linux-sgx-ubuntu24.04-gcc-release.jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
node('sgx') {
checkout scm

env.SGX = '1'
env.SGX_DRIVER = 'upstream'

load '.ci/lib/config-docker.jenkinsfile'
docker.build(
"local:${env.BUILD_TAG}",
'-f .ci/ubuntu24.04.dockerfile .'
).inside("${env.DOCKER_ARGS_COMMON} ${env.DOCKER_ARGS_SGX}") {
load '.ci/lib/config.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-sgx.jenkinsfile'
load '.ci/lib/stage-test.jenkinsfile'
load '.ci/lib/stage-clean-check.jenkinsfile'
}
}
23 changes: 23 additions & 0 deletions .ci/ubuntu24.04.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM ubuntu:noble

ENV DEBIAN_FRONTEND=noninteractive

# Intel's RSA-2048 key signing the intel-sgx/sgx_repo repository. Expires 2027-03-20.
# https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key
COPY .ci/intel-sgx-deb.key /etc/apt/trusted.gpg.d/intel-sgx-deb.asc
RUN echo deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main > /etc/apt/sources.list.d/intel-sgx.list

# Dependencies for actual build.
# NOTE: COPY invalidates docker cache when source file changes,
# so `apt-get build-dep` will rerun if dependencies change, despite no change
# in dockerfile.
RUN mkdir /debian
COPY debian/control /debian
RUN apt-get update && apt-get -y build-dep --no-install-recommends --no-install-suggests /
RUN rm -rf /debian

# dependencies for various tests, CI-Examples, etc.
RUN apt-get update && apt-get install -y \
nginx

CMD ["bash"]

0 comments on commit eb1bebb

Please sign in to comment.