dockerfile: all services standalone
- bitcoind - lightnind - txood - vlsd: already - update future work Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
parent
3de4e116c9
commit
a851c5c0d4
12
README.md
12
README.md
@ -173,11 +173,15 @@ docker container exec lightningd-test lightning-cli --testnet summary
|
||||
|
||||
- [x] standalone dockerfile for vlsd
|
||||
- [x] docker compose for vls
|
||||
- [ ] standalone docker image for `lightning-storage-server`
|
||||
- [ ] standalone docker image for `txood`
|
||||
- [ ] standalone docker image for `lightningd`
|
||||
- [ ] standalone docker image for `bitcoind`
|
||||
- [x] standalone docker image for `txood`
|
||||
- [x] standalone docker image for `lightningd`
|
||||
- [x] standalone docker image for `bitcoind`
|
||||
- [ ] supporting signet
|
||||
- [ ] Profile configuration to run `vls`
|
||||
- [ ] Healthcheck for `txoo`
|
||||
- [ ] Healthcheck for `vls`
|
||||
- [ ] Lightning Storage Server Dockerfile and Compose Service
|
||||
- [ ] Postgres Service for Lightning Storage Server
|
||||
|
||||
## References
|
||||
|
||||
|
@ -114,12 +114,12 @@ COPY --from=bitcoin-core ${BITCOIN_PREFIX}/bin/bitcoin-cli /usr/bin/bitcoin-cli
|
||||
COPY --from=bitcoin-core ${BITCOIN_PREFIX}/bin/bitcoin-tx /usr/bin/bitcoin-tx
|
||||
COPY --from=bitcoin-core ${BITCOIN_PREFIX}/bin/bitcoind /usr/bin/bitcoind
|
||||
|
||||
COPY bitcoind/entrypoint.sh /entrypoint.sh
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
COPY assets/bitcoin.conf /bitcoin.conf
|
||||
COPY bitcoin.conf /bitcoin.conf
|
||||
|
||||
COPY bitcoind/healthcheck.sh /healthcheck.sh
|
||||
COPY healthcheck.sh /healthcheck.sh
|
||||
RUN chmod +x /healthcheck.sh
|
||||
|
||||
RUN mkdir "${BITCOIN_DATA}"
|
||||
|
@ -2,8 +2,7 @@ version: "3.8"
|
||||
services:
|
||||
bitcoin-core:
|
||||
build:
|
||||
dockerfile: ./bitcoind/Dockerfile
|
||||
context: .
|
||||
context: ./bitcoind
|
||||
image: bitcoind
|
||||
container_name: bitcoind-test
|
||||
volumes:
|
||||
@ -19,8 +18,7 @@ services:
|
||||
|
||||
core-lightning:
|
||||
build:
|
||||
dockerfile: ./lightningd/Dockerfile
|
||||
context: .
|
||||
context: ./lightningd
|
||||
image: lightningd
|
||||
container_name: lightningd-test
|
||||
command:
|
||||
@ -46,8 +44,7 @@ services:
|
||||
|
||||
txoo:
|
||||
build:
|
||||
dockerfile: ./txood/Dockerfile
|
||||
context: .
|
||||
context: ./txood
|
||||
image: txood
|
||||
container_name: txood-test
|
||||
restart: unless-stopped
|
||||
|
@ -118,12 +118,12 @@ RUN addgroup -S lightning && adduser -S lightning -G lightning && \
|
||||
mkdir -p ${LIGHTNINGD_DATA} && \
|
||||
chown -R lightning:lightning ${LIGHTNINGD_DATA}
|
||||
|
||||
COPY assets/bitcoin.conf "${BITCOIND_HOME}"/bitcoin.conf
|
||||
COPY bitcoin.conf "${BITCOIND_HOME}"/bitcoin.conf
|
||||
|
||||
COPY lightningd/entrypoint.sh /entrypoint.sh
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
COPY lightningd/healthcheck.sh /healthcheck.sh
|
||||
COPY healthcheck.sh /healthcheck.sh
|
||||
RUN chmod +x /healthcheck.sh
|
||||
|
||||
VOLUME ["${LIGHTNINGD_DATA}"]
|
||||
@ -131,9 +131,9 @@ VOLUME ["${LIGHTNINGD_DATA}"]
|
||||
RUN mkdir -p "${BITCOIND_HOME}" && \
|
||||
chown -R lightning:lightning "${BITCOIND_HOME}"
|
||||
|
||||
COPY assets/bitcoin.conf "${BITCOIND_HOME}"/bitcoin.conf
|
||||
COPY assets/testnet-config /testnet-config
|
||||
COPY assets/regtest-config /regtest-config
|
||||
COPY bitcoin.conf "${BITCOIND_HOME}"/bitcoin.conf
|
||||
COPY testnet-config /testnet-config
|
||||
COPY regtest-config /regtest-config
|
||||
|
||||
USER lightning
|
||||
|
||||
|
1
lightningd/bitcoin.conf
Symbolic link
1
lightningd/bitcoin.conf
Symbolic link
@ -0,0 +1 @@
|
||||
../bitcoind/bitcoin.conf
|
@ -32,7 +32,7 @@ RUN apk update && \
|
||||
|
||||
COPY --from=builder /build/txoo/target/release/txood /usr/bin/txood
|
||||
|
||||
COPY txood/entrypoint.sh /entrypoint.sh
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
VOLUME ["/root/.txoo/"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user