diff options
author | khramshinr <khramshinr@gmail.com> | 2024-09-11 20:31:49 +0600 |
---|---|---|
committer | khramshinr <khramshinr@gmail.com> | 2024-09-16 14:23:59 +0600 |
commit | a26ef9e1700b3aa3885a7e0769a1672aa5f485dc (patch) | |
tree | f879931cac3269058d5e141fcf6cef2f5e14aaa4 /docker/Dockerfile | |
parent | 300674c1444d361e31e9a5d3a05bd4e6cd409f17 (diff) | |
download | vyos-build-a26ef9e1700b3aa3885a7e0769a1672aa5f485dc.tar.gz vyos-build-a26ef9e1700b3aa3885a7e0769a1672aa5f485dc.zip |
T6684: new Debian package repo snapshot logic
patch live-build to save information about all installed packages and their source repo, including temporary packages
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r-- | docker/Dockerfile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index 40b2067d..2824bcb0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -177,6 +177,18 @@ RUN wget -O /tmp/open-vmdk-master.zip https://github.com/vmware/open-vmdk/archiv unzip -d /tmp/ /tmp/open-vmdk-master.zip && \ cd /tmp/open-vmdk-master/ && make && make install +# Packages need for build live-build +RUN apt-get update && apt-get install -y \ + cpio + +COPY patches/live-build/0001-save-package-info.patch /tmp/0001-save-package-info.patch + +RUN git clone https://salsa.debian.org/live-team/live-build.git /tmp/live-build && \ + cd /tmp/live-build && git checkout debian/1%20240810 && \ + patch -p1 < /tmp/0001-save-package-info.patch && \ + dch -n "Applying fix for save package info" && \ + dpkg-buildpackage -us -uc && \ + dpkg -i ../live-build*.deb # # live-build: building in docker fails with mounting /proc | /sys # |