osmith has uploaded this change for review. (
https://gerrit.osmocom.org/c/docker-playground/+/28902 )
Change subject: debian-bullseye-obs-asan: new container
......................................................................
debian-bullseye-obs-asan: new container
Add docker container and adjust jenkins-common.sh scripts for running
the testsuite against the asan repository.
Related: OS#5301
Change-Id: Ic7d6e7cc401acadbae9156d3e7f3a6230c2fb198
---
A debian-bullseye-obs-asan/Dockerfile
A debian-bullseye-obs-asan/Makefile
M jenkins-common.sh
3 files changed, 37 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/02/28902/1
diff --git a/debian-bullseye-obs-asan/Dockerfile b/debian-bullseye-obs-asan/Dockerfile
new file mode 100644
index 0000000..b266934
--- /dev/null
+++ b/debian-bullseye-obs-asan/Dockerfile
@@ -0,0 +1,27 @@
+ARG REGISTRY=docker.io
+ARG UPSTREAM_DISTRO=debian:bullseye
+FROM ${REGISTRY}/${UPSTREAM_DISTRO}
+# Arguments used after FROM must be specified again
+ARG OSMOCOM_REPO_MIRROR="https://downloads.osmocom.org"
+ARG OSMOCOM_REPO_PATH="packages/osmocom:"
+ARG OSMOCOM_REPO="${OSMOCOM_REPO_MIRROR}/${OSMOCOM_REPO_PATH}/nightly:/asan/Debian_11/"
+
+RUN apt-get update && \
+ apt-get upgrade -y && \
+ apt-get install -y --no-install-recommends \
+ telnet \
+ ca-certificates \
+ gnupg \
+ && \
+ apt-get clean
+
+COPY .common/Release.key /tmp/Release.key
+RUN apt-key add /tmp/Release.key && \
+ rm /tmp/Release.key && \
+ echo "deb " $OSMOCOM_REPO " ./" >
/etc/apt/sources.list.d/osmocom-asan.list
+
+# Make respawn.sh part of this image, so it can be used by other images based on it
+COPY .common/respawn.sh /usr/local/bin/respawn.sh
+
+# Invalidate cache once the repository is updated
+ADD $OSMOCOM_REPO/Release /tmp/Release
diff --git a/debian-bullseye-obs-asan/Makefile b/debian-bullseye-obs-asan/Makefile
new file mode 100644
index 0000000..736769d
--- /dev/null
+++ b/debian-bullseye-obs-asan/Makefile
@@ -0,0 +1,3 @@
+UPSTREAM_DISTRO=debian:bullseye
+DISTRO=debian-bullseye
+include ../make/Makefile
diff --git a/jenkins-common.sh b/jenkins-common.sh
index b393b05..830c65c 100644
--- a/jenkins-common.sh
+++ b/jenkins-common.sh
@@ -20,6 +20,7 @@
osmo-*-centos7) echo "centos7-build" ;;
osmo-*-centos8) echo "centos8-build" ;;
osmo-*-latest) echo "debian-bullseye-obs-latest" ;;
+ osmo-*-asan) echo "debian-bullseye-obs-asan" ;;
osmo-*) echo "debian-bullseye-build" ;;
open5gs-*) echo "debian-bullseye-build" ;;
ttcn3-*) echo "debian-bullseye-titan" ;;
@@ -70,6 +71,12 @@
# e.g. centos8-obs-2021q1 -> centos8-obs-latest
echo "$1" | sed 's/20[0-9][0-9]q.*$/latest/'
;;
+ osmo-*-asan)
+ # e.g. osmo-mgw-asan -> osmo-mgw-latest
+ # Using latest and not master, so the binary packages from
+ # the asan repository are not only used for libraries.
+ echo "$1" | sed 's/-asan/-latest/'
+ ;;
*)
echo "$1"
;;
--
To view, visit
https://gerrit.osmocom.org/c/docker-playground/+/28902
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: Ic7d6e7cc401acadbae9156d3e7f3a6230c2fb198
Gerrit-Change-Number: 28902
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newchange