-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathentrypoint.sh
More file actions
39 lines (29 loc) · 730 Bytes
/
Copy pathentrypoint.sh
File metadata and controls
39 lines (29 loc) · 730 Bytes
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
38
#!/usr/bin/env bash
profiles="";
addProfile () {
if [ "$profiles" = "" ];
then
profiles=$1;
else
profiles=$profiles","$1;
fi
}
if [ ! -z "$ENABLE_KAFKA_MODE" ] && [ "$ENABLE_KAFKA_MODE" = true ];
then
addProfile "kafka"
fi
if [ ! -z "$ENABLE_RABBITMQ_MODE" ] && [ "$ENABLE_RABBITMQ_MODE" = true ];
then
addProfile "rabbitmq"
fi
if [ ! -z "$LOGSTASH_LOGGING" ] && [ "$LOGSTASH_LOGGING" = true ];
then
addProfile "logstash"
fi
if [ ! -z "$ROLLING_FILE_LOGGING" ] && [ "$ROLLING_FILE_LOGGING" = true ];
then
addProfile "rollingFile"
fi
mv /executions /compiler/executions
echo "Starting the compiler with the following profiles: "$profiles
java -jar -Dspring.profiles.active=$profiles /compiler.jar