Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# shellcheck disable=SC2034,SC2154

# Current container image
INFIX_TEST=ghcr.io/kernelkit/infix-test:2.17
INFIX_TEST=ghcr.io/kernelkit/infix-test:2.19

ixdir=$(readlink -f "$testdir/..")
logdir=$(readlink -f "$testdir/.log")
Expand Down
11 changes: 10 additions & 1 deletion test/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,21 @@ RUN apk add --no-cache \
libyang-dev \
linux-headers \
make \
mtools \
ncurses-dev \
net-snmp-tools \
nmap \
openssh-client \
openssl \
ovmf \
pandoc-cli \
pkgconf \
python3-dev \
qemu-img \
qemu-system-x86_64 \
ruby-mustache \
setpriv \
sfdisk \
skopeo \
socat \
squashfs-tools \
Expand All @@ -59,6 +62,12 @@ RUN wget https://github.com/troglobit/mtools/releases/download/v3.0/mtools-$MTOO
RUN cd /tmp/ && tar zxvf mtools-$MTOOL_VERSION.tar.gz
RUN cd /tmp/mtools-$MTOOL_VERSION && make && make install

# Alpine's sysklogd is the ancient 1.5.1, build the same release as Infix
ARG SYSKLOGD_VERSION="2.8.0"
RUN wget https://github.com/troglobit/sysklogd/releases/download/v$SYSKLOGD_VERSION/sysklogd-$SYSKLOGD_VERSION.tar.gz -O /tmp/sysklogd-$SYSKLOGD_VERSION.tar.gz
RUN cd /tmp/ && tar zxf sysklogd-$SYSKLOGD_VERSION.tar.gz
RUN cd /tmp/sysklogd-$SYSKLOGD_VERSION && ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var && make && make install

# trafgen and mausezahn, traffic generators for the QoS tests. Alpine
# has no netsniff-ng package, and mausezahn needs libcli, which is only
# in edge/testing, so both are built from their release tarballs.
Expand Down Expand Up @@ -95,7 +104,7 @@ RUN ~/init-venv.sh ~/pip-requirements.txt && chown -R infamy:infamy /home/infamy

# Download container images for upgrade testing
COPY case/containers/upgrade/download.sh /tmp/download.sh
RUN /tmp/download.sh /srv && rm /tmp/download.sh
RUN /tmp/download.sh /srv && rm /tmp/download.sh && chown -R infamy:infamy /srv

COPY docker/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
Expand Down
2 changes: 1 addition & 1 deletion test/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ -n "$INFAMY_UID" ]; then
if [ "$(id -u infamy):$(id -g infamy)" != "$INFAMY_UID:$INFAMY_GID" ]; then
sed -i "s/^infamy:x:[0-9]*:[0-9]*:/infamy:x:$INFAMY_UID:$INFAMY_GID:/" /etc/passwd
sed -i "s/^infamy:x:[0-9]*:/infamy:x:$INFAMY_GID:/" /etc/group
chown -R infamy:infamy /home/infamy
chown -R infamy:infamy /home/infamy /srv
fi

# /dev/kvm keeps its host group, let infamy use it
Expand Down
Loading