Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mowgli
mowgli-colosseum
Commits
f2e265ba
Commit
f2e265ba
authored
Jan 31, 2019
by
Daniel Seybold
Browse files
removed auto discovery of public ip
parent
d3302280
Pipeline
#28649
passed with stage
in 12 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
init/entrypoint
init/entrypoint
+3
-2
No files found.
init/entrypoint
View file @
f2e265ba
...
...
@@ -13,7 +13,7 @@ GLOBAL_VAR="xyz"
# validate if all container variables are set
##############################################################################
function
validate
(){
vars
=
"MYSQL_PW MYSQL_USER MYSQL_DB MYSQL_HOST ETCD_HOST"
vars
=
"MYSQL_PW MYSQL_USER MYSQL_DB MYSQL_HOST ETCD_HOST
PUBLIC_IP
"
for
var
in
$vars
;
do
if
[[
$(
env
|
awk
-F
"="
'{print $1}'
|
grep
"^
$var
$"
)
!=
"
$var
"
]]
;
then
echo
"
$var
not set but required."
...
...
@@ -36,6 +36,7 @@ function writeConfigOptions(){
export
MYSQL_DB
=
$MYSQL_DB
export
MYSQL_HOST
=
$MYSQL_HOST
export
ETCD_HOST
=
$ETCD_HOST
export
PUBLIC_IP
=
$PUBLIC_IP
#cat /etc/docker-conf/configfile.conf.tmpl | envsubst > /etc/docker-conf/configfile.conf
cat
/etc/docker-config/application.conf | envsubst
>
/opt/cloudiator/colosseum-0.2.0-SNAPSHOT/conf/application.conf
cp
/etc/docker-config/logback.xml /opt/cloudiator/colosseum-0.2.0-SNAPSHOT/conf/
...
...
@@ -73,7 +74,7 @@ function colosseum_service(){
rm
/opt/cloudiator/colosseum-0.2.0-SNAPSHOT/RUNNING_PID
# resolve public IP
PUBLIC_IP
=
$(
dig +short myip.opendns.com @resolver1.opendns.com
)
#
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
...
...
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