Skip to content

Commit

Permalink
minor fixes for docker makefile (#133)
Browse files Browse the repository at this point in the history
* minor fixes

* review suggestiob

Co-authored-by: Anmol <anmol1696@gmail.com>

Co-authored-by: Anmol <anmol1696@gmail.com>
  • Loading branch information
bahdotsh and Anmol1696 authored Sep 15, 2022
1 parent 7466500 commit 68eadaf
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ DOCKER_FILE = Dockerfile
DOCKER := $(shell which docker)

_DOCKER_ENV=\
-e CHAIN_ID=pstake \
-e PSTAKE_DIR=/pstaked \
-e CHAIN_ID=persistencecore \
-e COINS="100000000000000000stake" \
$(DOCKER_ENV)
_DOCKER_VOLUME=\
Expand All @@ -31,10 +30,10 @@ docker-build:
docker-run:
$(DOCKER) run --rm -it --name=$(CONTAINER_NAME) \
$(_DOCKER_VOLUME) $(_DOCKER_ARGS) $(_DOCKER_ENV) \
$(IMAGE_NAME):$(TAG_NAME) /bin/bash
$(DOCKER_IMAGE_NAME):$(DOCKER_TAG_NAME) /bin/bash

docker-push:
$(DOCKER) push $(IMAGE_NAME):$(TAG_NAME)
$(DOCKER) push $(DOCKER_IMAGE_NAME):$(DOCKER_TAG_NAME)

docker-build-push: docker-build docker-push

Expand All @@ -43,4 +42,4 @@ docker-clean-container:
-$(DOCKER) rm $(CONTAINER_NAME)

docker-clean: docker-clean-container
-$(DOCKER) rmi $(IMAGE_NAME):$(TAG_NAME)
-$(DOCKER) rmi $(DOCKER_IMAGE_NAME):$(DOCKER_TAG_NAME)

0 comments on commit 68eadaf

Please sign in to comment.