From e2dfb208aafe9e3ff562e4b5747211709ba7e71d Mon Sep 17 00:00:00 2001
From: "nicolas.dorier" <nicolas.dorier@gmail.com>
Date: Wed, 12 Dec 2018 19:23:11 +0900
Subject: [PATCH] Add spark-wallet to the list of docker images

---
 contrib/DockerFileBuildHelper/Program.cs |  5 ++++
 contrib/build-all-images.sh              | 38 ++++++++++++++++--------
 2 files changed, 30 insertions(+), 13 deletions(-)

diff --git a/contrib/DockerFileBuildHelper/Program.cs b/contrib/DockerFileBuildHelper/Program.cs
index 01f6a41..7981a85 100644
--- a/contrib/DockerFileBuildHelper/Program.cs
+++ b/contrib/DockerFileBuildHelper/Program.cs
@@ -286,6 +286,11 @@ namespace DockerFileBuildHelper
                     dockerInfo.GitLink = "https://github.com/containous/traefik-library-image";
                     dockerInfo.GitRef = $"master";
                     break;
+                case "spark-wallet":
+                    dockerInfo.DockerFilePath = $"Dockerfile";
+                    dockerInfo.GitLink = "https://github.com/shesek/spark-wallet";
+                    dockerInfo.GitRef = $"v{image.Tag.Split('-')[0]}";
+                    break;
                 default:
                     return null;
             }
diff --git a/contrib/build-all-images.sh b/contrib/build-all-images.sh
index 71cf7c7..0a9a474 100755
--- a/contrib/build-all-images.sh
+++ b/contrib/build-all-images.sh
@@ -70,6 +70,18 @@ docker build -f "$DOCKERFILE" -t "nicolasdorier/clightning:v0.6.2-3" .
 cd - && cd ..
 
 
+# Build spark-wallet
+# https://raw.githubusercontent.com/shesek/spark-wallet/v0.2.0/Dockerfile
+DOCKERFILE="Dockerfile"
+echo "Building shesek/spark-wallet:0.2.0-WIP"
+git clone https://github.com/shesek/spark-wallet spark-wallet
+cd spark-wallet
+git checkout v0.2.0
+cd "$(dirname $DOCKERFILE)"
+docker build -f "$DOCKERFILE" -t "shesek/spark-wallet:0.2.0-WIP" .
+cd - && cd ..
+
+
 # Build lnd
 # https://raw.githubusercontent.com/btcpayserver/lnd/basedon-v0.5.1-beta/linuxamd64.Dockerfile
 DOCKERFILE="linuxamd64.Dockerfile"
@@ -113,16 +125,16 @@ cd - && cd ..
 
 
 # Build btcpayserver
-# https://raw.githubusercontent.com/btcpayserver/btcpayserver/v1.0.3.26/Dockerfile.linuxamd64
+# https://raw.githubusercontent.com/btcpayserver/btcpayserver/v1.0.3.30/Dockerfile.linuxamd64
 DOCKERFILE="Dockerfile.linuxamd64"
-# https://raw.githubusercontent.com/btcpayserver/btcpayserver/v1.0.3.26/Dockerfile.linuxarm32v7
+# https://raw.githubusercontent.com/btcpayserver/btcpayserver/v1.0.3.30/Dockerfile.linuxarm32v7
 [[ "$(uname -m)" == "armv7l" ]] && DOCKERFILE="Dockerfile.linuxarm32v7"
-echo "Building btcpayserver/btcpayserver:1.0.3.26"
+echo "Building btcpayserver/btcpayserver:1.0.3.30"
 git clone https://github.com/btcpayserver/btcpayserver btcpayserver
 cd btcpayserver
-git checkout v1.0.3.26
+git checkout v1.0.3.30
 cd "$(dirname $DOCKERFILE)"
-docker build -f "$DOCKERFILE" -t "btcpayserver/btcpayserver:1.0.3.26" .
+docker build -f "$DOCKERFILE" -t "btcpayserver/btcpayserver:1.0.3.30" .
 cd - && cd ..
 
 
@@ -283,26 +295,26 @@ cd - && cd ..
 
 
 # Build btcqbo
-# https://raw.githubusercontent.com/JeffVandrewJr/btcqbo/v0.1.8/Dockerfile
+# https://raw.githubusercontent.com/JeffVandrewJr/btcqbo/v0.1.20/Dockerfile
 DOCKERFILE="Dockerfile"
-echo "Building jvandrew/btcqbo:0.1.8"
+echo "Building jvandrew/btcqbo:0.1.20"
 git clone https://github.com/JeffVandrewJr/btcqbo btcqbo
 cd btcqbo
-git checkout v0.1.8
+git checkout v0.1.20
 cd "$(dirname $DOCKERFILE)"
-docker build -f "$DOCKERFILE" -t "jvandrew/btcqbo:0.1.8" .
+docker build -f "$DOCKERFILE" -t "jvandrew/btcqbo:0.1.20" .
 cd - && cd ..
 
 
 # Build btcqbo
-# https://raw.githubusercontent.com/JeffVandrewJr/btcqbo/v0.1.8/Dockerfile
+# https://raw.githubusercontent.com/JeffVandrewJr/btcqbo/v0.1.20/Dockerfile
 DOCKERFILE="Dockerfile"
-echo "Building jvandrew/btcqbo:0.1.8"
+echo "Building jvandrew/btcqbo:0.1.20"
 git clone https://github.com/JeffVandrewJr/btcqbo btcqbo
 cd btcqbo
-git checkout v0.1.8
+git checkout v0.1.20
 cd "$(dirname $DOCKERFILE)"
-docker build -f "$DOCKERFILE" -t "jvandrew/btcqbo:0.1.8" .
+docker build -f "$DOCKERFILE" -t "jvandrew/btcqbo:0.1.20" .
 cd - && cd ..