22 lines
419 B
Makefile
22 lines
419 B
Makefile
default: build
|
|
|
|
build: kill
|
|
docker build \
|
|
-t sneak/steemd \
|
|
$(BUILD_ARGS) \
|
|
.
|
|
|
|
run: kill
|
|
docker run \
|
|
--name sneak-steemd \
|
|
-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:
|
|
-docker rm -f sneak-steemd
|