From cc57c64c9a5b1c0e7935949560c13e45dc6da211 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Sun, 13 Nov 2016 23:22:04 +0100 Subject: splitting base container --- docker/base/Dockerfile | 26 -------------------------- docker/base/README | 10 ++++++++-- docker/base/debian/Dockerfile | 15 +++++++++++++++ docker/base/gnunet/Dockerfile | 12 ++++++++++++ 4 files changed, 35 insertions(+), 28 deletions(-) delete mode 100644 docker/base/Dockerfile create mode 100644 docker/base/debian/Dockerfile create mode 100644 docker/base/gnunet/Dockerfile diff --git a/docker/base/Dockerfile b/docker/base/Dockerfile deleted file mode 100644 index 026d3a6..0000000 --- a/docker/base/Dockerfile +++ /dev/null @@ -1,26 +0,0 @@ -FROM debian:stable - -RUN apt-get update && apt-get install -qqy \ - git \ - build-essential \ - autoconf \ - autopoint \ - libtool \ - libgcrypt20 \ - libidn11-dev \ - zlib1g-dev \ - libunistring-dev \ - libjansson-dev \ - libpq-dev \ - libmicrohttpd-dev - -RUN git clone https://gnunet.org/git/gnunet/ \ - && git clone https://gnunet.org/git/libmicrohttpd/ \ - && git clone git://taler.net/gnurl/ - -WORKDIR gnurl - -RUN ./buildconf - ./configure --enable-ipv6 --with-gnutls --without-libssh2 --without-libmetalink --without-winidn --without-librtmp --without-nghttp2 --without-nss --without-cyassl --without-polarssl --without-ssl --without-winssl --without-darwinssl --disable-sspi --disable-ntlm-wb --disable-ldap --disable-rtsp --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smtp --disable-gopher --disable-file --disable-ftp --disable-smb --prefix=$HOME/local - make - make install diff --git a/docker/base/README b/docker/base/README index 573f4ef..8612a0c 100644 --- a/docker/base/README +++ b/docker/base/README @@ -1,5 +1,11 @@ -This image serves as a basis to build exchange and merchant -backend. It is responsible for installing the following packages: +These images serve as a basis to build exchange and merchant +backend. They are responsible for installing the following packages: +The debian/ directory contains an image for getting packages only +from debian repositories, whereas gnunet/ hosts one to get packages +only from gnunet realm. This division's main aim is to speed up +testing of building gnunet's packages, as we can cache the container +of debian essential packages. Once it works, it can be merged in a +single container. - GNUnet - Libjansson diff --git a/docker/base/debian/Dockerfile b/docker/base/debian/Dockerfile new file mode 100644 index 0000000..6b2b1a1 --- /dev/null +++ b/docker/base/debian/Dockerfile @@ -0,0 +1,15 @@ +FROM debian:stable + +RUN apt-get update && apt-get install -qqy \ + git \ + build-essential \ + autoconf \ + autopoint \ + libtool \ + libgcrypt20 \ + libidn11-dev \ + zlib1g-dev \ + libunistring-dev \ + libjansson-dev \ + libpq-dev \ + libmicrohttpd-dev diff --git a/docker/base/gnunet/Dockerfile b/docker/base/gnunet/Dockerfile new file mode 100644 index 0000000..02a2a46 --- /dev/null +++ b/docker/base/gnunet/Dockerfile @@ -0,0 +1,12 @@ +FROM taler/base/debian + +RUN git clone https://gnunet.org/git/gnunet/ \ + && git clone https://gnunet.org/git/libmicrohttpd/ \ + && git clone git://taler.net/gnurl/ + +WORKDIR gnurl + +RUN ./buildconf + ./configure --enable-ipv6 --with-gnutls --without-libssh2 --without-libmetalink --without-winidn --without-librtmp --without-nghttp2 --without-nss --without-cyassl --without-polarssl --without-ssl --without-winssl --without-darwinssl --disable-sspi --disable-ntlm-wb --disable-ldap --disable-rtsp --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smtp --disable-gopher --disable-file --disable-ftp --disable-smb --prefix=$HOME/local + make + make install -- cgit v1.2.3