summaryrefslogtreecommitdiff
path: root/docker/dpkg-build/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker/dpkg-build/Dockerfile')
-rw-r--r--docker/dpkg-build/Dockerfile32
1 files changed, 32 insertions, 0 deletions
diff --git a/docker/dpkg-build/Dockerfile b/docker/dpkg-build/Dockerfile
new file mode 100644
index 0000000..f745c0c
--- /dev/null
+++ b/docker/dpkg-build/Dockerfile
@@ -0,0 +1,32 @@
+FROM docker.io/debian:bullseye
+
+RUN apt-get update -y
+RUN apt-get upgrade -y
+
+# Install essential build dependencies
+RUN apt-get -y install build-essential devscripts debhelper equivs sudo
+
+# Allow everyone to sudo
+RUN echo 'ALL ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
+
+RUN useradd -m builduser
+
+USER builduser
+
+WORKDIR /home/builduser
+
+# Clone our repos
+RUN git clone --depth=1 git://git.gnunet.org/gnunet.git
+RUN git clone --depth=1 git://git.taler.net/exchange.git
+RUN git clone --depth=1 git://git.taler.net/merchant.git
+
+#
+## Build GNUnet
+#
+
+# Install build dependencies
+RUN cd ~/gnunet && sudo mk-build-deps -t "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" --install debian/control
+
+RUN cd ~/gnunet && ./bootstrap
+RUN cd ~/gnunet && debuild --no-sign -i -B
+