add extra checks to docker compose Makefiles

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-12-16 23:27:01 +01:00 committed by Jakub
parent 4f45bceb9a
commit 1eb0ad91bd
2 changed files with 12 additions and 0 deletions

View File

@ -22,6 +22,12 @@ export PUBLIC_IP ?= $(shell curl -s https://ipecho.net/plain)
all: checks start show info enode
checks:
ifeq (, $(shell which docker))
$(error No $(BOLD)docker$(RESET) in your $$PATH. Please install it)
endif
ifeq (, $(shell docker version | grep Server))
$(error No permissions to run $(BOLD)docker$(RESET) commands)
endif
ifeq (, $(shell which docker-compose))
$(error No $(BOLD)docker-compose$(RESET) in your $$PATH. Please install it)
endif

View File

@ -22,6 +22,12 @@ export PUBLIC_IP ?= $(shell curl -s https://ipecho.net/plain)
all: checks start show info enode
checks:
ifeq (, $(shell which docker))
$(error No $(BOLD)docker$(RESET) in your $$PATH. Please install it)
endif
ifeq (, $(shell docker version | grep Server))
$(error No permissions to run $(BOLD)docker$(RESET) commands)
endif
ifeq (, $(shell which docker-compose))
$(error No $(BOLD)docker-compose$(RESET) in your $$PATH. Please install it)
endif