-
Notifications
You must be signed in to change notification settings - Fork 2
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 #2 from TnTBass/1.3.1
Updated docker to use 1.3.1
- Loading branch information
Showing
4 changed files
with
203 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM ubuntu:20.04 | ||
|
||
#RUN wget http://statics.derasse.ovh/verium-1.3.0/verium-1.3.0-x86_64-linux-gnu.tar.gz | ||
#RUN wget https://files.vericonomy.com/vrm/verium-1.3.1-x86_64-linux-gnu.tar.gz | ||
|
||
ARG VERSION=1.3.1 | ||
|
||
ENV FILENAME verium-${VERSION}-x86_64-linux-gnu.tar.gz | ||
#ENV DOWNLOAD_URL http://statics.derasse.ovh/verium-${VERSION}/${FILENAME} | ||
ENV DOWNLOAD_URL https://files.vericonomy.com/vrm/${FILENAME} | ||
|
||
# Some of this was unabashadly yanked from | ||
# https://github.com/szyhf/DIDockerfiles/blob/master/bitcoin/alpine/Dockerfile | ||
# and https://github.com/jamesob/docker-bitcoind/blob/master/Dockerfile | ||
|
||
#Update Ubuntu | ||
#Download verium binary | ||
#move appropriate files to /usr/local/bin | ||
#cleanup the temporary files | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
wget \ | ||
&& wget $DOWNLOAD_URL \ | ||
&& tar xzvf /verium-${VERSION}-x86_64-linux-gnu.tar.gz \ | ||
&& mkdir /root/.verium \ | ||
&& mv /verium-${VERSION}/bin/* /usr/local/bin/ \ | ||
&& rm -rf /verium-${VERSION}/ \ | ||
&& rm -rf /verium-${VERSION}-x86_64-linux-gnu.tar.gz | ||
|
||
EXPOSE 33987 36988 | ||
|
||
COPY docker_entrypoint.sh /usr/local/bin/ | ||
RUN chmod a+x /usr/local/bin/docker_entrypoint.sh | ||
|
||
ENTRYPOINT ["/usr/local/bin/docker_entrypoint.sh"] |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
FROM alpine | ||
|
||
#Will need to change to appropriate URL when its on vericonomy | ||
#RUN wget http://statics.derasse.ovh/verium-1.3.0/verium-1.3.0-x86_64-linux-gnu.tar.gz | ||
|
||
ARG VERSION=1.3.1 | ||
ARG GLIBC_VERSION=2.29-r0 | ||
|
||
ENV FILENAME verium-${VERSION}-x86_64-linux-gnu.tar.gz | ||
#ENV DOWNLOAD_URL http://statics.derasse.ovh/verium-${VERSION}/${FILENAME} | ||
ENV DOWNLOAD_URL https://files.vericonomy.com/vrm/${FILENAME} | ||
|
||
# Some of this was unabashadly yanked from | ||
# https://github.com/szyhf/DIDockerfiles/blob/master/bitcoin/alpine/Dockerfile | ||
# and https://github.com/jamesob/docker-bitcoind/blob/master/Dockerfile | ||
|
||
#Update package database | ||
#Install applicable packages for use | ||
#Download verium binary | ||
#move appropriate files to /usr/local/bin | ||
#cleanup the temporary files | ||
|
||
RUN apk update \ | ||
&& apk --no-cache add wget tar bash ca-certificates \ | ||
&& wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \ | ||
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk \ | ||
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-bin-${GLIBC_VERSION}.apk \ | ||
&& apk --no-cache add glibc-${GLIBC_VERSION}.apk \ | ||
&& apk --no-cache add glibc-bin-${GLIBC_VERSION}.apk \ | ||
&& rm -rf /glibc-${GLIBC_VERSION}.apk \ | ||
&& rm -rf /glibc-bin-${GLIBC_VERSION}.apk \ | ||
&& wget $DOWNLOAD_URL \ | ||
&& tar xzvf /verium-${VERSION}-x86_64-linux-gnu.tar.gz \ | ||
&& mkdir /root/.verium \ | ||
&& mv /verium-${VERSION}/bin/* /usr/local/bin/ \ | ||
&& rm -rf /verium-${VERSION}/ \ | ||
&& rm -rf /verium-${VERSION}-x86_64-linux-gnu.tar.gz \ | ||
&& apk del tar wget ca-certificates | ||
|
||
EXPOSE 33987 36988 | ||
|
||
COPY docker_entrypoint.sh /usr/local/bin/ | ||
RUN chmod a+x /usr/local/bin/docker_entrypoint.sh | ||
|
||
ENTRYPOINT ["/usr/local/bin/docker_entrypoint.sh"] |
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
VERIUM_DIR=/root/.verium | ||
VERIUM_CONF=${VERIUM_DIR}/verium.conf | ||
|
||
# If config doesn't exist, initialize with sane defaults for running a | ||
# non-mining node. | ||
|
||
if [ ! -e "${VERIUM_CONF}" ]; then | ||
tee -a >${VERIUM_CONF} <<EOF | ||
# For documentation on the config file, see | ||
# | ||
# the verium source: | ||
# https://github.com/VeriumReserve/verium/blob/master/share/examples/verium.conf | ||
# the wiki: | ||
# https://en.bitcoin.it/wiki/Running_Bitcoin | ||
# server=1 tells verium-Qt and veriumd to accept JSON-RPC commands | ||
server=1 | ||
# You must set rpcuser and rpcpassword to secure the JSON-RPC api | ||
rpcuser=${VRM_RPCUSER:-vrm} | ||
rpcpassword=${VRM_RPCPASSWORD:-changemeplz-or-you-will-have-all-your-coins-stolen} | ||
# How many seconds verium will wait for a complete RPC HTTP request. | ||
# after the HTTP connection is established. | ||
rpcclienttimeout=${VRM_RPCCLIENTTIMEOUT:-30} | ||
rpcallowip=${VRM_RPCALLOWIP:-::/0} | ||
# Listen for RPC connections on this TCP port: | ||
rpcport=${VRM_RPCPORT:-33987} | ||
# Listen for P2P connections on this TCP port: | ||
rpcport=${VRM_P2PORT:-33988} | ||
# Print to console (stdout) so that "docker logs veriumd" prints useful | ||
# information. | ||
printtoconsole=${VRM_PRINTTOCONSOLE:-1} | ||
# We probably want a wallet. | ||
disablewallet=${VRM_DISABLEWALLET:-0} | ||
# Enable an on-disk txn index. Allows use of getrawtransaction for txns not in | ||
# mempool. | ||
txindex=${VRM_TXINDEX:-0} | ||
# Run on the test network instead of the real verium network. | ||
testnet=${VRM_TESTNET:-0} | ||
EOF | ||
fi | ||
|
||
if [ $# -eq 0 ]; then | ||
exec veriumd -datadir=${VERIUM_DIR} -conf=${VERIUM_CONF} | ||
else | ||
exec "$@" | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
VERIUM_DIR=/root/.verium | ||
VERIUM_CONF=${VERIUM_DIR}/verium.conf | ||
|
||
# If config doesn't exist, initialize with sane defaults for running a | ||
# non-mining node. | ||
|
||
if [ ! -e "${VERIUM_CONF}" ]; then | ||
tee -a >${VERIUM_CONF} <<EOF | ||
# For documentation on the config file, see | ||
# | ||
# the verium source: | ||
# https://github.com/VeriumReserve/verium/blob/master/share/examples/verium.conf | ||
# the wiki: | ||
# https://en.bitcoin.it/wiki/Running_Bitcoin | ||
# server=1 tells verium-Qt and veriumd to accept JSON-RPC commands | ||
server=1 | ||
# You must set rpcuser and rpcpassword to secure the JSON-RPC api | ||
rpcuser=${VRM_RPCUSER:-vrm} | ||
rpcpassword=${VRM_RPCPASSWORD:-changemeplz-or-you-will-have-all-your-coins-stolen} | ||
# How many seconds verium will wait for a complete RPC HTTP request. | ||
# after the HTTP connection is established. | ||
rpcclienttimeout=${VRM_RPCCLIENTTIMEOUT:-30} | ||
rpcallowip=${VRM_RPCALLOWIP:-::/0} | ||
# Listen for RPC connections on this TCP port: | ||
rpcport=${VRM_RPCPORT:-33987} | ||
# Listen for P2P connections on this TCP port: | ||
rpcport=${VRM_P2PORT:-33988} | ||
# Print to console (stdout) so that "docker logs veriumd" prints useful | ||
# information. | ||
printtoconsole=${VRM_PRINTTOCONSOLE:-1} | ||
# We probably want a wallet. | ||
disablewallet=${VRM_DISABLEWALLET:-0} | ||
# Enable an on-disk txn index. Allows use of getrawtransaction for txns not in | ||
# mempool. | ||
txindex=${VRM_TXINDEX:-0} | ||
# Run on the test network instead of the real verium network. | ||
testnet=${VRM_TESTNET:-0} | ||
EOF | ||
fi | ||
|
||
if [ $# -eq 0 ]; then | ||
exec veriumd -datadir=${VERIUM_DIR} -conf=${VERIUM_CONF} | ||
else | ||
exec "$@" | ||
fi |