-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from slavikus/master
Allow hosting of Electrum data on a Docker volume
- Loading branch information
Showing
5 changed files
with
26 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM python:3.9.1-alpine | ||
FROM python:3.9.12-alpine | ||
|
||
ARG BUILD_DATE | ||
ARG VCS_REF | ||
ARG VERSION | ||
ARG CHECKSUM_SHA512 | ||
LABEL maintainer="[email protected]" \ | ||
org.label-schema.vendor="Distirbuted Solutions, Inc." \ | ||
org.label-schema.vendor="Boroda Group" \ | ||
org.label-schema.build-date=$BUILD_DATE \ | ||
org.label-schema.name="Electrum wallet (RPC enabled)" \ | ||
org.label-schema.description="Electrum wallet with JSON-RPC enabled (daemon mode)" \ | ||
|
@@ -24,25 +24,29 @@ ENV ELECTRUM_PASSWORD electrumz # XXX: CHANGE REQUIRED! | |
ENV ELECTRUM_HOME /home/$ELECTRUM_USER | ||
ENV ELECTRUM_NETWORK mainnet | ||
|
||
RUN mkdir -p /data ${ELECTRUM_HOME} && \ | ||
ln -sf /data ${ELECTRUM_HOME}/.electrum && \ | ||
chown ${ELECTRUM_USER} ${ELECTRUM_HOME}/.electrum /data | ||
======= | ||
# IMPORTANT: always verify gpg signature before changing a hash here! | ||
ENV ELECTRUM_CHECKSUM_SHA512 $CHECKSUM_SHA512 | ||
|
||
RUN adduser -D $ELECTRUM_USER && \ | ||
apk --no-cache add --virtual build-dependencies gcc musl-dev && \ | ||
apk --no-cache add --virtual build-dependencies gcc musl-dev libsecp256k1 && \ | ||
wget https://download.electrum.org/${ELECTRUM_VERSION}/Electrum-${ELECTRUM_VERSION}.tar.gz && \ | ||
[ "${ELECTRUM_CHECKSUM_SHA512} Electrum-${ELECTRUM_VERSION}.tar.gz" = "$(sha512sum Electrum-${ELECTRUM_VERSION}.tar.gz)" ] && \ | ||
echo -e "**************************\n SHA 512 Checksum OK\n**************************" && \ | ||
pip3 install Electrum-${ELECTRUM_VERSION}.tar.gz && \ | ||
pip3 install pycryptodomex Electrum-${ELECTRUM_VERSION}.tar.gz && \ | ||
rm -f Electrum-${ELECTRUM_VERSION}.tar.gz && \ | ||
apk del build-dependencies | ||
|
||
RUN mkdir -p /data \ | ||
${ELECTRUM_HOME}/.electrum/wallets/ \ | ||
${ELECTRUM_HOME}/.electrum/testnet/wallets/ \ | ||
${ELECTRUM_HOME}/.electrum/regtest/wallets/ \ | ||
${ELECTRUM_HOME}/.electrum/simnet/wallets/ && \ | ||
ln -sf ${ELECTRUM_HOME}/.electrum/ /data && \ | ||
chown -R ${ELECTRUM_USER} ${ELECTRUM_HOME}/.electrum /data | ||
${ELECTRUM_HOME}/.electrum/wallets/ \ | ||
${ELECTRUM_HOME}/.electrum/testnet/wallets/ \ | ||
${ELECTRUM_HOME}/.electrum/regtest/wallets/ \ | ||
${ELECTRUM_HOME}/.electrum/simnet/wallets/ && \ | ||
ln -sf ${ELECTRUM_HOME}/.electrum/ /data && \ | ||
chown -R ${ELECTRUM_USER} ${ELECTRUM_HOME}/.electrum /data | ||
|
||
USER $ELECTRUM_USER | ||
WORKDIR $ELECTRUM_HOME | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Copyright (c) 2016-2020 Vladimir Osintsev <[email protected]> | ||
Copyright (c) 2016-2022 Vladimir Osintsev <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.3.8 | ||
4.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters