Upgrade to ElectrumX 1.8.7 (#10)

* Update to version 1.8.7 of ElectrumX

* Upgrade to Python 3.7

This is suggested in the release notes of ElectrumX:

"It is strongly recommended you upgrade to Python 3.7, which
fixes bugs in asyncio that caused an ever-growing open file count
and memory consumption whilst serving clients.  Those problems
should not occur with Python 3.7."

* Remove .py from the file to execute

* Rename Bitcoin to BitcoinSegwit as required by ElectrumX

* Travis to check version from new path
This commit is contained in:
Frédéric Massart 2019-01-29 22:48:05 +08:00 committed by Luke Childs
parent 66bdd0ca4d
commit 0e68da0497
5 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
sudo: required sudo: required
services: services:
- docker - docker
script: docker build -t electrumx . && ( docker run electrumx cat /electrumx/server/version.py | tee /dev/stderr | grep -q "'ElectrumX $(cat VERSION)'" ) 2>&1 script: docker build -t electrumx . && ( docker run electrumx cat /electrumx/electrumx/__init__.py | tee /dev/stderr | grep -q "'ElectrumX $(cat VERSION)'" ) 2>&1
notifications: notifications:
email: email:
on_success: never on_success: never

View File

@ -1,4 +1,4 @@
FROM python:3.6-alpine3.6 FROM python:3.7-alpine3.7
LABEL maintainer="Luke Childs <lukechilds123@gmail.com>" LABEL maintainer="Luke Childs <lukechilds123@gmail.com>"
COPY ./bin /usr/local/bin COPY ./bin /usr/local/bin

View File

@ -15,7 +15,7 @@ An easily configurable Docker image for running an Electrum server.
docker run \ docker run \
-v /home/username/electrumx:/data \ -v /home/username/electrumx:/data \
-e DAEMON_URL=http://user:pass@host:port \ -e DAEMON_URL=http://user:pass@host:port \
-e COIN=Bitcoin \ -e COIN=BitcoinSegwit \
-p 50002:50002 \ -p 50002:50002 \
lukechilds/electrumx lukechilds/electrumx
``` ```

View File

@ -1 +1 @@
1.4 1.8.7

View File

@ -4,4 +4,4 @@ if [ ! -e "${SSL_CERTFILE}" ] || [ ! -e "${SSL_KEYFILE}" ]; then
openssl req -newkey rsa:2048 -sha256 -nodes -x509 -days 365 -subj "/O=ElectrumX" -keyout "${SSL_KEYFILE}" -out "${SSL_CERTFILE}" openssl req -newkey rsa:2048 -sha256 -nodes -x509 -days 365 -subj "/O=ElectrumX" -keyout "${SSL_KEYFILE}" -out "${SSL_CERTFILE}"
fi fi
exec /electrumx/electrumx_server.py exec /electrumx/electrumx_server