summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@sentrium.io>2019-10-28 13:44:47 -0500
committerChristian Poessinger <christian@poessinger.com>2019-11-06 17:49:23 +0100
commit165e447b6c57cb9f376ea8f0d991f11ca7efb30e (patch)
tree352b2146c7dc37b5f61c78786556063e8807557c /docker
parentac97a4dba7e938575576ff2a78524e90f2dc215f (diff)
downloadvyos-build-165e447b6c57cb9f376ea8f0d991f11ca7efb30e.tar.gz
vyos-build-165e447b6c57cb9f376ea8f0d991f11ca7efb30e.zip
T1773: update Dockerfile for changes to libvyosconfig
(cherry picked from commit bdce9244ff9acc57bf04a6c922cc78787aaa8174)
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile30
1 files changed, 7 insertions, 23 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 3befeea0..b9fdae85 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -98,40 +98,24 @@ RUN apt-get update && apt-get install -y \
RUN curl https://raw.githubusercontent.com/ocaml/opam/2.0.2/shell/install.sh --output /tmp/opam_install.sh && \
sed -i 's/read BINDIR/BINDIR=""/' /tmp/opam_install.sh && sh /tmp/opam_install.sh && \
- opam init --root=/opt/opam --comp=4.07.0 --disable-sandboxing
-
-RUN eval $(opam env --root=/opt/opam --set-root) && \
- opam install -y \
- oasis
+ opam init --root=/opt/opam --comp=4.08.0 --disable-sandboxing
RUN eval $(opam env --root=/opt/opam --set-root) && opam install -y \
- fileutils \
- lwt \
- lwt_ppx \
- lwt_log \
- ocplib-endian \
- ounit \
- pcre \
- ppx_deriving_yojson \
- sha \
- toml \
- xml-light \
- batteries \
- ocaml-protoc \
- ctypes-foreign \
- menhir
+ pcre
RUN eval $(opam env --root=/opt/opam --set-root) && opam install -y \
- ctypes
+ ctypes \
+ ctypes-foreign \
+ ctypes-build
# Build VyConf which is required to build libvyosconfig
RUN eval $(opam env --root=/opt/opam --set-root) && \
- opam pin add vyconf https://github.com/vyos/vyconf.git#51d79a3f -y
+ opam pin add vyos1x-config https://github.com/vyos/vyos1x-config.git#550048b3 -y
# Build libvyosconfig
RUN eval $(opam env --root=/opt/opam --set-root) && \
git clone https://github.com/vyos/libvyosconfig.git && \
- cd libvyosconfig && git checkout 9a80a5d3 && \
+ cd libvyosconfig && git checkout 5138b5eb && \
dpkg-buildpackage -uc -us -tc -b && \
dpkg -i ../libvyosconfig0_*_amd64.deb