Skip to content

Commit

Permalink
added dapr commands to justfile (#383)
Browse files Browse the repository at this point in the history
* added dapr commands to justfile

* adapted to .justfile clean

* added protocol missed
  • Loading branch information
daliclovr authored Jul 3, 2024
1 parent 0b83992 commit 51cb2d6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,16 @@ docker-down:
# Stops the development docker containers and removes the volumes, add DOCKER_COMPOSE_FILE to override the default file
docker-rm:
cd {{DOCKER_DIR}} && docker compose -f {{DOCKER_COMPOSE_FILE}} down -v


##########
# Dapr #
##########

# Execute NodeGuard with a Dapr sidecar
dapr-run:
dapr run --app-id nodeguard --app-port 50051 --app-protocol grpc --dapr-grpc-port 33601 -- dotnet run --project src/NodeGuard.csproj --launch-profile "NodeGuard local debug"

# Stop NodeGuard with Dapr sidecar and the server which stays running in the background
dapr-stop:
ps -ef | grep '[d]apr.*--app-id nodeguard' | awk '{print $2}' | xargs -r kill -9 && killall -9 NodeGuard
1 change: 1 addition & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
version: '3.4'

name: nodeguard
services:
nodeguard_postgres:
container_name: nodeguard_postgres
Expand Down

0 comments on commit 51cb2d6

Please sign in to comment.