-
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Electrumx docker build statisfy new electrumx versions #70
base: master
Are you sure you want to change the base?
Electrumx docker build statisfy new electrumx versions #70
Conversation
6f490d9
to
14ba2d4
Compare
I couldn't get 'pip install python-rocksdb' to work on Linux Mint (Debian based) x86_64. Tried Luke's Dockerfile - same failure. Without docker, here's what I have, yours looks similar: sudo apt-get remove -y libdpkg-perl #my machine had a newer version, preventing build-essential to be installed #git clone and cd into repo, then |
$ pip3 install python-rocksdb >log 2>&1 && tail -n100 log Defaulting to user installation because normal site-packages is not writeable × python setup.py bdist_wheel did not run successfully.
|
$ tail -n100 log
note: This error originates from a subprocess, and is likely not a problem with pip. |
14ba2d4
to
9e090e3
Compare
There was some unsatisfiable packages in python3.7-alpine3.11 which cause errors and broken build, I decide to change the container to python:3.9.16-slim-bullseye which use more disk space but fixed the packages problem use user nobody support dash_hash
9e090e3
to
c4cce37
Compare
@ArmanTheParman Thank you for reporting this issue, I made some changes please test it |
Great, I will! Thank you |
I tested it on a mac, x86_64 % docker build -t test_rocks .
|
tested on Pi4, 8Gb #0 building with "default" instance using docker driver #1 [internal] load build definition from Dockerfile #2 [internal] load metadata for docker.io/library/python:3.7-alpine3.11 #3 [internal] load .dockerignore #4 [internal] load build context #5 [1/4] FROM docker.io/library/python:3.7-alpine3.11@sha256:0ddccce8820c89f39cde6c482b3ba8bcad9e6652a060c329b7b963112df0b8e7 #4 [internal] load build context #6 [2/4] COPY ./bin /usr/local/bin #7 [3/4] RUN chmod a+x /usr/local/bin/* && apk add --no-cache git build-base openssl && apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.11/main leveldb-dev && apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing rocksdb-dev && pip install aiohttp pylru plyvel websockets python-rocksdb uvloop && git clone -b 1.16.0 https://github.com/spesmilo/electrumx.git && cd electrumx && python setup.py install && apk del git build-base && rm -rf /tmp/*
|
I think you aren't in correct branch, because your logs contains Please checkout on this commit hash |
This report was for the master branch, but I'll test yours too. |
There is some problem with the alpine and
rocksdb-dev
package, I replaced alpine with the Debian and split it into more layers with theRUN
to speedup builds.Also, I add some lines to README.md about the build.