Unverified Commit be88bd05 authored by Emilio Garcia's avatar Emilio Garcia
Browse files

EE-2416 Add services, remove hardcoded versions

parent 51a14691
Pipeline #276314 passed with stage
in 1 minute and 42 seconds
......@@ -9,11 +9,13 @@ DIR=$(pwd)
RUNDIR=$DIR/local_run
LOG_DIR=$RUNDIR/logs
VERSION=1.2.1-SNAPSHOT
mkdir -p $LOG_DIR
echo "Building project with maven in background..."
mvn clean install > /dev/null
echo "Done \n"
echo "Done compiling."
#-------------------------------
......@@ -23,7 +25,7 @@ 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 &
nohup java -jar ega-data-api-netflix/ega-data-api-config/target/ega-data-api-config-$VERSION.jar > $LOG_DIR/config.logs 2>&1 &
echo "config: $!" > $RUNDIR/process_ids.txt
......@@ -34,7 +36,7 @@ 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 &
nohup java -jar ega-data-api-netflix/ega-data-api-eureka/target/ega-data-api-eureka-$VERSION.jar > $LOG_DIR/eureka.logs 2>&1 &
echo "eureka: $!" >> $RUNDIR/process_ids.txt
......@@ -45,7 +47,7 @@ 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 &
nohup java -jar ega-data-api-key/target/ega-data-api-key-$VERSION.jar > $LOG_DIR/key.logs 2>&1 &
echo "key: $!" >> $RUNDIR/process_ids.txt
......@@ -56,19 +58,52 @@ 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 &
nohup java -jar ega-data-api-filedatabase/target/ega-data-api-filedatabase-$VERSION.jar > $LOG_DIR/file.logs 2>&1 &
echo "filedatabase: $!" >> $RUNDIR/process_ids.txt
#-------------------------------
echo "Launching res server..."
cd ega-data-api-res
mvn package spring-boot:repackage > /dev/null
cd $DIR
nohup java -jar ega-data-api-res/target/ega-data-api-res-$VERSION.jar > $LOG_DIR/res.logs 2>&1 &
echo "res: $!" >> $RUNDIR/process_ids.txt
#-------------------------------
echo "Launching dataedge server..."
cd ega-data-api-dataedge
mvn package spring-boot:repackage > /dev/null
cd $DIR
nohup java -jar ega-data-api-dataedge/target/ega-data-api-dataedge-$VERSION.jar > $LOG_DIR/dataedge.logs 2>&1 &
echo "dataedge: $!" >> $RUNDIR/process_ids.txt
#-------------------------------
echo "Launching htsget server..."
cd ega-data-api-htsget
mvn package spring-boot:repackage > /dev/null
cd $DIR
nohup java -jar ega-data-api-htsget/target/ega-data-api-htsget-$VERSION.jar > $LOG_DIR/htsget.logs 2>&1 &
echo "htsget: $!" >> $RUNDIR/process_ids.txt
#-------------------------------
echo ""
echo "All processes started: (process: PID)"
echo "All processes started (Name: PID)"
cat $RUNDIR/process_ids.txt
echo ""
echo "Logs: $LOG_DIR"
ls -ltrh $LOG_DIR
echo "\n"
echo ""
read -n 1 -r -s -p $'Press enter to exit...'
#-------------------------------
......
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