Unverified Commit 230eab69 authored by Emilio Garcia's avatar Emilio Garcia
Browse files

EE-2416 Start script

parent 829a4424
Pipeline #276172 passed with stage
in 1 minute and 40 seconds
......@@ -46,3 +46,5 @@ __pycache__
# Personal files
personal
local_run
config-map
#Save current dir for future usage
DIR=$(pwd)
RUNDIR=$DIR/local_run
LOG_DIR=$RUNDIR/logs
mkdir -p $LOG_DIR
echo "Building project, not showing stdout"
# mvn clean install > /dev/null
#-------------------------------
echo "Launching config server..."
cd ega-data-api-netflix/ega-data-api-config
mvn package spring-boot:repackage > /dev/null
cd $DIR
nohup java -jar ega-data-api-netflix/ega-data-api-config/target/ega-data-api-config-1.2.1-SNAPSHOT.jar > $LOG_DIR/config.logs 2>&1 &
echo "config: $!" > $RUNDIR/process_ids.txt
#-------------------------------
echo "Launching eureka server..."
cd ega-data-api-netflix/ega-data-api-eureka
mvn package spring-boot:repackage > /dev/null
cd $DIR
nohup java -jar ega-data-api-netflix/ega-data-api-eureka/target/ega-data-api-eureka-1.2.1-SNAPSHOT.jar > $LOG_DIR/eureka.logs 2>&1 &
echo "eureka: $!" >> $RUNDIR/process_ids.txt
#-------------------------------
echo "Launching key server..."
cd ega-data-api-key
mvn package spring-boot:repackage > /dev/null
cd $DIR
nohup java -jar ega-data-api-key/target/ega-data-api-key-1.2.1-SNAPSHOT.jar > $LOG_DIR/key.logs 2>&1 &
echo "key: $!" >> $RUNDIR/process_ids.txt
#-------------------------------
echo "Launching file-database server..."
cd ega-data-api-filedatabase
mvn package spring-boot:repackage > /dev/null
cd $DIR
nohup java -jar ega-data-api-filedatabase/target/ega-data-api-filedatabase-1.2.1-SNAPSHOT.jar > $LOG_DIR/file.logs 2>&1 &
echo "filedatabase: $!" >> $RUNDIR/process_ids.txt
#-------------------------------
echo "All processes started:"
cat $RUNDIR/process_ids.txt
echo "Press a key to kill them all"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment