1
0

add build scripts for custom docker-compose

This commit is contained in:
nicolas.dorier
2018-05-17 01:31:36 +09:00
parent 446b3db93a
commit e2b82697a0
9 changed files with 94 additions and 3 deletions

18
build.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
# This script will run docker-compose-generator in a container to generate the yml files
docker build -t btcpayserver/docker-compose-generator "$(pwd)/docker-compose-generator"
docker run -v "$(pwd)/Generated:/app/Generated" \
-e "BTCPAYGEN_CRYPTO1=$(BTCPAYGEN_CRYPTO1)" \
-e "BTCPAYGEN_CRYPTO2=$(BTCPAYGEN_CRYPTO2)" \
-e "BTCPAYGEN_CRYPTO3=$(BTCPAYGEN_CRYPTO3)" \
-e "BTCPAYGEN_CRYPTO4=$(BTCPAYGEN_CRYPTO4)" \
-e "BTCPAYGEN_CRYPTO5=$(BTCPAYGEN_CRYPTO5)" \
-e "BTCPAYGEN_CRYPTO6=$(BTCPAYGEN_CRYPTO6)" \
-e "BTCPAYGEN_CRYPTO7=$(BTCPAYGEN_CRYPTO7)" \
-e "BTCPAYGEN_CRYPTO8=$(BTCPAYGEN_CRYPTO8)" \
-e "BTCPAYGEN_CRYPTO9=$(BTCPAYGEN_CRYPTO9)" \
-e "BTCPAYGEN_REVERSEPROXY=$(BTCPAYGEN_REVERSEPROXY)" \
-e "BTCPAYGEN_LIGHTNING=$(BTCPAYGEN_LIGHTNING)" \
-e "BTCPAYGEN_SUBNAME=$(BTCPAYGEN_SUBNAME)" \
--rm btcpayserver/docker-compose-generator