Skip to content

Commit

Permalink
build(repo): introduce start and stop commands for all data-strea…
Browse files Browse the repository at this point in the history
…m services
  • Loading branch information
Jurshsmith committed Jun 17, 2024
1 parent 0fab3cb commit 9ab411d
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,22 @@ setup: check-commands
# ------------------------------------------------------------
# Development
# ------------------------------------------------------------
# Starts all services
start: CMDS=docker
start: check-commands
docker compose -f docker/docker-compose.yml up

stop:
docker compose -f docker/docker-compose.yml down

start.nats: CMDS=docker
start.nats: check-commands
docker run -p 4222:4222 -p 8222:8222 -p 6222:6222 --name fuel-core-nats-server -ti nats:latest --js

stop.nats:
docker stop $$(docker ps -q --filter ancestor=nats:latest)
docker rm $$(docker ps -a -q --filter ancestor=nats:latest)

# Starts fuel-core-nats service
start.fuel-core-nats:
./scripts/start-fuel-core-nats.sh
Expand All @@ -41,13 +57,6 @@ dev-watch:
build: install
cargo build --release --target "$(TARGET)" --package "$(PACKAGE)"

start-nats: CMDS=docker-compose
start-nats: check-commands
docker-compose -f docker/docker-compose.yml up

stop-nats:
docker-compose -f docker/docker-compose.yml down

run:
cargo run --release

Expand Down

0 comments on commit 9ab411d

Please sign in to comment.