Compare commits

..

No commits in common. "master" and "v1.16.0" have entirely different histories.

5 changed files with 20 additions and 61 deletions

View File

@ -1,39 +0,0 @@
name: Build on master push
on:
push:
branches:
- master
env:
DOCKER_CLI_EXPERIMENTAL: enabled
jobs:
build:
name: Build Docker image
runs-on: ubuntu-18.04
env:
VERSION: 1.16.0
steps:
- name: Login to Docker Hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u lukechilds --password-stdin
- name: Checkout project
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
id: qemu
- name: Setup Docker buildx action
uses: docker/setup-buildx-action@v1
id: buildx
- name: Run Docker buildx
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--build-arg VERSION=$VERSION \
--tag lukechilds/electrumx:v$VERSION \
--tag lukechilds/electrumx:latest \
--output "type=registry" .

7
.travis.yml Normal file
View File

@ -0,0 +1,7 @@
sudo: required
services:
- docker
script: docker build -t electrumx .
notifications:
email:
on_success: never

View File

@ -1,18 +1,16 @@
ARG VERSION=1.16.0
FROM python:3.7-alpine3.11 FROM python:3.7-alpine3.11
LABEL maintainer="Luke Childs <lukechilds123@gmail.com>" LABEL maintainer="Luke Childs <lukechilds123@gmail.com>"
ARG VERSION
COPY ./bin /usr/local/bin COPY ./bin /usr/local/bin
COPY ./VERSION /tmp
RUN chmod a+x /usr/local/bin/* && \ RUN VERSION=$(cat /tmp/VERSION) && \
chmod a+x /usr/local/bin/* && \
apk add --no-cache git build-base openssl && \ 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/v3.11/main leveldb-dev && \
apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing rocksdb-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 && \ pip install aiohttp pylru plyvel websockets python-rocksdb && \
git clone -b docker-image https://github.com/ranchimall/electrumx.git && \ git clone -b $VERSION https://github.com/spesmilo/electrumx.git && \
cd electrumx && \ cd electrumx && \
python setup.py install && \ python setup.py install && \
apk del git build-base && \ apk del git build-base && \
@ -21,7 +19,6 @@ RUN chmod a+x /usr/local/bin/* && \
VOLUME ["/data"] VOLUME ["/data"]
ENV HOME /data ENV HOME /data
ENV ALLOW_ROOT 1 ENV ALLOW_ROOT 1
ENV EVENT_LOOP_POLICY uvloop
ENV DB_DIRECTORY /data ENV DB_DIRECTORY /data
ENV SERVICES=tcp://:50001,ssl://:50002,wss://:50004,rpc://0.0.0.0:8000 ENV SERVICES=tcp://:50001,ssl://:50002,wss://:50004,rpc://0.0.0.0:8000
ENV SSL_CERTFILE ${DB_DIRECTORY}/electrumx.crt ENV SSL_CERTFILE ${DB_DIRECTORY}/electrumx.crt

View File

@ -14,23 +14,18 @@ An easily configurable Docker image for running an Electrum server.
## Usage ## Usage
Create a Docker volume to store the data, and then run the container
``` ```
docker volume create electrumx
docker run \ docker run \
-d --network="host" -v /home/username/electrumx:/data \
-v electrumx:/data \ -e DAEMON_URL=http://user:pass@host:port \
-e DAEMON_URL=http://user:pass@127.0.0.1:7313 \ -e COIN=BitcoinSegwit \
-e COIN=FLO \ -p 50002:50002 \
ranchimallfze/electrumx lukechilds/electrumx
``` ```
If there's an SSL certificate/key (`electrumx.crt`/`electrumx.key`) in the `/data` volume it'll be used. If not, one will be generated for you. If there's an SSL certificate/key (`electrumx.crt`/`electrumx.key`) in the `/data` volume it'll be used. If not, one will be generated for you.
You can view all ElectrumX environment variables here: https://github.com/spesmilo/electrumx/blob/master/docs/environment.rst You can view all ElectrumX environment variables here: https://github.com/kyuupichan/electrumx/blob/master/docs/environment.rst
### TCP Port ### TCP Port
@ -48,8 +43,6 @@ If you're only accessing RPC from within the container, there's no need to expos
### Version ### Version
**Note - this feature is to be finished for RanchiMall's FLO version**
You can also run a specific version of ElectrumX if you want. You can also run a specific version of ElectrumX if you want.
``` ```

1
VERSION Normal file
View File

@ -0,0 +1 @@
1.16.0