Skip to content

Commit

Permalink
Add LIGHTNINGD_NETWORK env variable to Dockerfile for ARM
Browse files Browse the repository at this point in the history
Changelog-Added: Docker build for ARM now includes `LIGHTNINGD_NETWORK` ENV
variable which defaults to "bitcoin". An user can override this (e.g. by
`-e` option in `docker run`) to run docker container in regtest or
testnet or any valid argument to `--network`.
  • Loading branch information
azuchi authored and cdecker committed Feb 7, 2022
1 parent 1087f9a commit b0d0005
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/linuxarm32v7.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends socat inotify-t
ENV LIGHTNINGD_DATA=/root/.lightning
ENV LIGHTNINGD_RPC_PORT=9835
ENV LIGHTNINGD_PORT=9735
ENV LIGHTNINGD_NETWORK=bitcoin

RUN mkdir $LIGHTNINGD_DATA && \
touch $LIGHTNINGD_DATA/config
Expand Down
1 change: 1 addition & 0 deletions contrib/linuxarm64v8.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends socat inotify-t
ENV LIGHTNINGD_DATA=/root/.lightning
ENV LIGHTNINGD_RPC_PORT=9835
ENV LIGHTNINGD_PORT=9735
ENV LIGHTNINGD_NETWORK=bitcoin

RUN mkdir $LIGHTNINGD_DATA && \
touch $LIGHTNINGD_DATA/config
Expand Down

0 comments on commit b0d0005

Please sign in to comment.