From 2d8f4c94eb22e6f109700f9af0ee9b8dbdbf0c96 Mon Sep 17 00:00:00 2001 From: Lakshya Singh Date: Sun, 12 Nov 2023 11:27:12 +0530 Subject: [PATCH] vls: standalone docker image for separate build Signed-off-by: Lakshya Singh --- README.md | 7 +++++++ docker-compose.yml | 3 +-- vlsd/Dockerfile | 4 ++-- {assets => vlsd}/vlsd2.toml | 0 4 files changed, 10 insertions(+), 4 deletions(-) rename {assets => vlsd}/vlsd2.toml (100%) diff --git a/README.md b/README.md index 135f4cd..5e778de 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,13 @@ sudo systemctl enable --now docker - Docker Images in this repository work with version 2 and are also __backward compatible__ with version 1. - If you are using the distribution installation the `docker compose` command used below has to be changed to `docker-compose` instead. +## VLSD Image + +``` +cd vlsd +docker build -t vlsd . +``` + ## Volume Creation ``` diff --git a/docker-compose.yml b/docker-compose.yml index 0543418..c55e8fc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -66,8 +66,7 @@ services: vls: build: - dockerfile: ./vlsd/Dockerfile - context: . + context: ./vlsd image: vlsd container_name: vlsd-test command: diff --git a/vlsd/Dockerfile b/vlsd/Dockerfile index f361cea..7705576 100644 --- a/vlsd/Dockerfile +++ b/vlsd/Dockerfile @@ -40,10 +40,10 @@ RUN apk update && \ COPY --from=builder /build/validating-lightning-signer/target/release/vlsd2 /usr/local/bin/vlsd2 -COPY vlsd/entrypoint.sh /entrypoint.sh +COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh -COPY assets/vlsd2.toml /vlsd2.toml +COPY vlsd2.toml /vlsd2.toml ENV VLS_DATA=/home/vls/.lightning-signer RUN mkdir "${VLS_DATA}" diff --git a/assets/vlsd2.toml b/vlsd/vlsd2.toml similarity index 100% rename from assets/vlsd2.toml rename to vlsd/vlsd2.toml