Open Michal-Szczepaniak opened 1 month ago
for quick workaround, until its solved, just update the check
@$(DOCKER_COMPOSE) version > /dev/null || (echo "Please install docker compose binary" && exit 1)
I think the better solution would be @which docker > /dev/null
this would check if docker
is installed but we want to check specifically if docker compose
is installed, as they are different things and can be installed separately
Then check if /usr/lib/docker/cli-plugins/docker-compose
exists
i'm afraid it won't work either, docker may be installed in different places, especially if you install the desktop version
for example on my current machine docker is under /usr/local/docker
and on my windows machine it is /mnt/c/Program Files/Docker/Docker
imo docker compose version
is safer bet as it only requires to set correct $PATH
In the Makefile file, there's a check that checks if docker exists, but the issue is that you used
DOCKER_COMPOSE
variableand
DOCKER_COMPOSE
variable consists ofdocker compose
which in turn causeswhich docker compose
command, and while docker command exists, compose command does not exist because its parameter to the docker command, so the check fails and currentlymake init
will always fail on every system unless they somehow got command namedcompose