mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-05-16 07:59:49 +08:00
Merge pull request #222 from ChairmanTubeAmp/martinb-dockerfix
Working Dockerfile and blockstore.ini example template.
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -41,3 +41,6 @@ data
|
||||
|
||||
# vim
|
||||
*.swp
|
||||
|
||||
#Docker
|
||||
Docker/blockstore.ini
|
||||
|
||||
20
Docker/Dockerfile
Normal file
20
Docker/Dockerfile
Normal 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
22
Docker/blockstore.ini
Normal 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
|
||||
15
Dockerfile
15
Dockerfile
@@ -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
|
||||
Reference in New Issue
Block a user