allow to specify generator image when building

This commit is contained in:
Andrew Camilleri
2018-09-17 10:20:49 +02:00
committed by Andrew Camilleri
parent 5ddd89dd8f
commit 08bc7667fc
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
# This script will run docker-compose-generator in a container to generate the yml files
if (-not ($BTCPAYGEN_DOCKER_IMAGE)) { $BTCPAYGEN_DOCKER_IMAGE = "btcpayserver/docker-compose-generator" }
docker pull btcpayserver/docker-compose-generator
docker pull $BTCPAYGEN_DOCKER_IMAGE:
docker run -v "$(Get-Location)\Generated:/app/Generated" `
-v "$(Get-Location)\docker-compose-generator\docker-fragments:/app/docker-fragments" `
-e "BTCPAYGEN_CRYPTO1=$BTCPAYGEN_CRYPTO1" `

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# This script will run docker-compose-generator in a container to generate the yml files
docker pull btcpayserver/docker-compose-generator
docker pull ${BTCPAYGEN_DOCKER_IMAGE:-"btcpayserver/docker-compose-generator"}
docker run -v "$(pwd)/Generated:/app/Generated" \
-v "$(pwd)/docker-compose-generator/docker-fragments:/app/docker-fragments" \
-e "BTCPAYGEN_CRYPTO1=$BTCPAYGEN_CRYPTO1" \