Add Dockerfile

Signed-off-by: Vladimir Vinogradenko <vladimirv@ixsystems.com>
This commit is contained in:
themylogin 2024-01-04 13:41:38 +01:00 committed by Ameer Hamza
parent 02cfb15a5e
commit f27da86786
3 changed files with 29 additions and 1 deletions

View File

@ -3,7 +3,7 @@ name: build_image
on:
push:
branches:
- 'truenas/zfs-2.1-release'
- 'truenas/zfs-2.3-release'
jobs:
docker:

1
.gitignore vendored
View File

@ -52,6 +52,7 @@
!configure.ac
!copy-builtin
!COPYRIGHT
!Dockerfile
!LICENSE
!Makefile.am
!META

27
Dockerfile Normal file
View File

@ -0,0 +1,27 @@
FROM debian:bullseye-slim
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -y \
debhelper-compat \
devscripts
ENV WORK_DIR /zfs_app/zfs
WORKDIR ${WORK_DIR}
ADD . ${WORK_DIR}/
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