2
0
mirror of https://github.com/lnbook/lnbook synced 2024-11-18 21:28:03 +00:00

Separate dockerfiles and docker-compose

This commit is contained in:
Andreas M. Antonopoulos 2020-03-02 07:43:25 -06:00
parent ed023ffa68
commit e5e36d9501
6 changed files with 139 additions and 0 deletions

View File

@ -0,0 +1,36 @@
FROM ubuntu:18.04
# Install development tools prerequisites
RUN apt-get update && apt-get install -y \
build-essential \
libtool \
autotools-dev \
automake \
pkg-config \
python3 \
wget \
git \
curl \
unzip
# Install additional Bitcoin Core (bitcoind) requirements
RUN apt-get install -y \
libssl-dev \
libevent-dev \
bsdmainutils \
libboost-system-dev \
libboost-filesystem-dev \
libboost-chrono-dev \
libboost-test-dev \
libboost-thread-dev \
libminiupnpc-dev \
libzmq3-dev
# Install software-properties-common to add apt repositories
RUN apt-get install -y \
software-properties-common
# Add Bitcoin Core PPA repository
RUN add-apt-repository ppa:bitcoin/bitcoin
RUN apt-get update && apt-get install -y \
bitcoind

View File

@ -0,0 +1,25 @@
FROM ubuntu:18.04
# Install development tools prerequisites
RUN apt-get update && apt-get install -y \
build-essential \
libtool \
autotools-dev \
automake \
pkg-config \
python3 \
wget \
git \
curl \
unzip
# Install software-properties-common to add apt repositories
RUN apt-get install -y \
software-properties-common
# c-lightning
RUN add-apt-repository -u ppa:lightningnetwork/ppa
RUN apt-get install -y \
lightningd

View File

@ -1,3 +1,4 @@
# syntax = docker/dockerfile:1.0-experimental
FROM ubuntu:18.04 FROM ubuntu:18.04
# Install development tools prerequisites # Install development tools prerequisites

View File

@ -0,0 +1,26 @@
version: "3.3"
services:
bitcoind-base:
container_name: bitcoind-base
build:
context: ../bitcoind-base/.
dockerfile: ./Dockerfile
image: lnbook/bitcoind_base:latest
c-lightning-base:
container_name: c-lightning-base
build:
context: ../c-lightning-base
dockerfile: ./Dockerfile
image: lnbook/c-lightning_base:latest
lnd-base:
container_name: lnd-base
build:
context: ../lnd-base
dockerfile: ./Dockerfile
image: lnbook/lnd_base:latest
eclair-base:
container_name: eclair-base
build:
context: ../eclair-base
dockerfile: ./Dockerfile
image: lnbook/eclair_base:latest

View File

@ -0,0 +1,23 @@
FROM ubuntu:18.04
# Install development tools prerequisites
RUN apt-get update && apt-get install -y \
build-essential \
libtool \
autotools-dev \
automake \
pkg-config \
python3 \
wget \
git \
curl \
unzip
# OpenJDK11 for eclair
RUN apt install -y \
openjdk-11-jdk
# eclair-node
RUN mkdir -p /usr/src/eclair
WORKDIR /usr/src/eclair
RUN curl -SLO https://github.com/ACINQ/eclair/releases/download/v0.3.3/eclair-node-0.3.3-12ac145.jar

View File

@ -0,0 +1,28 @@
FROM ubuntu:18.04
# Install development tools prerequisites
RUN apt-get update && apt-get install -y \
build-essential \
libtool \
autotools-dev \
automake \
pkg-config \
python3 \
wget \
git \
curl \
unzip
# Go 1.13 for LND
RUN curl -SL https://dl.google.com/go/go1.13.linux-amd64.tar.gz \
| tar -xzC /usr/local
ENV PATH $PATH:/usr/local/go/bin
ENV GOPATH /gocode
RUN mkdir -p $GOPATH
ENV PATH $PATH:$GOPATH/bin
# LND
RUN go get -d github.com/lightningnetwork/lnd
WORKDIR $GOPATH/src/github.com/lightningnetwork/lnd
RUN make && make install