Commit 95ae5100 authored by Daniel Seybold's avatar Daniel Seybold

updated entrypoint to make logs visible in portainer

parent cbf57282
Pipeline #19304 passed with stage
in 9 minutes and 26 seconds
......@@ -65,7 +65,10 @@ function checkDatabase(){
mysql -u $MYSQL_USER --password=$MYSQL_PW -h $MYSQL_HOST -e "show databases"
}
function start_colosseum(){
function colosseum_service(){
echo "starting colosseum..."
#delete PID file
rm /opt/cloudiator/colosseum-0.2.0-SNAPSHOT/RUNNING_PID
......@@ -73,19 +76,12 @@ function start_colosseum(){
PUBLIC_IP=$(dig +short myip.opendns.com @resolver1.opendns.com)
echo "starting colosseum..."
/opt/cloudiator/colosseum-0.2.0-SNAPSHOT/bin/colosseum -Dconfig.file=/opt/cloudiator/colosseum-0.2.0-SNAPSHOT/conf/application.conf -Dlca.client.config.registry=etcdregistry -Dlca.client.config.registry.etcd.hosts=${PUBLIC_IP} 2>&1 >> /var/log/colosseum.log
}
function colosseum_service(){
/opt/cloudiator/colosseum-0.2.0-SNAPSHOT/bin/colosseum -Dconfig.file=/opt/cloudiator/colosseum-0.2.0-SNAPSHOT/conf/application.conf -Dlca.client.config.registry=etcdregistry -Dlca.client.config.registry.etcd.hosts=${PUBLIC_IP} 2>&1
echo "starting colosseum..."
start_colosseum
#/opt/cloudiator/colosseum-0.2.0-SNAPSHOT/bin/colosseum -Dconfig.file=/opt/cloudiator/colosseum-0.2.0-SNAPSHOT/conf/application.conf -Dlca.client.config.registry=etcdregistry -Dlca.client.config.registry.etcd.hosts=${PUBLIC_IP} 2>&1 >> /var/log/colosseum.log
# whatever blocking call
tail -f /dev/null
#tail -f /dev/null
}
function start(){
......
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