docker 20 / compose 1.29 compatibility
This commit is contained in:
parent
6290fbb8af
commit
b236124ef8
@ -1,5 +1,5 @@
|
|||||||
# Build stage for Bitcoin Core
|
# Build stage for Bitcoin Core
|
||||||
FROM --platform=${TARGETPLATFORM:-${BUILDPLATFORM}} alpine:3.18 as bitcoin-core
|
FROM --platform=${TARGETPLATFORM:-${BUILDPLATFORM:-linux/amd64}} alpine:3.18 as bitcoin-core
|
||||||
|
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.a
|
|||||||
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.so.0.0.0
|
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.so.0.0.0
|
||||||
|
|
||||||
# Runtime binaries and setup stage
|
# Runtime binaries and setup stage
|
||||||
FROM --platform=${TARGETPLATFORM:-${BUILDPLATFORM}} alpine:3.18 as runner
|
FROM --platform=${TARGETPLATFORM:-${BUILDPLATFORM:-linux/amd64}} alpine:3.18 as runner
|
||||||
|
|
||||||
ARG UID=100
|
ARG UID=100
|
||||||
ARG GID=101
|
ARG GID=101
|
||||||
|
@ -3,6 +3,7 @@ services:
|
|||||||
bitcoin-core:
|
bitcoin-core:
|
||||||
build:
|
build:
|
||||||
dockerfile: ./bitcoind/Dockerfile
|
dockerfile: ./bitcoind/Dockerfile
|
||||||
|
context: .
|
||||||
image: bitcoind
|
image: bitcoind
|
||||||
container_name: bitcoind-test
|
container_name: bitcoind-test
|
||||||
volumes:
|
volumes:
|
||||||
@ -19,6 +20,7 @@ services:
|
|||||||
core-lightning:
|
core-lightning:
|
||||||
build:
|
build:
|
||||||
dockerfile: ./lightningd/Dockerfile
|
dockerfile: ./lightningd/Dockerfile
|
||||||
|
context: .
|
||||||
image: lightningd
|
image: lightningd
|
||||||
container_name: lightningd-test
|
container_name: lightningd-test
|
||||||
command:
|
command:
|
||||||
@ -33,7 +35,6 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
bitcoin-core:
|
bitcoin-core:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
restart: true
|
|
||||||
env_file:
|
env_file:
|
||||||
- ./assets/testnet-env
|
- ./assets/testnet-env
|
||||||
environment:
|
environment:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# build stage for core lightning and clboss
|
# build stage for core lightning and clboss
|
||||||
FROM --platform=${TARGETPLATFORM:-${BUILDPLATFORM}} alpine:3.18 as builder
|
FROM --platform=${TARGETPLATFORM:-${BUILDPLATFORM:-linux/amd64}} alpine:3.18 as bitcoin-core
|
||||||
|
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ RUN git clone --recurse-submodules https://github.com/ZmnSCPxj/clboss.git /clbos
|
|||||||
make install
|
make install
|
||||||
|
|
||||||
# final stage with runtime dependencies and pkgs
|
# final stage with runtime dependencies and pkgs
|
||||||
FROM --platform=${TARGETPLATFORM:-${BUILDPLATFORM}} alpine:3.18 as runner
|
FROM --platform=${TARGETPLATFORM:-${BUILDPLATFORM:-linux/amd64}} alpine:3.18 as runner
|
||||||
|
|
||||||
LABEL maintainer.0="Lakshya Singh (@king-11)" \
|
LABEL maintainer.0="Lakshya Singh (@king-11)" \
|
||||||
maintainer.1="Dev Random (@devrandom01)"
|
maintainer.1="Dev Random (@devrandom01)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user