mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
The fedora image installs a setuptools version that can not be upgraded via pip. A fix is to remove the files manually and reinstall it via pip. Signed-off-by: Peter Neuroth <pet.v.ne@gmail.com>
34 lines
1 KiB
Text
34 lines
1 KiB
Text
FROM fedora:35
|
|
|
|
ENV BITCOIN_VERSION 22.0
|
|
WORKDIR /tmp
|
|
|
|
RUN dnf update -y && \
|
|
dnf groupinstall -y \
|
|
'C Development Tools and Libraries' \
|
|
'Development Tools' && \
|
|
dnf install -y \
|
|
clang \
|
|
libsq3-devel \
|
|
python3-devel \
|
|
python3-mako \
|
|
python3-pip \
|
|
python3-setuptools \
|
|
redhat-lsb \
|
|
net-tools \
|
|
valgrind \
|
|
wget \
|
|
xz \
|
|
zlib-devel && \
|
|
dnf clean all
|
|
|
|
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/ && \
|
|
mv bitcoin-$BITCOIN_VERSION/lib/* /usr/local/lib/ && \
|
|
mv bitcoin-$BITCOIN_VERSION/include/* /usr/local/include/ && \
|
|
mv bitcoin-$BITCOIN_VERSION/share/man/man1/* /usr/share/man/man1 && \
|
|
rm -rf bitcoin.tar.gz bitcoin-$BITCOIN_VERSION
|
|
|
|
RUN python3 -m pip install --force-reinstall -U pip setuptools && \
|
|
python3 -m pip install python-bitcoinlib pytest pytest-test-groups flake8 pytest-rerunfailures ephemeral-port-reserve
|