initial commit

This commit is contained in:
dave 2015-11-01 19:12:52 -08:00
commit 2149babf09
3 changed files with 33 additions and 0 deletions

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM ubuntu:trusty
RUN apt-get update && \
apt-get install -y supervisor software-properties-common && \
add-apt-repository -y ppa:bitcoin/bitcoin && \
apt-get update && \
apt-get install -y bitcoind && \
apt-get clean && \
useradd -m crypto && \
su -c "mkdir /home/crypto/bitcoin/" crypto && \
rm -rf /var/lib/apt/lists/*
ADD bitcoin.conf /home/crypto/bitcoin.conf
ADD supervisor-bitcoin.conf /etc/supervisor/conf.d/bitcoin.conf
VOLUME /home/crypto/bitcoin/
EXPOSE 8332 8333
CMD supervisord

8
bitcoin.conf Normal file
View File

@ -0,0 +1,8 @@
listen=1
port=8333
server=1
rpcuser=bobby
rpcpassword=propane
rpcport=8332
rpcallowip=0.0.0.0/0
datadir=/home/crypto/bitcoin/

6
supervisor-bitcoin.conf Normal file
View File

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