2019-03-21 18:11:39 +01:00
|
|
|
FROM fedora:29
|
2018-03-07 07:40:48 +01:00
|
|
|
|
2019-12-20 15:01:11 +01:00
|
|
|
ENV BITCOIN_VERSION 0.18.1
|
2018-03-07 07:40:48 +01:00
|
|
|
WORKDIR /tmp
|
|
|
|
|
|
|
|
RUN dnf update -y && \
|
|
|
|
dnf groupinstall -y \
|
|
|
|
'C Development Tools and Libraries' \
|
|
|
|
'Development Tools' && \
|
|
|
|
dnf install -y \
|
|
|
|
clang \
|
|
|
|
gmp-devel \
|
|
|
|
libsq3-devel \
|
|
|
|
python3-devel \
|
2019-08-15 11:47:38 +02:00
|
|
|
python3-mako \
|
2018-03-07 07:40:48 +01:00
|
|
|
python3-pip \
|
|
|
|
python3-setuptools \
|
2018-06-21 16:23:08 +02:00
|
|
|
redhat-lsb \
|
2018-03-07 07:40:48 +01:00
|
|
|
net-tools \
|
|
|
|
valgrind \
|
2018-06-04 06:28:02 +02:00
|
|
|
wget \
|
2018-06-21 16:23:08 +02:00
|
|
|
xz \
|
2018-06-04 06:28:02 +02:00
|
|
|
zlib-devel && \
|
2018-03-07 07:49:43 +01:00
|
|
|
dnf clean all
|
2018-03-07 07:40:48 +01:00
|
|
|
|
|
|
|
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/ && \
|
2019-03-21 18:11:39 +01:00
|
|
|
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 && \
|
2018-03-07 07:40:48 +01:00
|
|
|
rm -rf bitcoin.tar.gz bitcoin-$BITCOIN_VERSION
|
|
|
|
|
2018-05-04 19:40:51 +02:00
|
|
|
RUN python3 -m pip install --upgrade pip && \
|
2020-04-17 23:55:29 +02:00
|
|
|
python3 -m pip install python-bitcoinlib==0.10.2 pytest==3.0.5 setuptools==36.6.0 pytest-test-groups==1.0.3 flake8==3.5.0 pytest-rerunfailures==3.1 ephemeral-port-reserve==1.1.0 mrkd==0.1.6
|