summaryrefslogtreecommitdiff
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-07 23:59:24 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-07 23:59:24 +0100
commitde88ecec39b73df8a2b1836b43ed5fba719275d2 (patch)
tree76195c71482b0af130221ab55e15840000c4fd8a /docker/Dockerfile
parent093505b25f500dbd0691e01c96717081f2385dfa (diff)
downloadvyos-build-de88ecec39b73df8a2b1836b43ed5fba719275d2.tar.gz
vyos-build-de88ecec39b73df8a2b1836b43ed5fba719275d2.zip
Docker: properly arrange vyos-build dependencies
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile28
1 files changed, 19 insertions, 9 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 9baed7d4..1cc7350f 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -66,20 +66,11 @@ RUN apt-get update && apt-get install -y \
curl \
sudo \
mc \
- build-essential \
pbuilder \
devscripts \
- squashfs-tools \
- genisoimage \
lsb-release \
- fakechroot \
libtool \
libapt-pkg-dev \
- quilt \
- python3-git \
- python3-pip \
- python3-flake8 \
- python3-autopep8 \
flake8 \
pkg-config \
debhelper \
@@ -88,6 +79,18 @@ RUN apt-get update && apt-get install -y \
openssh-client \
jq
+# Packages needed for vyos-build
+RUN apt-get update && apt-get install -y \
+ build-essential \
+ python3-pystache \
+ squashfs-tools \
+ genisoimage \
+ fakechroot \
+ python3-git \
+ python3-pip \
+ python3-flake8 \
+ python3-autopep8
+
# Syslinux and Grub2 is only supported on x86 and x64 systems
RUN if dpkg-architecture -ii386 || dpkg-architecture -iamd64; then \
apt-get update && apt-get install -y \
@@ -99,6 +102,7 @@ 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 \
+ debhelper \
libffi-dev \
libpcre3-dev \
unzip
@@ -129,6 +133,12 @@ RUN eval $(opam env --root=/opt/opam --set-root) && opam install -y \
RUN eval $(opam env --root=/opt/opam --set-root) && \
opam pin add vyos1x-config https://github.com/vyos/vyos1x-config.git#550048b3 -y
+# Packages needed for libvyosconfig
+RUN apt-get update && apt-get install -y \
+ quilt \
+ libpcre3-dev \
+ libffi-dev
+
# Build libvyosconfig
RUN eval $(opam env --root=/opt/opam --set-root) && \
git clone https://github.com/vyos/libvyosconfig.git /tmp/libvyosconfig && \