make it easier to run a node

This commit is contained in:
Jeffrey Paul 2016-09-02 05:03:30 +02:00
parent 14c754884e
commit c07a70e199
2 changed files with 17 additions and 11 deletions

View File

@ -1,21 +1,15 @@
default: build default: build
build: kill build:
docker build \ docker build \
-t sneak/steemd \ -t sneak/steemd \
$(BUILD_ARGS) \ $(BUILD_ARGS) \
. .
run: kill run: kill
docker run \ envdir ~/.paths/steemd-secrets \
--name sneak-steemd \ docker-compose up -d
-e STEEMD_MINING_THREADS=$(STEEMD_MINING_THREADS) \
-e STEEMD_WITNESS_NAME=$(STEEMD_WITNESS_NAME) \
-e STEEMD_MINER_NAME=$(STEEMD_MINER_NAME) \
-e STEEMD_PRIVATE_KEY=$(STEEMD_PRIVATE_KEY) \
-d \
sneak/steemd
docker logs -f sneak-steemd
kill: kill:
-docker rm -f sneak-steemd docker-compose kill
docker-compose rm -f

12
docker-compose.yml Normal file
View File

@ -0,0 +1,12 @@
version: '2.0'
services:
steemd:
image: "sneak/steemd"
network_mode: bridge
environment:
- STEEMD_MINER_NAME
- STEEMD_PRIVATE_KEY
ports:
- "8090:8090"
- "2001:2001"