Docker: T5400: move build of libvyosconfig to vyos-1x

libvyosconfig is both a build and a run dependency of vyos-1x.
Satisfying the build dependency within the Docker image requires
coordination of updates to vyos-build/libvyosconfig/vyos-1x on any
changes to the library; simplify this process by moving the build to a
step of the vyos-1x Makefile.
This commit is contained in:
John Estabrook 2025-03-04 12:47:51 +01:00
parent c54fba1fd7
commit ee0c643908

View File

@ -160,13 +160,6 @@ RUN apt-get update && apt-get install -y \
libpcre3-dev \ libpcre3-dev \
libffi-dev libffi-dev
# Build libvyosconfig
RUN eval $(opam env --root=/opt/opam --set-root) && \
git clone https://github.com/vyos/libvyosconfig.git /tmp/libvyosconfig && \
cd /tmp/libvyosconfig && git checkout 677d1e2bf8109b9fd4da60e20376f992b747e384 && \
dpkg-buildpackage -uc -us -tc -b && \
dpkg -i /tmp/libvyosconfig0_*_$(dpkg-architecture -qDEB_HOST_ARCH).deb
# Packages needed for open-vmdk # Packages needed for open-vmdk
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
zlib1g-dev zlib1g-dev