From 3241616d6819454bc2fd9ecb8a2737d0a48d8687 Mon Sep 17 00:00:00 2001 From: tecnovert Date: Wed, 15 Feb 2023 11:33:18 +0200 Subject: [PATCH] docker: Add build args for repo. --- docker/production/notes.md | 6 ++++++ docker/production/swapclient/Dockerfile | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/docker/production/notes.md b/docker/production/notes.md index 97aeb42..5187997 100644 --- a/docker/production/notes.md +++ b/docker/production/notes.md @@ -173,3 +173,9 @@ Prepare wallet: docker-compose -f docker-compose-prepare.yml stop docker-compose up + + +# Notes + +Switch Basicswap repo: + docker-compose build swapclient --build-arg BASICSWAP_URL=https://github.com/tecnovert/basicswap/archive/refs/heads/dev.zip --build-arg BASICSWAP_DIR=basicswap-dev diff --git a/docker/production/swapclient/Dockerfile b/docker/production/swapclient/Dockerfile index 3e00b73..4e04ae2 100644 --- a/docker/production/swapclient/Dockerfile +++ b/docker/production/swapclient/Dockerfile @@ -22,9 +22,11 @@ RUN wget -O coincurve-anonswap.zip https://github.com/tecnovert/coincurve/archiv cd coincurve-anonswap && \ python3 setup.py install --force -RUN wget -O basicswap-master.zip https://github.com/tecnovert/basicswap/archive/master.zip; \ - unzip basicswap-master.zip; \ - cd basicswap-master; \ +ARG BASICSWAP_URL=https://github.com/tecnovert/basicswap/archive/master.zip +ARG BASICSWAP_DIR=basicswap-master +RUN wget -O basicswap-repo.zip $BASICSWAP_URL; \ + unzip basicswap-repo.zip; \ + cd $BASICSWAP_DIR; \ protoc -I=basicswap --python_out=basicswap basicswap/messages.proto; \ pip3 install .;