Merge pull request #222 from ChairmanTubeAmp/martinb-dockerfix

Working Dockerfile and blockstore.ini example template.
This commit is contained in:
Muneeb Ali
2016-07-01 14:26:52 -04:00
committed by GitHub
4 changed files with 45 additions and 15 deletions

3
.gitignore vendored
View File

@@ -41,3 +41,6 @@ data
# vim
*.swp
#Docker
Docker/blockstore.ini

20
Docker/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM ubuntu:14.04
RUN apt-get -y update && apt-get -y install python-setuptools python-dev git-core build-essential libssl-dev libffi-dev
RUN easy_install -U pip
RUN mkdir -p /usr/local/blockstack-server
RUN git clone https://github.com/blockstack/blockstack-server /usr/local/blockstack-server
WORKDIR /usr/local/blockstack-server
#Test using a particular branch
#RUN git checkout release-candidate
RUN pip install --upgrade -r requirements.txt
RUN pip install blockstack
EXPOSE 6264
ADD blockstore.ini /root/.blockstore/blockstore.ini
CMD blockstack-server start

22
Docker/blockstore.ini Normal file
View File

@@ -0,0 +1,22 @@
[bitcoind]
mock = False
passwd = CHANGEME_PASSWORD
server = btcd.onename.com
user = CHANGEME_USERNAME
port = 8332
use_https = True
[chain_com]
api_key_secret = CHANGEME_APISECRET
api_key_id = CHANGEME_APITOKEN
[dht]
disable = True
port = 6265
servers = dht.blockstack.org:6265,dht.onename.com:6265,dht.halfmoonlabs.com:6265,127.0.0.1:6265
[blockstore]
announcers = judecn.id,muneeb.id,shea256.id
testset = False
max_subsidy = 0
email = CHANGEME_EMAIL

View File

@@ -1,15 +0,0 @@
FROM ubuntu:14.04
RUN apt-get -y update && apt-get -y install python-setuptools python-dev git-core build-essential
RUN easy_install -U pip
RUN mkdir -p /root/blockstack
RUN git clone https://github.com/namesystem/blockstack.git /root/blockstack
WORKDIR /root/blockstack
RUN pip install --upgrade -r requirements.txt
RUN pip install blockstack
EXPOSE 6264
CMD blockstackd start