1
0

add nostr relay (#584)

This commit is contained in:
Andrew Camilleri
2022-01-18 15:37:13 +01:00
committed by GitHub
parent c629f3b779
commit 107dd36242
6 changed files with 63 additions and 5 deletions

View File

@@ -2,8 +2,9 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>8</LangVersion>
<StartupObject>DockerFileBuildHelper.Program</StartupObject>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="YamlDotNet" Version="5.2.1" />

View File

@@ -676,6 +676,13 @@ namespace DockerFileBuildHelper
dockerInfo.GitLink = "https://github.com/Podcastindex-org/helipad";
dockerInfo.GitRef = $"{image.Tag}";
break;
case "kukks/nnostr-relay":
dockerInfo.DockerFilePath = $"Relay/Dockerfile";
dockerInfo.DockerFilePathARM32v7 = $"Relay/Dockerfile";
dockerInfo.DockerFilePathARM64v8 = $"Relay/Dockerfile";
dockerInfo.GitLink = "https://github.com/kukks/nnostr";
dockerInfo.GitRef = $"Relay/{image.Tag}";
break;
default:
if (firstTry)
{

View File

@@ -803,6 +803,22 @@ docker build -f "$DOCKERFILE" -t "nicolasdorier/ndlc-cli:1.0.1" .
cd - && cd ..
# Build nnostr-relay
# https://raw.githubusercontent.com/kukks/nnostr/Relay/v0.0.5/Relay/Dockerfile
DOCKERFILE="Relay/Dockerfile"
# https://raw.githubusercontent.com/kukks/nnostr/Relay/v0.0.5/Relay/Dockerfile
[[ "$(uname -m)" == "armv7l" ]] && DOCKERFILE="Relay/Dockerfile"
# https://raw.githubusercontent.com/kukks/nnostr/Relay/v0.0.5/Relay/Dockerfile
[[ "$(uname -m)" == "aarch64" ]] && DOCKERFILE="Relay/Dockerfile"
echo "Building kukks/nnostr-relay:v0.0.5"
git clone https://github.com/kukks/nnostr nnostr-relay
cd nnostr-relay
git checkout Relay/v0.0.5
cd "$(dirname $DOCKERFILE)"
docker build -f "$DOCKERFILE" -t "kukks/nnostr-relay:v0.0.5" .
cd - && cd ..
# Build pihole
# https://raw.githubusercontent.com/pi-hole/docker-pi-hole/v5.7/Dockerfile
DOCKERFILE="Dockerfile"