File tree 4 files changed +24
-12
lines changed
4 files changed +24
-12
lines changed Original file line number Diff line number Diff line change 1
- FROM ubuntu:16.04
1
+ FROM ubuntu:xenial-20180808
2
2
3
3
MAINTAINER "René Moser" <
[email protected] >
4
4
Original file line number Diff line number Diff line change 1
1
build :
2
+ docker build -t cloudstack-sim .
3
+
4
+ build-no-cache :
2
5
docker build --no-cache -t cloudstack-sim .
3
6
4
7
clean :
Original file line number Diff line number Diff line change 10
10
11
11
sleep 3
12
12
python /opt/cloudstack/tools/marvin/marvin/deployDataCenter.py -i /opt/zones.cfg
13
+
14
+ export CLOUDSTACK_ENDPOINT=http://127.0.0.1:8096
15
+ export CLOUDSTACK_KEY=" "
16
+ export CLOUDSTACK_SECRET=" "
17
+
18
+ # Add Simulator to supported hypervisors exclusively
19
+ cs updateConfiguration name=hypervisor.list value=Simulator
20
+
21
+ # Workaround for Nuage VPC Offering
22
+ vpc_offering_id=" $( cs listVPCOfferings listall=true name=Nuage | jq .vpcoffering[0].id) "
23
+ cs updateVPCOffering id=$vpc_offering_id state=Disabled
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+
3
+ # In case the container was restarted
4
+ rm -f /var/www/html/admin.json
5
+
2
6
until nc -z localhost 8096; do
3
7
echo " waiting for port 8096..."
4
8
sleep 3
5
9
done
6
10
7
11
sleep 3
8
- if [ ! -e /var/www/html/admin.json ]
9
- then
10
- export CLOUDSTACK_ENDPOINT=http://127.0.0.1:8096
11
- export CLOUDSTACK_KEY=" "
12
- export CLOUDSTACK_SECRET=" "
13
12
14
- # Workaround for Nuage VPC Offering
15
- vpc_offering_id= " $( cs listVPCOfferings listall=true name=Nuage | jq .vpcoffering[0].id ) "
16
- cs updateVPCOffering id= $vpc_offering_id state=Disabled
13
+ export CLOUDSTACK_ENDPOINT=http://127.0.0.1:8096
14
+ export CLOUDSTACK_KEY= " "
15
+ export CLOUDSTACK_SECRET= " "
17
16
18
- admin_id=" $( cs listUsers account=admin | jq .user[0].id) "
19
- cs getUserKeys id=$admin_id | jq .userkeys > /var/www/html/admin.json
20
- fi
17
+ admin_id=" $( cs listUsers account=admin | jq .user[0].id) "
18
+ cs getUserKeys id=$admin_id | jq .userkeys > /var/www/html/admin.json
You can’t perform that action at this time.
0 commit comments