Initial commit
This commit is contained in:
commit
d19d5388b4
7
.travis.yml
Normal file
7
.travis.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
sudo: required
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
script: docker build -t electrumx . && ( docker run electrumx cat /electrumx/server/version.py | tee /dev/stderr | grep -q "'ElectrumX $(cat VERSION)'" ) 2>&1
|
||||||
|
notifications:
|
||||||
|
email:
|
||||||
|
on_success: never
|
||||||
29
Dockerfile
Normal file
29
Dockerfile
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
FROM python:3.6-alpine3.6
|
||||||
|
LABEL maintainer="Luke Childs <lukechilds123@gmail.com>"
|
||||||
|
|
||||||
|
VOLUME ["/data"]
|
||||||
|
|
||||||
|
COPY ./VERSION /tmp
|
||||||
|
|
||||||
|
RUN VERSION=$(cat /tmp/VERSION) && \
|
||||||
|
chmod a+x /usr/local/bin/* && \
|
||||||
|
apk add --no-cache git build-base && \
|
||||||
|
apk add --no-cache --repository http://nl.alpinelinux.org/alpine/edge/testing leveldb-dev && \
|
||||||
|
pip install aiohttp pylru plyvel && \
|
||||||
|
git clone -b $VERSION https://github.com/kyuupichan/electrumx.git && \
|
||||||
|
cd electrumx && \
|
||||||
|
python setup.py install && \
|
||||||
|
apk del git build-base && \
|
||||||
|
rm -rf /tmp/*
|
||||||
|
|
||||||
|
RUN addgroup -S electrumx && adduser -S -g electrumx electrumx && \
|
||||||
|
chown -R electrumx:electrumx /data
|
||||||
|
|
||||||
|
USER electrumx
|
||||||
|
ENV HOME /data
|
||||||
|
ENV DB_DIRECTORY /data
|
||||||
|
WORKDIR /data
|
||||||
|
|
||||||
|
EXPOSE 50001 50002
|
||||||
|
|
||||||
|
CMD ["/electrumx/electrumx_server.py"]
|
||||||
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2017 Luke Childs
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
14
README.md
Normal file
14
README.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
# docker-electrumx
|
||||||
|
|
||||||
|
[](https://travis-ci.org/lukechilds/docker-electrumx)
|
||||||
|
[](https://microbadger.com/images/lukechilds/electrumx)
|
||||||
|
[](https://hub.docker.com/r/lukechilds/electrumx/)
|
||||||
|
|
||||||
|
> Run an Electrum server with one command
|
||||||
|
|
||||||
|
An easily configurable Docker image for running an Electrum server.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
MIT © Luke Childs
|
||||||
Loading…
Reference in New Issue
Block a user