Skip to content

Commit 786a450

Browse files
committedJul 19, 2024
fix: miner's python script issue and added python3.9 Docker
1 parent a94c65b commit 786a450

File tree

3 files changed

+67
-62
lines changed

3 files changed

+67
-62
lines changed
 

‎bitcoind_signet_miner_plugnplay/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ RUN DEBIAN_FRONTEND=noninteractive \
99
python3 python3-pip python3-setuptools && \
1010
pip install argparse requests cryptography pipreqs
1111

12+
RUN DEBIAN_FRONTEND=noninteractive \
13+
apt-get -y install python3.9
14+
1215
# Install bitcoind
1316
ENV BITCOIND_VER="24.0.1"
1417
COPY bitcoind-download.sh /usr/local/bin
@@ -31,7 +34,9 @@ COPY bitcoind /data
3134
COPY download-minig-framework.sh /usr/local/bin
3235
RUN chmod +x /usr/local/bin/download-minig-framework.sh
3336
RUN download-minig-framework.sh -s "test/functional/test_framework" -d "/data/test/functional/test_framework"
37+
RUN download-minig-framework.sh -s "test/functional/test_framework/crypto" -d "/data/test/functional/test_framework/crypto"
3438
RUN download-minig-framework.sh -s "contrib/signet" -d "/data/contrib/signet"
39+
RUN sed -i 's/env python3/env python3.9/' /data/contrib/signet/miner
3540
RUN pipreqs /data/test/functional/test_framework
3641
RUN pip install -r /data/test/functional/test_framework/requirements.txt
3742

‎docker-compose_miner_signet.yml

+31-31
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ services:
4343
expose:
4444
- "60602"
4545

46-
c-lightning:
47-
container_name: c-lightning
48-
build:
49-
context: c-lightning
50-
image: core_lightning
51-
volumes:
52-
- shared_vol_ln:/lightningd
53-
network_mode: "host"
54-
expose:
55-
- "39735"
56-
- "3092"
46+
# c-lightning:
47+
# container_name: c-lightning
48+
# build:
49+
# context: c-lightning
50+
# image: core_lightning
51+
# volumes:
52+
# - shared_vol_ln:/lightningd
53+
# network_mode: "host"
54+
# expose:
55+
# - "39735"
56+
# - "3092"
5757

5858
faucet:
5959
container_name: faucet
@@ -64,27 +64,27 @@ services:
6464
expose:
6565
- "5000"
6666

67-
lnbits:
68-
container_name: lnbits
69-
build:
70-
context: lnbits
71-
image: lnbits_img
72-
volumes:
73-
- shared_vol_ln:/lightningd
74-
network_mode: "host"
75-
expose:
76-
- "7000"
67+
# lnbits:
68+
# container_name: lnbits
69+
# build:
70+
# context: lnbits
71+
# image: lnbits_img
72+
# volumes:
73+
# - shared_vol_ln:/lightningd
74+
# network_mode: "host"
75+
# expose:
76+
# - "7000"
7777

78-
rtl:
79-
container_name: rtl
80-
build:
81-
context: rtl
82-
image: rtl_img
83-
volumes:
84-
- shared_vol_ln:/lightningd
85-
network_mode: "host"
86-
expose:
87-
- "3000"
78+
# rtl:
79+
# container_name: rtl
80+
# build:
81+
# context: rtl
82+
# image: rtl_img
83+
# volumes:
84+
# - shared_vol_ln:/lightningd
85+
# network_mode: "host"
86+
# expose:
87+
# - "3000"
8888

8989
volumes:
9090
shared_vol_btc:

‎docker-compose_node_signet.yml

+31-31
Original file line numberDiff line numberDiff line change
@@ -43,39 +43,39 @@ services:
4343
expose:
4444
- "60602"
4545

46-
c-lightning:
47-
container_name: c-lightning
48-
build:
49-
context: c-lightning
50-
image: core_lightning
51-
volumes:
52-
- shared_vol_ln:/lightningd
53-
network_mode: "host"
54-
expose:
55-
- "39735"
56-
- "3092"
46+
# c-lightning:
47+
# container_name: c-lightning
48+
# build:
49+
# context: c-lightning
50+
# image: core_lightning
51+
# volumes:
52+
# - shared_vol_ln:/lightningd
53+
# network_mode: "host"
54+
# expose:
55+
# - "39735"
56+
# - "3092"
5757

58-
lnbits:
59-
container_name: lnbits
60-
build:
61-
context: lnbits
62-
image: lnbits_img
63-
volumes:
64-
- shared_vol_ln:/lightningd
65-
network_mode: "host"
66-
expose:
67-
- "7000"
58+
# lnbits:
59+
# container_name: lnbits
60+
# build:
61+
# context: lnbits
62+
# image: lnbits_img
63+
# volumes:
64+
# - shared_vol_ln:/lightningd
65+
# network_mode: "host"
66+
# expose:
67+
# - "7000"
6868

69-
rtl:
70-
container_name: rtl
71-
build:
72-
context: rtl
73-
image: rtl_img
74-
volumes:
75-
- shared_vol_ln:/lightningd
76-
network_mode: "host"
77-
expose:
78-
- "3000"
69+
# rtl:
70+
# container_name: rtl
71+
# build:
72+
# context: rtl
73+
# image: rtl_img
74+
# volumes:
75+
# - shared_vol_ln:/lightningd
76+
# network_mode: "host"
77+
# expose:
78+
# - "3000"
7979

8080
volumes:
8181
shared_vol_btc:

0 commit comments

Comments
 (0)
Please sign in to comment.