summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-07 23:59:24 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-08 17:22:49 +0100
commit8108ce1b3f0d9517f7db06f534eee95601fb978f (patch)
tree49476733afe90288cfc3ed88f3cb456064cad8ae /docker
parent64293ebee38ae6320cb0ff6ce8ff492b8416e09e (diff)
downloadvyos-build-8108ce1b3f0d9517f7db06f534eee95601fb978f.tar.gz
vyos-build-8108ce1b3f0d9517f7db06f534eee95601fb978f.zip
Docker: properly arrange vyos-build dependencies
(cherry picked from commit de88ecec39b73df8a2b1836b43ed5fba719275d2)
Diffstat (limited to 'docker')
-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 && \