Skip to content

Commit

Permalink
fix: update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ozyx committed Aug 7, 2024
1 parent d629062 commit 7b4dc1b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ define print_message
@printf "\033[$(1)m$(2)\033[0m\n"
endef

.PHONY: all clean yamcs-up yamcs-down yamcs-simulator yamcs-shell help
.PHONY: all all-10hz clean yamcs-up yamcs-down yamcs-simulator yamcs-simulator-10hz yamcs-shell help

all: clean yamcs-simulator ## run all: clean, yamcs-up (yamcs-down) and yamcs-simulator

all-10hz: clean yamcs-simulator-10hz ## run all: clean, yamcs-up (yamcs-down) and yamcs-simulator

yamcs-up: | yamcs-down ## bring up yamcs system
docker compose up -d

Expand All @@ -30,6 +32,10 @@ yamcs-simulator: yamcs-up ## run yamcs simulator
$(call print_message,36,Connect via http://localhost:8090/ system may take about 50 seconds to startup)
cd .. && $(PYTHON) ./simulator.py

yamcs-simulator-10hz: yamcs-up ## run yamcs simulator at 10hz
$(call print_message,36,Connect via http://localhost:8090/ system may take about 50 seconds to startup)
cd .. && $(PYTHON) ./simulator.py --rate=10

yamcs-shell: ## shell into yamcs container
docker compose up -d && docker compose exec yamcs bash

Expand Down

0 comments on commit 7b4dc1b

Please sign in to comment.