initial commit

This commit is contained in:
dpedu 2015-08-09 00:16:06 -07:00
commit 404c3ef898
3 changed files with 35 additions and 0 deletions

21
Dockerfile Normal file
View File

@ -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

8
dogecoin.conf Normal file
View File

@ -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/

6
supervisor-dogecoin.conf Normal file
View File

@ -0,0 +1,6 @@
[supervisord]
nodaemon=true
[program:dogecoind]
command=su -c "dogecoind -conf=/home/crypto/dogecoin.conf" crypto
autorestart=true