aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-ggsn-latest
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-02-19 14:25:34 +0100
committerOliver Smith <osmith@sysmocom.de>2021-02-26 09:32:39 +0100
commit79e48fd3ae1279eeaa3373d92d343f2dbfae075e (patch)
treea910168f0fe2773405390c36a2e99500de32c606 /osmo-ggsn-latest
parentfd6f09e0c2aaa2354a5c4be0ed4a332bbdd9aa5d (diff)
ttcn3-ggsn-test: add kernel test
Make it possible to run ttcn3-ggsn-test against osmo-ggsn with the GTP kernel module. This feature is enabled by environment variables explained in ttcn3-ggsn-test/jenkins.sh, and can either use the pre-built kernel from Debian, or build a kernel from source. The kernel runs inside QEMU inside the usual osmo-ggsn-master docker image. Thanks to Pau for providing the kernel config and kernel-test scripts that this patch is based on! I ended up modifying them quite a bit to fit the docker use case, and to build the initrd (so we can use the stock debian kernel). Related: OS#3208 Change-Id: I54e752048eed2a170a1cf4e0fd410de255b9de5d
Diffstat (limited to 'osmo-ggsn-latest')
-rw-r--r--osmo-ggsn-latest/Dockerfile16
1 files changed, 13 insertions, 3 deletions
diff --git a/osmo-ggsn-latest/Dockerfile b/osmo-ggsn-latest/Dockerfile
index d84dd4e..90b12b9 100644
--- a/osmo-ggsn-latest/Dockerfile
+++ b/osmo-ggsn-latest/Dockerfile
@@ -19,10 +19,20 @@ RUN apt-key add /tmp/Release.key && \
echo "deb " $OSMOCOM_REPO " ./" > /etc/apt/sources.list.d/osmocom-latest.list
ADD $OSMOCOM_REPO/Release /tmp/Release
-RUN apt-get update && \
+# Disable update-initramfs to save time during apt-get install
+RUN ln -s /bin/true /usr/local/bin/update-initramfs && \
+ apt-get update && \
apt-get install -y --no-install-recommends \
- telnet \
- osmo-ggsn && \
+ bc \
+ bridge-utils \
+ busybox-static \
+ ca-certificates \
+ libelf-dev \
+ linux-image-amd64 \
+ osmo-ggsn \
+ pax-utils \
+ qemu-system-x86 \
+ telnet && \
apt-get clean
WORKDIR /tmp