-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix simulator not in hypervisor.list
- Loading branch information
Showing
4 changed files
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:16.04 | ||
FROM ubuntu:xenial-20180808 | ||
|
||
MAINTAINER "René Moser" <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
build: | ||
docker build -t cloudstack-sim . | ||
|
||
build-no-cache: | ||
docker build --no-cache -t cloudstack-sim . | ||
|
||
clean: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# In case the container was restarted | ||
rm -f /var/www/html/admin.json | ||
|
||
until nc -z localhost 8096; do | ||
echo "waiting for port 8096..." | ||
sleep 3 | ||
done | ||
|
||
sleep 3 | ||
if [ ! -e /var/www/html/admin.json ] | ||
then | ||
export CLOUDSTACK_ENDPOINT=http://127.0.0.1:8096 | ||
export CLOUDSTACK_KEY="" | ||
export CLOUDSTACK_SECRET="" | ||
|
||
# Workaround for Nuage VPC Offering | ||
vpc_offering_id="$(cs listVPCOfferings listall=true name=Nuage | jq .vpcoffering[0].id)" | ||
cs updateVPCOffering id=$vpc_offering_id state=Disabled | ||
export CLOUDSTACK_ENDPOINT=http://127.0.0.1:8096 | ||
export CLOUDSTACK_KEY="" | ||
export CLOUDSTACK_SECRET="" | ||
|
||
admin_id="$(cs listUsers account=admin | jq .user[0].id)" | ||
cs getUserKeys id=$admin_id | jq .userkeys > /var/www/html/admin.json | ||
fi | ||
admin_id="$(cs listUsers account=admin | jq .user[0].id)" | ||
cs getUserKeys id=$admin_id | jq .userkeys > /var/www/html/admin.json |