Skip to content

Commit d19d538

Browse files
committed
Initial commit
0 parents  commit d19d538

File tree

5 files changed

+72
-0
lines changed

5 files changed

+72
-0
lines changed

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
sudo: required
2+
services:
3+
- docker
4+
script: docker build -t electrumx . && ( docker run electrumx cat /electrumx/server/version.py | tee /dev/stderr | grep -q "'ElectrumX $(cat VERSION)'" ) 2>&1
5+
notifications:
6+
email:
7+
on_success: never

Dockerfile

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM python:3.6-alpine3.6
2+
LABEL maintainer="Luke Childs <[email protected]>"
3+
4+
VOLUME ["/data"]
5+
6+
COPY ./VERSION /tmp
7+
8+
RUN VERSION=$(cat /tmp/VERSION) && \
9+
chmod a+x /usr/local/bin/* && \
10+
apk add --no-cache git build-base && \
11+
apk add --no-cache --repository http://nl.alpinelinux.org/alpine/edge/testing leveldb-dev && \
12+
pip install aiohttp pylru plyvel && \
13+
git clone -b $VERSION https://github.com/kyuupichan/electrumx.git && \
14+
cd electrumx && \
15+
python setup.py install && \
16+
apk del git build-base && \
17+
rm -rf /tmp/*
18+
19+
RUN addgroup -S electrumx && adduser -S -g electrumx electrumx && \
20+
chown -R electrumx:electrumx /data
21+
22+
USER electrumx
23+
ENV HOME /data
24+
ENV DB_DIRECTORY /data
25+
WORKDIR /data
26+
27+
EXPOSE 50001 50002
28+
29+
CMD ["/electrumx/electrumx_server.py"]

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Luke Childs
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# docker-electrumx
3+
4+
[![Build Status](https://travis-ci.org/lukechilds/docker-electrumx.svg?branch=master)](https://travis-ci.org/lukechilds/docker-electrumx)
5+
[![Image Layers](https://images.microbadger.com/badges/image/lukechilds/electrumx.svg)](https://microbadger.com/images/lukechilds/electrumx)
6+
[![Docker Pulls](https://img.shields.io/docker/pulls/lukechilds/electrumx.svg)](https://hub.docker.com/r/lukechilds/electrumx/)
7+
8+
> Run an Electrum server with one command
9+
10+
An easily configurable Docker image for running an Electrum server.
11+
12+
## License
13+
14+
MIT © Luke Childs

VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.1

0 commit comments

Comments
 (0)