Skip to content

Commit

Permalink
Merge pull request #205 from truenas/contrib-truenas
Browse files Browse the repository at this point in the history
NAS-126767 / None / Change `Dockerfile` to use standard build process
  • Loading branch information
themylogin authored Jan 12, 2024
2 parents e9363d8 + 861b0ed commit f12cd3d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f12cd3d

Please sign in to comment.