From a88073f6fb980f04cbaa05aa1532622ad9418ca9 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 15 Sep 2020 11:10:45 +0200 Subject: [PATCH] repro: Add missing Dockerfiles --- contrib/reprobuild/Dockerfile.bionic | 42 ++++++++++++++++++++++++++ contrib/reprobuild/Dockerfile.focal | 44 ++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 contrib/reprobuild/Dockerfile.bionic create mode 100644 contrib/reprobuild/Dockerfile.focal diff --git a/contrib/reprobuild/Dockerfile.bionic b/contrib/reprobuild/Dockerfile.bionic new file mode 100644 index 000000000..d0d13715c --- /dev/null +++ b/contrib/reprobuild/Dockerfile.bionic @@ -0,0 +1,42 @@ +FROM bionic + +ENV TZ=UTC +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone + +RUN sed -i '/updates/d' /etc/apt/sources.list && \ + sed -i '/security/d' /etc/apt/sources.list + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + ca-certificates \ + sudo \ + build-essential \ + libsodium23 \ + python3-setuptools \ + libpq-dev \ + git \ + file \ + autoconf \ + debianutils \ + gettext \ + zip \ + unzip \ + wget + +RUN wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py && python3 /tmp/get-pip.py \ + && rm /tmp/get-pip.py \ + && pip install mrkd mako + +RUN mkdir /build +WORKDIR /build + +CMD git clone /repo /build \ + && tools/build-release.sh zipfile \ + && mkdir -p /repro \ + && cd /repro \ + && unzip /build/release/*.zip \ + && cd clightning* \ + && tools/repro-build.sh \ + && cp *.xz /build/release/* /repo/release/ \ + && cd /repo/release \ + && sha256sum * diff --git a/contrib/reprobuild/Dockerfile.focal b/contrib/reprobuild/Dockerfile.focal new file mode 100644 index 000000000..a58e44a5f --- /dev/null +++ b/contrib/reprobuild/Dockerfile.focal @@ -0,0 +1,44 @@ +FROM focal + +ENV TZ=UTC +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone + +RUN sed -i '/updates/d' /etc/apt/sources.list && \ + sed -i '/security/d' /etc/apt/sources.list + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + autoconf \ + build-essential \ + ca-certificates \ + file \ + gettext \ + git \ + libgmp-dev \ + libpq-dev \ + libsodium23 \ + libtool \ + m4 \ + python3-setuptools \ + sudo \ + unzip \ + wget \ + zip + +RUN wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py && python3 /tmp/get-pip.py \ + && rm /tmp/get-pip.py \ + && pip install mrkd mako + +RUN mkdir /build +WORKDIR /build + +CMD git clone /repo /build \ + && tools/build-release.sh zipfile \ + && mkdir -p /repro \ + && cd /repro \ + && unzip /build/release/*.zip \ + && cd clightning* \ + && tools/repro-build.sh \ + && cp *.xz /build/release/* /repo/release/ \ + && cd /repo/release/ \ + && sha256sum *