Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/pip/other-dependencies-60e6f35013
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmanuel-tirado authored Oct 16, 2024
2 parents 548e93d + b396479 commit bbb350d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ PYTHON_FILES := $(PYTHON_FILES_WITHOUT_TESTS) tests
STACK_BASE_NAME=stack-service-node
INSTANCE_COUNT ?= 1
DEV_MODE ?= false
SHELL := $(shell which bash)

.PHONY: check-version
check-version:
Expand Down Expand Up @@ -259,19 +260,19 @@ docker: check-swarm-init docker-build
export ARGS="$(ARGS) --watch"; \
docker compose -f docker-compose.yml -f docker-compose.override.yml -p $$STACK_NAME $$EXTRA_COMPOSE up $$ARGS & \
COMPOSE_PID=$$!; \
trap 'echo "Caught SIGINT, killing background processes..."; kill $$COMPOSE_PID; exit 1' SIGINT; \
trap 'echo "Caught INT, killing background processes..."; kill $$COMPOSE_PID; exit 1' INT; \
else \
export ARGS="--detach --wait $(ARGS)"; \
docker compose -f docker-compose.yml -f docker-compose.override.yml -p $$STACK_NAME $$EXTRA_COMPOSE up $$ARGS; \
fi; \
trap 'exit 1' SIGINT; \
trap 'exit 1' INT; \
echo "Stack $$STACK_NAME deployed"; \
if [ "$(DEV_MODE)" = "true" ]; then \
wait $$COMPOSE_PID; \
fi; \
) & \
done; \
trap 'echo "Caught SIGINT, killing all background processes..."; kill 0; exit 1' SIGINT; \
trap 'echo "Caught INT, killing all background processes..."; kill 0; exit 1' INT; \
wait
# We need to use compose because swarm goes absolutely crazy on MacOS when using cross architecture
# And can't pull the correct images
Expand Down

0 comments on commit bbb350d

Please sign in to comment.