From 404c3ef8988a92abbf4734616ba6595684586436 Mon Sep 17 00:00:00 2001 From: dpedu Date: Sun, 9 Aug 2015 00:16:06 -0700 Subject: [PATCH] initial commit --- Dockerfile | 21 +++++++++++++++++++++ dogecoin.conf | 8 ++++++++ supervisor-dogecoin.conf | 6 ++++++ 3 files changed, 35 insertions(+) create mode 100644 Dockerfile create mode 100644 dogecoin.conf create mode 100644 supervisor-dogecoin.conf diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a4855cf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM ubuntu:trusty + +WORKDIR /tmp + +RUN apt-get update && \ + apt-get install -y supervisor wget unzip && \ + wget -O dogecoin.zip https://github.com/dogecoin/dogecoin/releases/download/v1.8.2/dogecoin-1.8.2-linux64.zip && \ + unzip dogecoin.zip dogecoind && \ + mv dogecoind /usr/local/bin/dogecoind && \ + chmod +x /usr/local/bin/dogecoind && \ + useradd -m crypto && \ + su -c "mkdir /home/crypto/dogecoin/" crypto && \ + rm -rf /tmp/dogecoin.zip /var/lib/apt/lists/* + +ADD dogecoin.conf /home/crypto/dogecoin.conf +ADD supervisor-dogecoin.conf /etc/supervisor/conf.d/dogecoin.conf + +VOLUME /home/crypto/dogecoin/ +EXPOSE 6969 22556 + +CMD supervisord diff --git a/dogecoin.conf b/dogecoin.conf new file mode 100644 index 0000000..9796173 --- /dev/null +++ b/dogecoin.conf @@ -0,0 +1,8 @@ +listen=1 +port=22556 +server=1 +rpcuser=bobby +rpcpassword=propane +rpcport==6969 +rpcallowip=0.0.0.0/0 +datadir=/home/crypto/dogecoin/ diff --git a/supervisor-dogecoin.conf b/supervisor-dogecoin.conf new file mode 100644 index 0000000..ed8970d --- /dev/null +++ b/supervisor-dogecoin.conf @@ -0,0 +1,6 @@ +[supervisord] +nodaemon=true + +[program:dogecoind] +command=su -c "dogecoind -conf=/home/crypto/dogecoin.conf" crypto +autorestart=true