Change `Dockerfile` to use standard build process

Signed-off-by: Vladimir Vinogradenko <vladimirv@ixsystems.com>
This commit is contained in:
themylogin 2024-01-07 17:08:38 +01:00
parent e9363d82df
commit 861b0ed1ed
1 changed files with 8 additions and 2 deletions

View File

@ -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