summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/trigger_rebuild_packages.yml4
-rw-r--r--docker/Dockerfile15
2 files changed, 8 insertions, 11 deletions
diff --git a/.github/workflows/trigger_rebuild_packages.yml b/.github/workflows/trigger_rebuild_packages.yml
index c98212ea..cfaf6d5c 100644
--- a/.github/workflows/trigger_rebuild_packages.yml
+++ b/.github/workflows/trigger_rebuild_packages.yml
@@ -129,6 +129,10 @@ jobs:
trigger_build "bash-completion"
fi
+ if [ "${{ steps.changes.outputs.blackbox_exporter }}" == "true" ]; then
+ trigger_build "blackbox_exporter"
+ fi
+
if [ "${{ steps.changes.outputs.ddclient }}" == "true" ]; then
trigger_build "ddclient"
fi
diff --git a/docker/Dockerfile b/docker/Dockerfile
index f7f4c780..72c0af55 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -125,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
@@ -137,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 \
@@ -156,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