summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile75
1 files changed, 9 insertions, 66 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 36992bd2..72c0af55 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -88,7 +88,8 @@ RUN apt-get update && apt-get install -y \
po4a \
openssh-client \
jq \
- socat
+ socat \
+ python-is-python3
# Packages needed for vyos-build
RUN apt-get update && apt-get install -y \
@@ -109,7 +110,8 @@ RUN apt-get update && apt-get install -y \
live-build \
gdisk \
sbsigntool \
- dosfstools
+ dosfstools \
+ kpartx
# Packages for TPM test
RUN apt-get update && apt-get install -y swtpm
@@ -123,9 +125,10 @@ RUN if dpkg-architecture -ii386 || dpkg-architecture -iamd64; then \
# Building libvyosconf requires a full configured OPAM/OCaml setup
RUN apt-get update && apt-get install -y \
+ quilt \
debhelper \
libffi-dev \
- libpcre3-dev \
+ libpcre2-dev \
unzip
# Update certificate store to not crash ocaml package install
@@ -135,17 +138,15 @@ RUN dpkg-reconfigure ca-certificates; \
echo "cacert=/etc/ssl/certs/ca-certificates.crt" >> ~/.curlrc; \
fi
-# Installing OCAML needed to compile libvyosconfig
+# Installing OCaml needed to compile libvyosconfig
RUN curl https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh \
--output /tmp/opam_install.sh --retry 10 --retry-delay 5 && \
sed -i 's/read_tty BINDIR/BINDIR=""/' /tmp/opam_install.sh && sh /tmp/opam_install.sh && \
opam init --root=/opt/opam --comp=${OCAML_VERSION} --disable-sandboxing --no-setup
-RUN eval $(opam env --root=/opt/opam --set-root) && \
- opam pin add pcre https://github.com/mmottl/pcre-ocaml.git#0c4ca03a -y
-
RUN eval $(opam env --root=/opt/opam --set-root) && opam install -y \
re \
+ pcre2 \
num \
ctypes \
ctypes-foreign \
@@ -154,12 +155,6 @@ RUN eval $(opam env --root=/opt/opam --set-root) && opam install -y \
fileutils \
xml-light
-# Packages needed for libvyosconfig
-RUN apt-get update && apt-get install -y \
- quilt \
- libpcre3-dev \
- libffi-dev
-
# Packages needed for open-vmdk
RUN apt-get update && apt-get install -y \
zlib1g-dev
@@ -197,34 +192,7 @@ RUN wget https://salsa.debian.org/klausenbusk-guest/debootstrap/commit/a9a603b17
dpkg-buildpackage -us -uc && \
sudo dpkg -i ../debootstrap*.deb
-# Packages needed for Linux Kernel
-# cmake required by accel-ppp
-RUN apt-get update && apt-get install -y \
- cmake \
- gnupg2 \
- rsync \
- libelf-dev \
- libncurses5-dev \
- flex \
- bison \
- bc \
- kmod \
- cpio \
- python-is-python3 \
- dwarves \
- nasm \
- rdfind
-
-# Packages needed for Intel QAT out-of-tree drivers
# FPM is used when generation Debian pckages for e.g. Intel QAT drivers
-RUN apt-get update && apt-get install -y \
- pciutils \
- yasm \
- ruby \
- libudev-dev \
- ruby-dev \
- rubygems \
- build-essential
RUN gem install --no-document fpm
# Packages needed for vyos-1x
@@ -232,6 +200,7 @@ RUN pip install --break-system-packages \
git+https://github.com/aristanetworks/j2lint.git@341b5d5db86 \
pyhumps==3.8.0; \
apt-get update && apt-get install -y \
+ build-essential \
dh-python \
fakeroot \
iproute2 \
@@ -285,7 +254,6 @@ RUN if dpkg-architecture -ii386 || dpkg-architecture -iamd64; then \
# This is only supported on i386 and amd64 platforms
RUN if dpkg-architecture -ii386 || dpkg-architecture -iamd64; then \
apt-get update && apt-get install -y \
- kpartx \
parted \
udev \
grub-pc \
@@ -322,12 +290,6 @@ RUN if dpkg-architecture -iarm64; then \
grub-efi-arm; \
fi
-# Packages needed for openvpn-otp
-RUN apt-get update && apt-get install -y \
- debhelper \
- libssl-dev \
- openvpn
-
# Packages needed for OWAMP/TWAMP (service sla)
RUN git clone -b 4.4.6 https://github.com/perfsonar/i2util.git /tmp/i2util && \
cd /tmp/i2util && \
@@ -340,30 +302,11 @@ RUN apt-get update && apt-get install -y \
udev \
zip
-# Packages needed for Accel-PPP
-# XXX: please note that this must be installed after nftable dependencies - otherwise
-# APT will remove liblua5.3-dev which breaks the Accel-PPP build
-# With bookworm, updated to libssl3 (Note: https://github.com/accel-ppp/accel-ppp/issues/68)
-RUN apt-get update && apt-get install -y \
- liblua5.3-dev \
- libssl3 \
- libssl-dev \
- libpcre3-dev
-
# debmake: a native Debian tool for preparing sources for packaging
RUN apt-get update && apt-get install -y \
debmake \
python3-debian
-# Packages for jool
-RUN apt-get update && apt-get install -y \
- libnl-genl-3-dev \
- libxtables-dev
-
-# Packages needed for nftables
-RUN apt-get update && apt-get install -y \
- asciidoc-base
-
# Allow password-less 'sudo' for all users in group 'sudo'
RUN sed "s/^%sudo.*/%sudo\tALL=(ALL) NOPASSWD:ALL/g" -i /etc/sudoers && \
echo "vyos_bld\tALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \