Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
EGA
ega-data-api
Commits
230eab69
Unverified
Commit
230eab69
authored
May 12, 2022
by
Emilio Garcia
Browse files
EE-2416 Start script
parent
829a4424
Pipeline
#276172
passed with stage
in 1 minute and 40 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
0 deletions
+63
-0
.gitignore
.gitignore
+2
-0
startall.sh
startall.sh
+61
-0
No files found.
.gitignore
View file @
230eab69
...
...
@@ -46,3 +46,5 @@ __pycache__
# Personal files
personal
local_run
config-map
startall.sh
0 → 100755
View file @
230eab69
#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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment