mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-19 05:44:12 +01:00
contrib: Add Dockerfile.builder.fedora
The Fedora distro version of Dockerfile.builder
This commit is contained in:
parent
b2ce619bcd
commit
887b5048f1
37
contrib/Dockerfile.builder.fedora
Normal file
37
contrib/Dockerfile.builder.fedora
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
FROM fedora:27
|
||||||
|
|
||||||
|
ENV BITCOIN_VERSION 0.16.0
|
||||||
|
WORKDIR /tmp
|
||||||
|
|
||||||
|
RUN dnf update -y && \
|
||||||
|
dnf groupinstall -y \
|
||||||
|
'C Development Tools and Libraries' \
|
||||||
|
'Development Tools' && \
|
||||||
|
dnf install -y \
|
||||||
|
clang \
|
||||||
|
gmp-devel \
|
||||||
|
libsq3-devel \
|
||||||
|
python2-devel \
|
||||||
|
python3-devel \
|
||||||
|
python3-pip \
|
||||||
|
python3-setuptools \
|
||||||
|
net-tools \
|
||||||
|
libsodium-devel \
|
||||||
|
net-tools \
|
||||||
|
valgrind \
|
||||||
|
wget && \
|
||||||
|
dnf clean all && \
|
||||||
|
git clone https://github.com/ElementsProject/lightning.git && \
|
||||||
|
cd lightning && \
|
||||||
|
make && \
|
||||||
|
make install && \
|
||||||
|
cd .. && \
|
||||||
|
rm -rf lightning
|
||||||
|
|
||||||
|
RUN wget https://bitcoin.org/bin/bitcoin-core-$BITCOIN_VERSION/bitcoin-$BITCOIN_VERSION-x86_64-linux-gnu.tar.gz -O bitcoin.tar.gz && \
|
||||||
|
tar -xvzf bitcoin.tar.gz && \
|
||||||
|
mv bitcoin-$BITCOIN_VERSION/bin/bitcoin* /usr/local/bin/ && \
|
||||||
|
rm -rf bitcoin.tar.gz bitcoin-$BITCOIN_VERSION
|
||||||
|
|
||||||
|
RUN pip3 install --upgrade pip && \
|
||||||
|
pip3 install python-bitcoinlib==0.7.0 pytest==3.0.5 setuptools==36.6.0 pytest-test-groups==1.0.3 flake8==3.5.0 pytest-rerunfailures==3.1
|
Loading…
Reference in New Issue
Block a user