Ver Fonte

Build: ignore absence of docker-compose (#17331)

If devenv/docker-compose.yaml file is missing, `devenv-down`
and subsequently `devenv` is not going to work
Oleg Gaidarenko há 6 anos atrás
pai
commit
a1a498f96c
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      Makefile

+ 2 - 1
Makefile

@@ -104,7 +104,8 @@ endif
 # drop down the envs
 devenv-down:
 	@cd devenv; \
-	docker-compose down;
+	test -f docker-compose.yaml && \
+	docker-compose down || exit 0;
 
 # TODO recheck the rules and leave only necessary exclusions
 gosec: scripts/go/bin/gosec