diff --git a/.gitignore b/.gitignore index bd3d4befd2..b402087020 100644 --- a/.gitignore +++ b/.gitignore @@ -52,6 +52,7 @@ !configure.ac !copy-builtin !COPYRIGHT +!Dockerfile !LICENSE !Makefile.am !META diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..383c1e677b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +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 cp -a contrib/truenas debian +RUN mk-build-deps --build-dep +RUN apt install -y ./*.deb +RUN dch -b -M --force-distribution --distribution bullseye-truenas-unstable "Tagged from ixsystems/zfs CI" +RUN debuild -us -uc -b +RUN apt-get install -y ../*.deb