Luke Childs
7 years ago
commit
d19d5388b4
5 changed files with 72 additions and 0 deletions
@ -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 |
@ -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"] |
@ -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. |
@ -0,0 +1,14 @@ |
|||
|
|||
# docker-electrumx |
|||
|
|||
[![Build Status](https://travis-ci.org/lukechilds/docker-electrumx.svg?branch=master)](https://travis-ci.org/lukechilds/docker-electrumx) |
|||
[![Image Layers](https://images.microbadger.com/badges/image/lukechilds/electrumx.svg)](https://microbadger.com/images/lukechilds/electrumx) |
|||
[![Docker Pulls](https://img.shields.io/docker/pulls/lukechilds/electrumx.svg)](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 |
@ -0,0 +1 @@ |
|||
1.1 |
Loading…
Reference in new issue