Merge pull request #205 from truenas/contrib-truenas

NAS-126767 / None / Change `Dockerfile` to use standard build process
This commit is contained in:
themylogin 2024-01-12 13:22:49 +01:00 committed by GitHub
commit f12cd3d5d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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