Add check to see if Docker is installed
This commit is contained in:
parent
9063a0179d
commit
20e5e69131
6
Makefile
6
Makefile
@ -2,8 +2,10 @@ OS=$(shell uname | tr [:upper:] [:lower:])
|
|||||||
HOST_ENV=${OS}-$(shell uname -m)
|
HOST_ENV=${OS}-$(shell uname -m)
|
||||||
DEVENV=devenv$(shell pwd | sed 's/\//-/g')
|
DEVENV=devenv$(shell pwd | sed 's/\//-/g')
|
||||||
DEVENV_IMAGE=wombatant/nostalgia-devenv
|
DEVENV_IMAGE=wombatant/nostalgia-devenv
|
||||||
ifeq ($(shell docker inspect --format="{{.State.Status}}" ${DEVENV} 2>&1),running)
|
ifneq ($(shell which docker),)
|
||||||
ENV_RUN=docker exec --user $(shell id -u ${USER}) ${DEVENV}
|
ifeq ($(shell docker inspect --format="{{.State.Status}}" ${DEVENV} 2>&1),running)
|
||||||
|
ENV_RUN=docker exec --user $(shell id -u ${USER}) ${DEVENV}
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
make:
|
make:
|
||||||
|
Loading…
Reference in New Issue
Block a user