bump
This commit is contained in:
@@ -4,7 +4,7 @@ services:
|
||||
|
||||
btcpayserver:
|
||||
restart: unless-stopped
|
||||
image: ${BTCPAY_IMAGE:-btcpayserver/btcpayserver:1.0.5.3}
|
||||
image: ${BTCPAY_IMAGE:-btcpayserver/btcpayserver:1.0.5.4$<BTCPAY_BUILD_CONFIGURATION>?}
|
||||
expose:
|
||||
- "49392"
|
||||
environment:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.101 AS builder
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.202 AS builder
|
||||
WORKDIR /source
|
||||
COPY src/docker-compose-generator.csproj docker-compose-generator.csproj
|
||||
# Cache some dependencies
|
||||
@@ -8,7 +8,7 @@ COPY src/. .
|
||||
RUN dotnet publish --output /app/ --configuration Release
|
||||
|
||||
#
|
||||
FROM mcr.microsoft.com/dotnet/core/runtime:3.1.1-buster-slim
|
||||
FROM mcr.microsoft.com/dotnet/core/runtime:3.1.4-buster-slim
|
||||
LABEL org.btcpayserver.image=docker-compose-generator
|
||||
WORKDIR /datadir
|
||||
WORKDIR /app
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# This is a manifest image, will pull the image with the same arch as the builder machine
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.101 AS builder
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.202 AS builder
|
||||
WORKDIR /source
|
||||
COPY src/docker-compose-generator.csproj docker-compose-generator.csproj
|
||||
# Cache some dependencies
|
||||
@@ -8,7 +8,7 @@ COPY src/. .
|
||||
RUN dotnet publish --output /app/ --configuration Release
|
||||
|
||||
# Force the builder machine to take make an arm runtime image. This is fine as long as the builder does not run any program
|
||||
FROM mcr.microsoft.com/dotnet/core/runtime:3.1.1-buster-slim-arm32v7
|
||||
FROM mcr.microsoft.com/dotnet/core/runtime:3.1.4-buster-slim-arm32v7
|
||||
LABEL org.btcpayserver.image=docker-compose-generator
|
||||
WORKDIR /datadir
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# This is a manifest image, will pull the image with the same arch as the builder machine
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.101 AS builder
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.202 AS builder
|
||||
WORKDIR /source
|
||||
COPY src/docker-compose-generator.csproj docker-compose-generator.csproj
|
||||
# Cache some dependencies
|
||||
@@ -8,7 +8,7 @@ COPY src/. .
|
||||
RUN dotnet publish --output /app/ --configuration Release
|
||||
|
||||
# Force the builder machine to take make an arm runtime image. This is fine as long as the builder does not run any program
|
||||
FROM mcr.microsoft.com/dotnet/core/runtime:3.1.1-buster-slim-arm64v8
|
||||
FROM mcr.microsoft.com/dotnet/core/runtime:3.1.4-buster-slim-arm64v8
|
||||
LABEL org.btcpayserver.image=docker-compose-generator
|
||||
WORKDIR /datadir
|
||||
|
||||
|
||||
@@ -59,12 +59,16 @@ namespace DockerGenerator
|
||||
}
|
||||
fragments.Add("btcpayserver");
|
||||
|
||||
bool hasAltcoins = false;
|
||||
foreach (var crypto in cryptoDefinitions)
|
||||
{
|
||||
if (!composition.SelectedCryptos.Contains(crypto.Crypto))
|
||||
continue;
|
||||
|
||||
fragments.Add(crypto.CryptoFragment);
|
||||
if (crypto.CryptoFragment != "bitcoin")
|
||||
hasAltcoins = true;
|
||||
|
||||
if (composition.SelectedLN == "clightning" && crypto.CLightningFragment != null)
|
||||
{
|
||||
fragments.Add(crypto.CLightningFragment);
|
||||
@@ -79,6 +83,11 @@ namespace DockerGenerator
|
||||
}
|
||||
}
|
||||
|
||||
if (hasAltcoins)
|
||||
Environment.SetEnvironmentVariable("BTCPAY_BUILD_CONFIGURATION", "-altcoins");
|
||||
else
|
||||
Environment.SetEnvironmentVariable("BTCPAY_BUILD_CONFIGURATION", "");
|
||||
|
||||
foreach (var fragment in composition.AdditionalFragments)
|
||||
{
|
||||
fragments.Add(fragment);
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
"environmentVariables": {
|
||||
"BTCPAY_HOST_SSHKEYFILE": "test.rsa",
|
||||
"BTCPAYGEN_LIGHTNING": "clightning",
|
||||
"BTCPAYGEN_ADDITIONAL_FRAGMENTS": "opt-save-storage",
|
||||
"BTCPAYGEN_CRYPTO4": "ftc",
|
||||
"BTCPAYGEN_CRYPTO3": "btg",
|
||||
"BTCPAYGEN_CRYPTO2": "ltc",
|
||||
"BTCPAYGEN_CRYPTO1": "btc",
|
||||
"BTCPAYGEN_REVERSEPROXY": "nginx",
|
||||
"BTCPAYGEN_ADDITIONAL_FRAGMENTS": "opt-save-storage;opt-txindex"
|
||||
"BTCPAYGEN_REVERSEPROXY": "nginx"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user