diff --git a/README.md b/README.md index 62f86b5..b185c9a 100644 --- a/README.md +++ b/README.md @@ -332,6 +332,7 @@ We are trying to update our dependencies to run on `arm32v7` and `x64` boards. H | btcpayserver/btctransmuter | 0.0.55 | [✔️](https://raw.githubusercontent.com/btcpayserver/btctransmuter/v0.0.55/Dockerfiles/amd64.Dockerfile) | [✔️](https://raw.githubusercontent.com/btcpayserver/btctransmuter/v0.0.55/Dockerfiles/arm32v7.Dockerfile) | [✔️](https://raw.githubusercontent.com/btcpayserver/btctransmuter/v0.0.55/Dockerfiles/arm64v8.Dockerfile) | [Github](https://github.com/btcpayserver/btctransmuter) - [DockerHub](https://hub.docker.com/r/btcpayserver/btctransmuter) | | btcpayserver/btcpayserver-configurator | 0.0.21 | [✔️](https://raw.githubusercontent.com/btcpayserver/btcpayserver-configurator/v0.0.21/Dockerfiles/amd64.Dockerfile) | [✔️](https://raw.githubusercontent.com/btcpayserver/btcpayserver-configurator/v0.0.21/Dockerfiles/arm32v7.Dockerfile) | [✔️](https://raw.githubusercontent.com/btcpayserver/btcpayserver-configurator/v0.0.21/Dockerfiles/arm64v8.Dockerfile) | [Github](https://github.com/btcpayserver/btcpayserver-configurator) - [DockerHub](https://hub.docker.com/r/btcpayserver/btcpayserver-configurator) | | btcpayserver/eps | 0.2.0 | [✔️](https://raw.githubusercontent.com/btcpayserver/dockerfile-deps/EPS/0.2.0/EPS/0.2.0/linuxamd64.Dockerfile) | [✔️](https://raw.githubusercontent.com/btcpayserver/dockerfile-deps/EPS/0.2.0/EPS/0.2.0/linuxarm32v7.Dockerfile) | [✔️](https://raw.githubusercontent.com/btcpayserver/dockerfile-deps/EPS/0.2.0/EPS/0.2.0/linuxarm64v8.Dockerfile) | [Github](https://github.com/btcpayserver/dockerfile-deps) - [DockerHub](https://hub.docker.com/r/btcpayserver/eps) | +| nicolasdorier/ndlc-cli | 1.0.1 | [✔️](https://raw.githubusercontent.com/dgarage/ndlc/releases/1.0.1/amd64.Dockerfile) | [✔️](https://raw.githubusercontent.com/dgarage/ndlc/releases/1.0.1/arm32v7.Dockerfile) | [✔️](https://raw.githubusercontent.com/dgarage/ndlc/releases/1.0.1/arm64v8.Dockerfile) | [Github](https://github.com/dgarage/ndlc) - [DockerHub](https://hub.docker.com/r/nicolasdorier/ndlc-cli) | | pihole/pihole | v5.0 | [✔️](https://raw.githubusercontent.com/pi-hole/docker-pi-hole/v5.0/Dockerfile_amd64) | [✔️](https://raw.githubusercontent.com/pi-hole/docker-pi-hole/v5.0/Dockerfile_armhf) | [✔️](https://raw.githubusercontent.com/pi-hole/docker-pi-hole/v5.0/Dockerfile_arm64) | [Github](https://github.com/pi-hole/docker-pi-hole) - [DockerHub](https://hub.docker.com/r/pihole/pihole) | | btcpayserver/tor | 0.4.2.7 | [✔️](https://raw.githubusercontent.com/btcpayserver/dockerfile-deps/Tor/0.4.2.7/Tor/0.4.2.7/linuxamd64.Dockerfile) | [✔️](https://raw.githubusercontent.com/btcpayserver/dockerfile-deps/Tor/0.4.2.7/Tor/0.4.2.7/linuxarm32v7.Dockerfile) | [✔️](https://raw.githubusercontent.com/btcpayserver/dockerfile-deps/Tor/0.4.2.7/Tor/0.4.2.7/linuxarm64v8.Dockerfile) | [Github](https://github.com/btcpayserver/dockerfile-deps) - [DockerHub](https://hub.docker.com/r/btcpayserver/tor) | | postgres | 9.6.5 | [✔️](https://raw.githubusercontent.com/docker-library/postgres/b7cb3c6eacea93be2259381033be3cc435649369/9.6/Dockerfile) | [✔️](https://raw.githubusercontent.com/docker-library/postgres/b7cb3c6eacea93be2259381033be3cc435649369/9.6/Dockerfile) | [✔️](https://raw.githubusercontent.com/docker-library/postgres/b7cb3c6eacea93be2259381033be3cc435649369/9.6/Dockerfile) | [Github](https://github.com/docker-library/postgres) - [DockerHub](https://hub.docker.com/_/postgres) | diff --git a/contrib/DockerFileBuildHelper/Program.cs b/contrib/DockerFileBuildHelper/Program.cs index 3ea0b0a..e1d2568 100644 --- a/contrib/DockerFileBuildHelper/Program.cs +++ b/contrib/DockerFileBuildHelper/Program.cs @@ -430,6 +430,14 @@ namespace DockerFileBuildHelper dockerInfo.GitRef = $"v{image.Tag}"; dockerInfo.SupportedByUs = true; break; + case "ndlc-cli": + dockerInfo.DockerFilePath = "amd64.Dockerfile"; + dockerInfo.DockerFilePathARM32v7 = "arm32v7.Dockerfile"; + dockerInfo.DockerFilePathARM64v8 = "arm64v8.Dockerfile"; + dockerInfo.GitLink = "https://github.com/dgarage/ndlc"; + dockerInfo.GitRef = $"releases/{image.Tag}"; + dockerInfo.SupportedByUs = true; + break; case "btctransmuter": dockerInfo.DockerFilePath = "Dockerfiles/amd64.Dockerfile"; dockerInfo.DockerFilePathARM32v7 = "Dockerfiles/arm32v7.Dockerfile"; diff --git a/contrib/build-all-images.sh b/contrib/build-all-images.sh index e67816e..1e9a427 100755 --- a/contrib/build-all-images.sh +++ b/contrib/build-all-images.sh @@ -639,6 +639,22 @@ docker build -f "$DOCKERFILE" -t "jvandrew/isso:atron.22" . cd - && cd .. +# Build ndlc-cli +# https://raw.githubusercontent.com/dgarage/ndlc/releases/1.0.1/amd64.Dockerfile +DOCKERFILE="amd64.Dockerfile" +# https://raw.githubusercontent.com/dgarage/ndlc/releases/1.0.1/arm32v7.Dockerfile +[[ "$(uname -m)" == "armv7l" ]] && DOCKERFILE="arm32v7.Dockerfile" +# https://raw.githubusercontent.com/dgarage/ndlc/releases/1.0.1/arm64v8.Dockerfile +[[ "$(uname -m)" == "aarch64" ]] && DOCKERFILE="arm64v8.Dockerfile" +echo "Building nicolasdorier/ndlc-cli:1.0.1" +git clone https://github.com/dgarage/ndlc ndlc-cli +cd ndlc-cli +git checkout releases/1.0.1 +cd "$(dirname $DOCKERFILE)" +docker build -f "$DOCKERFILE" -t "nicolasdorier/ndlc-cli:1.0.1" . +cd - && cd .. + + # Build pihole # https://raw.githubusercontent.com/pi-hole/docker-pi-hole/v5.0/Dockerfile_amd64 DOCKERFILE="Dockerfile_amd64" diff --git a/docker-compose-generator/docker-fragments/opt-add-ndlc.yml b/docker-compose-generator/docker-fragments/opt-add-ndlc.yml new file mode 100644 index 0000000..16ad4c1 --- /dev/null +++ b/docker-compose-generator/docker-fragments/opt-add-ndlc.yml @@ -0,0 +1,10 @@ +version: '3' +services: + ndlc: + container_name: ndlci_cli + image: nicolasdorier/ndlc-cli:1.0.1 + restart: 'no' + volumes: + - "ndlc_cli_datadir:/root/.ndlc" +volumes: + ndlc_cli_datadir: \ No newline at end of file diff --git a/helpers.sh b/helpers.sh index cb352f8..a31de9d 100755 --- a/helpers.sh +++ b/helpers.sh @@ -18,6 +18,7 @@ install_tooling() { "btcpayserver_trezarcoind" "trezarcoin-cli.sh" "Command line for your Trezar instance" \ "btcpayserver_viacoind" "viacoin-cli.sh" "Command line for your Viacoin instance" \ "btcpayserver_elementsd" "elements-cli.sh" "Command line for your Elements/Liquid instance" \ + "ndlci_cli" "ndlc-cli.sh" "Command line for NDLC-CLI" \ "pihole" "pihole.sh" "Command line for running pihole commands" \ "*" "btcpay-clean.sh" "Command line for deleting old unused docker images" \ "*" "btcpay-down.sh" "Command line for stopping all services related to BTCPay Server" \ diff --git a/ndlc-cli.sh b/ndlc-cli.sh new file mode 100755 index 0000000..7786d30 --- /dev/null +++ b/ndlc-cli.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +pushd . > /dev/null +cd "$(dirname "$BTCPAY_ENV_FILE")" +docker-compose -f $BTCPAY_DOCKER_COMPOSE run --rm ndlc "$@" +popd > /dev/null