This repository was archived by the owner on Jan 7, 2025. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
97 lines (85 loc) · 2.75 KB
/
Copy pathDockerfile
File metadata and controls
97 lines (85 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
FROM ubuntu:bionic
RUN apt-get update \
&& apt-get install -y software-properties-common \
&& add-apt-repository ppa:bitcoin/bitcoin \
&& apt-get update \
&& apt-get install -y \
autoconf \
automake \
autotools-dev \
bc \
bsdmainutils \
build-essential \
clang \
curl \
git \
jq \
libboost-all-dev \
wget \
libcurl4-openssl-dev \
libdb4.8++-dev \
libdb4.8-dev \
libev-dev \
libevent-dev \
libgmp-dev \
libjansson-dev \
libsecp256k1-dev \
libsqlite3-dev \
libssl-dev \
libtool \
libzmq3-dev \
miniupnpc \
net-tools \
openjdk-8-jdk \
pkg-config \
python3-pip \
python3 \
python \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
ARG BITCOIN_VERSION=0.16.3
ENV BITCOIN_TARBALL bitcoin-$BITCOIN_VERSION-x86_64-linux-gnu.tar.gz
ENV BITCOIN_URL https://bitcoincore.org/bin/bitcoin-core-$BITCOIN_VERSION/$BITCOIN_TARBALL
ENV BITCOIN_ASC_URL https://bitcoincore.org/bin/bitcoin-core-$BITCOIN_VERSION/SHA256SUMS.asc
ENV BITCOIN_PGP_KEY 01EA5486DE18A882D4C2684590C8019E36C2E964
RUN cd /tmp \
&& wget -qO $BITCOIN_TARBALL "$BITCOIN_URL" \
&& gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys "$BITCOIN_PGP_KEY" \
&& wget -qO bitcoin.asc "$BITCOIN_ASC_URL" \
&& gpg --verify bitcoin.asc \
&& grep $BITCOIN_TARBALL bitcoin.asc | tee SHA256SUMS.asc \
&& sha256sum -c SHA256SUMS.asc \
&& BD=bitcoin-$BITCOIN_VERSION/bin \
&& tar -xzvf $BITCOIN_TARBALL \
&& cp bitcoin-$BITCOIN_VERSION/bin/bitcoin* /usr/bin/ \
&& rm -rf $BITCOIN_TARBALL bitcoin-$BITCOIN_VERSION
RUN cd /tmp \
&& wget -qO mvn.tar.gz https://www-us.apache.org/dist/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.tar.gz \
&& tar -xzf mvn.tar.gz \
&& rm mvn.tar.gz \
&& mv apache-maven-3.6.0 /usr/local/maven \
&& ln -s /usr/local/maven/bin/mvn /usr/local/bin
RUN cd /tmp \
&& wget -q https://dl.google.com/go/go1.11.linux-amd64.tar.gz \
&& tar -xf go1.11.linux-amd64.tar.gz \
&& mv go /usr/local \
&& rm go1.11.linux-amd64.tar.gz \
&& ln -s /usr/local/go/bin/go /usr/bin/
ENV GOROOT=/usr/local/go
# lightning-integration
RUN git clone https://github.com/cdecker/lightning-integration.git /root/lightning-integration \
&& ln -sf /usr/bin/python3 /usr/bin/python \
&& ln -sf /usr/bin/pip3 /usr/bin/pip \
&& pip install -r /root/lightning-integration/requirements.txt
# lnd
ENV GOPATH $HOME/.go
ENV PATH $PATH:$GOPATH/bin
# eclair
RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
VOLUME /root/lightning-integration/reports
VOLUME /root/lightning-integration/output
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ENV TEST_DEBUG=0
WORKDIR /root/lightning-integration
CMD ["make", "update", "clients", "test"]