From 861b0ed1ed278c77c65bd100f0381ba56cdf04af Mon Sep 17 00:00:00 2001 From: themylogin Date: Sun, 7 Jan 2024 17:08:38 +0100 Subject: [PATCH] Change `Dockerfile` to use standard build process Signed-off-by: Vladimir Vinogradenko --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 383c1e677b8e..421825f68ada 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,9 +13,15 @@ WORKDIR ${WORK_DIR} ADD . ${WORK_DIR}/ -RUN cp -a contrib/truenas debian -RUN mk-build-deps --build-dep +RUN mk-build-deps --build-dep contrib/debian/control RUN apt install -y ./*.deb +RUN sh autogen.sh +RUN ./configure +RUN cp -a contrib/debian debian +RUN sed 's/@CFGOPTS@/--enable-debuginfo/g' debian/rules.in > debian/rules +RUN chmod +x debian/rules RUN dch -b -M --force-distribution --distribution bullseye-truenas-unstable "Tagged from ixsystems/zfs CI" RUN debuild -us -uc -b +RUN rm ../openzfs-zfs-dracut_*.deb +RUN rm ../openzfs-zfs-initramfs_*.deb RUN apt-get install -y ../*.deb