docker-steemd/Makefile

27 lines
588 B
Makefile
Raw Normal View History

2016-08-18 11:50:02 +00:00
BUILD_ARGS := --build-arg UBUNTU_MIRROR="mirror://mirrors.ubuntu.com/mirrors.txt"
ifdef UBUNTU_MIRROR
BUILD_ARGS := --build-arg UBUNTU_MIRROR="$(UBUNTU_MIRROR)"
endif
2016-08-18 10:19:41 +00:00
default: build
build: kill
2016-08-18 11:50:02 +00:00
docker build \
-t sneak/steemd \
$(BUILD_ARGS) \
.
2016-08-18 10:19:41 +00:00
run: kill
2016-08-18 12:34:18 +00:00
docker run \
--name sneak-steemd \
2016-08-27 00:54:16 +00:00
-e STEEMD_MINING_THREADS=$(STEEMD_MINING_THREADS) \
2016-08-18 12:34:18 +00:00
-e STEEMD_WITNESS_NAME=$(STEEMD_WITNESS_NAME) \
-e STEEMD_MINER_NAME=$(STEEMD_MINER_NAME) \
-e STEEMD_PRIVATE_KEY=$(STEEMD_PRIVATE_KEY) \
-d \
sneak/steemd
2016-08-18 10:19:41 +00:00
docker logs -f sneak-steemd
kill:
-docker rm -f sneak-steemd