docker-steemd/Makefile

26 lines
534 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 \
-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