-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HARMONY-1583: Add easy start/stop of services for dev (#456)
* HARMONY-1583: Add easy start/stop of services for dev * HARMONY-1583: Add logs directories to git repo
- Loading branch information
1 parent
bc2fd22
commit 8ae90dc
Showing
20 changed files
with
141 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
# create internal services for Harmony development | ||
|
||
env_save=$(export -p) | ||
set -a | ||
source "lib/util/env-defaults" | ||
source "env-defaults" | ||
source ".env" | ||
set +a | ||
eval "$env_save" | ||
|
||
# run harmony | ||
echo "Starting Harmony server..." | ||
npm run start-dev-fast > logs/server.log 2>&1 & | ||
|
||
# create the work scheduler | ||
echo "Starting the work scheduler..." | ||
pushd kubernetes-services/work-scheduler > /dev/null | ||
export PORT=5001 | ||
npm run start-dev-fast > logs/work-scheduler.log 2>&1 & | ||
popd > /dev/null | ||
|
||
sleep 5 | ||
|
||
# create the work updaters | ||
export LOCALSTACK_HOST=localhost | ||
echo "Starting the large job work updater..." | ||
pushd kubernetes-services/work-updater > /dev/null | ||
export PORT=5002 | ||
export DEBUG_PORT=9202 | ||
export WORK_ITEM_UPDATE_QUEUE_TYPE=large | ||
npm run start-dev-fast > logs/work-update-large.log 2>&1 & | ||
|
||
sleep 5 | ||
|
||
echo "Starting the small job work updater..." | ||
export PORT=5003 | ||
export DEBUG_PORT=9203 | ||
export WORK_ITEM_UPDATE_QUEUE_TYPE=small | ||
npm run start-dev-fast > logs/work-update-small.log 2>&1 & | ||
|
||
popd > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
# stop any services running in development mode | ||
|
||
for DEBUG_PORT in 9200 9201 9202 9203 | ||
do | ||
for PID in $( ps -ef | grep node | grep "inspect=127.0.0.1:$DEBUG_PORT" | awk '{print $2}') | ||
do | ||
kill -9 $PID | ||
done | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.