Update docker builder
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<LangVersion>8</LangVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="YamlDotNet" Version="5.2.1" />
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using YamlDotNet;
|
||||
using YamlDotNet.Helpers;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
@@ -431,6 +429,14 @@ namespace DockerFileBuildHelper
|
||||
dockerInfo.GitRef = $"v{image.Tag.Substring(0, image.Tag.IndexOf('$'))}";
|
||||
dockerInfo.SupportedByUs = true;
|
||||
break;
|
||||
case "rtl" when image.Tag != "0.10.0":
|
||||
dockerInfo.DockerFilePath = "docker/Dockerfile";
|
||||
dockerInfo.DockerFilePathARM32v7 = "docker/Dockerfile.arm32v7";
|
||||
dockerInfo.DockerFilePathARM64v8 = "docker/Dockerfile.arm64v8";
|
||||
dockerInfo.GitLink = "https://github.com/Ride-The-Lightning/RTL";
|
||||
dockerInfo.GitRef = $"v{image.Tag}";
|
||||
dockerInfo.SupportedByUs = true;
|
||||
break;
|
||||
case "rtl":
|
||||
dockerInfo.DockerFilePath = "Dockerfile";
|
||||
dockerInfo.DockerFilePathARM32v7 = "Dockerfile.arm32v7";
|
||||
|
||||
@@ -110,34 +110,34 @@ cd - && cd ..
|
||||
|
||||
|
||||
# Build c-lightning-rest
|
||||
# https://raw.githubusercontent.com/Ride-The-Lightning/c-lightning-REST/v0.4.3/amd64.Dockerfile
|
||||
# https://raw.githubusercontent.com/Ride-The-Lightning/c-lightning-REST/v0.4.4/amd64.Dockerfile
|
||||
DOCKERFILE="amd64.Dockerfile"
|
||||
# https://raw.githubusercontent.com/Ride-The-Lightning/c-lightning-REST/v0.4.3/arm32v7.Dockerfile
|
||||
# https://raw.githubusercontent.com/Ride-The-Lightning/c-lightning-REST/v0.4.4/arm32v7.Dockerfile
|
||||
[[ "$(uname -m)" == "armv7l" ]] && DOCKERFILE="arm32v7.Dockerfile"
|
||||
# https://raw.githubusercontent.com/Ride-The-Lightning/c-lightning-REST/v0.4.3/arm64v8.Dockerfile
|
||||
# https://raw.githubusercontent.com/Ride-The-Lightning/c-lightning-REST/v0.4.4/arm64v8.Dockerfile
|
||||
[[ "$(uname -m)" == "aarch64" ]] && DOCKERFILE="arm64v8.Dockerfile"
|
||||
echo "Building saubyk/c-lightning-rest:0.4.3"
|
||||
echo "Building saubyk/c-lightning-rest:0.4.4"
|
||||
git clone https://github.com/Ride-The-Lightning/c-lightning-REST c-lightning-rest
|
||||
cd c-lightning-rest
|
||||
git checkout v0.4.3
|
||||
git checkout v0.4.4
|
||||
cd "$(dirname $DOCKERFILE)"
|
||||
docker build -f "$DOCKERFILE" -t "saubyk/c-lightning-rest:0.4.3" .
|
||||
docker build -f "$DOCKERFILE" -t "saubyk/c-lightning-rest:0.4.4" .
|
||||
cd - && cd ..
|
||||
|
||||
|
||||
# Build rtl
|
||||
# https://raw.githubusercontent.com/ShahanaFarooqui/RTL/v0.10.0/Dockerfile
|
||||
DOCKERFILE="Dockerfile"
|
||||
# https://raw.githubusercontent.com/ShahanaFarooqui/RTL/v0.10.0/Dockerfile.arm32v7
|
||||
[[ "$(uname -m)" == "armv7l" ]] && DOCKERFILE="Dockerfile.arm32v7"
|
||||
# https://raw.githubusercontent.com/ShahanaFarooqui/RTL/v0.10.0/Dockerfile.arm64v8
|
||||
[[ "$(uname -m)" == "aarch64" ]] && DOCKERFILE="Dockerfile.arm64v8"
|
||||
echo "Building shahanafarooqui/rtl:0.10.0"
|
||||
git clone https://github.com/ShahanaFarooqui/RTL rtl
|
||||
# https://raw.githubusercontent.com/Ride-The-Lightning/RTL/v0.11.0/docker/Dockerfile
|
||||
DOCKERFILE="docker/Dockerfile"
|
||||
# https://raw.githubusercontent.com/Ride-The-Lightning/RTL/v0.11.0/docker/Dockerfile.arm32v7
|
||||
[[ "$(uname -m)" == "armv7l" ]] && DOCKERFILE="docker/Dockerfile.arm32v7"
|
||||
# https://raw.githubusercontent.com/Ride-The-Lightning/RTL/v0.11.0/docker/Dockerfile.arm64v8
|
||||
[[ "$(uname -m)" == "aarch64" ]] && DOCKERFILE="docker/Dockerfile.arm64v8"
|
||||
echo "Building shahanafarooqui/rtl:0.11.0"
|
||||
git clone https://github.com/Ride-The-Lightning/RTL rtl
|
||||
cd rtl
|
||||
git checkout v0.10.0
|
||||
git checkout v0.11.0
|
||||
cd "$(dirname $DOCKERFILE)"
|
||||
docker build -f "$DOCKERFILE" -t "shahanafarooqui/rtl:0.10.0" .
|
||||
docker build -f "$DOCKERFILE" -t "shahanafarooqui/rtl:0.11.0" .
|
||||
cd - && cd ..
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user