commit e77dad1be659f5acf8d1197c32b78587a89fbcae
parent 8af9a8b9a0628619790dd8b8b6825e71e200dfd6
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Fri, 23 Dec 2016 12:37:00 +0100
How to destroy images.
Diffstat:
2 files changed, 42 insertions(+), 2 deletions(-)
diff --git a/docker/README b/docker/README
@@ -1,4 +1,4 @@
-How to use these images.
+=== How to use these images ===
From a "docker ready" environment, you need to (1) build the
image and (2) run it.
@@ -13,3 +13,22 @@ $ docker build -t taler/exchange <THIS_REPO>/docker/exchange/
$ docker run -it taler/exchange
Note that the value passed to option -t is completely arbitrary.
+
+=== How to destroy them ===
+
+1. Stop all containers:
+
+ $ docker stop $(docker ps -a -q)
+
+
+2. If necessary, remove all containers:
+
+ $ docker rm $(docker ps -a -q)
+
+3. Remove images:
+
+ $ docker rmi -f $(docker images -q)
+
+
+NOTE: for tripwire users, those commands are all defined
+ as aliases.
diff --git a/docker/base/Dockerfile b/docker/base/Dockerfile
@@ -14,7 +14,12 @@ RUN apt-get update && apt-get install -qqy \
libjansson-dev \
libpq-dev \
libmicrohttpd-dev \
- libcurl4-gnutls-dev
+ libcurl4-gnutls-dev \
+ python3 \
+ python3-pip
+
+# Needed to run the config generator
+RUN pip3 install click
RUN git clone https://gnunet.org/git/gnunet/ \
&& git clone https://gnunet.org/git/libmicrohttpd/
@@ -32,3 +37,19 @@ RUN ./bootstrap \
&& ./configure --disable-doc \
&& make \
&& make install
+
+# To run the config generator, need:
+
+RUN git clone git://taler.net/deployment
+
+WORKDIR /deployment
+
+RUN export TALER_CONFIG_ENV="test" \
+ && export TALER_CONFIG_CURRENCY="EUR" \
+ && export LC_ALL="C.UTF-8" \
+ && export LANG="C.UTF-8" \
+ ./bin/taler-deployment-config-generate
+
+
+# Python3
+# gnunet-ecc