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] standalone dockerfile for vlsd
|
||||||
- [x] docker compose for vls
|
- [x] docker compose for vls
|
||||||
- [ ] standalone docker image for `lightning-storage-server`
|
- [x] standalone docker image for `txood`
|
||||||
- [ ] standalone docker image for `txood`
|
- [x] standalone docker image for `lightningd`
|
||||||
- [ ] standalone docker image for `lightningd`
|
- [x] standalone docker image for `bitcoind`
|
||||||
- [ ] standalone docker image for `bitcoind`
|
|
||||||
- [ ] supporting signet
|
- [ ] 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
|
## 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/bitcoin-tx /usr/bin/bitcoin-tx
|
||||||
COPY --from=bitcoin-core ${BITCOIN_PREFIX}/bin/bitcoind /usr/bin/bitcoind
|
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
|
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 chmod +x /healthcheck.sh
|
||||||
|
|
||||||
RUN mkdir "${BITCOIN_DATA}"
|
RUN mkdir "${BITCOIN_DATA}"
|
||||||
|
@ -2,8 +2,7 @@ version: "3.8"
|
|||||||
services:
|
services:
|
||||||
bitcoin-core:
|
bitcoin-core:
|
||||||
build:
|
build:
|
||||||
dockerfile: ./bitcoind/Dockerfile
|
context: ./bitcoind
|
||||||
context: .
|
|
||||||
image: bitcoind
|
image: bitcoind
|
||||||
container_name: bitcoind-test
|
container_name: bitcoind-test
|
||||||
volumes:
|
volumes:
|
||||||
@ -19,8 +18,7 @@ services:
|
|||||||
|
|
||||||
core-lightning:
|
core-lightning:
|
||||||
build:
|
build:
|
||||||
dockerfile: ./lightningd/Dockerfile
|
context: ./lightningd
|
||||||
context: .
|
|
||||||
image: lightningd
|
image: lightningd
|
||||||
container_name: lightningd-test
|
container_name: lightningd-test
|
||||||
command:
|
command:
|
||||||
@ -46,8 +44,7 @@ services:
|
|||||||
|
|
||||||
txoo:
|
txoo:
|
||||||
build:
|
build:
|
||||||
dockerfile: ./txood/Dockerfile
|
context: ./txood
|
||||||
context: .
|
|
||||||
image: txood
|
image: txood
|
||||||
container_name: txood-test
|
container_name: txood-test
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -118,12 +118,12 @@ RUN addgroup -S lightning && adduser -S lightning -G lightning && \
|
|||||||
mkdir -p ${LIGHTNINGD_DATA} && \
|
mkdir -p ${LIGHTNINGD_DATA} && \
|
||||||
chown -R lightning:lightning ${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
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
COPY lightningd/healthcheck.sh /healthcheck.sh
|
COPY healthcheck.sh /healthcheck.sh
|
||||||
RUN chmod +x /healthcheck.sh
|
RUN chmod +x /healthcheck.sh
|
||||||
|
|
||||||
VOLUME ["${LIGHTNINGD_DATA}"]
|
VOLUME ["${LIGHTNINGD_DATA}"]
|
||||||
@ -131,9 +131,9 @@ VOLUME ["${LIGHTNINGD_DATA}"]
|
|||||||
RUN mkdir -p "${BITCOIND_HOME}" && \
|
RUN mkdir -p "${BITCOIND_HOME}" && \
|
||||||
chown -R lightning:lightning "${BITCOIND_HOME}"
|
chown -R lightning:lightning "${BITCOIND_HOME}"
|
||||||
|
|
||||||
COPY assets/bitcoin.conf "${BITCOIND_HOME}"/bitcoin.conf
|
COPY bitcoin.conf "${BITCOIND_HOME}"/bitcoin.conf
|
||||||
COPY assets/testnet-config /testnet-config
|
COPY testnet-config /testnet-config
|
||||||
COPY assets/regtest-config /regtest-config
|
COPY regtest-config /regtest-config
|
||||||
|
|
||||||
USER lightning
|
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 --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
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
VOLUME ["/root/.txoo/"]
|
VOLUME ["/root/.txoo/"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user