-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactivation.sh
executable file
·37 lines (25 loc) · 1.11 KB
/
activation.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
INSIGHIT_STREAM_CONTAINER_NAME=curionoah-insight_stream-1
INFO_ISLAND_CONTAINER_NAME=curionoah-info_island-1
FEED_HARMONY=curionoah-feed_harmony-1
# get the current directory
CURRENT_DIR=$(pwd)
# run Front end and Back end apps
docker exec -d $INSIGHIT_STREAM_CONTAINER_NAME /bin/bash -c "cd /usr/src/app && go run main.go" &&
echo "Insight Stream is running" &&
docker exec -d $INFO_ISLAND_CONTAINER_NAME /bin/bash -c "cd /usr/src/app && npm install && npm run build && npm run preview" &&
echo "Info Island is running" &&
docker exec -d $FEED_HARMONY /bin/bash -c "cd /usr/src/app && cargo build --release && ./target/release/feed_harmony > /usr/src/app/harmony.log 2>&1" &&
echo "FeedHarmony is running" &&
echo "All services are running"
# clean up the log file
# echo "" > $CURRENT_DIR/Exec/feed_harmony.log &&
# old way to run microservices. So comment it out
# run microservices
# (
# cd ./FeedHarmony/feed_harmony &&
# cargo build --release &&
# ./target/release/feed_harmony > $CURRENT_DIR/Exec/feed_harmony.log 2>&1
# ) &&
# follow the output of FeedHarmony
tail -f $CURRENT_DIR/Exec/feed_harmony.log