Skip to content

Commit b240ae0

Browse files
author
French Ben
committed
Added token start to manager
Signed-off-by: French Ben <[email protected]>
1 parent 4bcf0b4 commit b240ae0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

azure/release/files/custom-data_manager.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export SWARM_INFO_TABLE="variables('swarmInfoTable')"
1212
export SWARM_INFO_STORAGE_ACCOUNT="variables('swarmInfoStorageAccount')"
1313
export SWARM_LOGS_STORAGE_ACCOUNT="variables('swarmLogsStorageAccount')"
1414
export MANAGER_IP=$(ifconfig eth0 | grep "inet addr:" | cut -d: -f2 | cut -d" " -f1)
15+
export VMSS_MGR="dockerswarm-managervmss"
16+
export VMSS_WRK="dockerswarm-worker-vmss"
1517
# create daemon config with custom tag
1618
echo "{\"log-driver\": \"syslog\",\"log-opts\": {\"syslog-address\": \"udp://localhost:514\", \"tag\": \"{{.Name}}/{{.ID}}\" }}" > /etc/docker/daemon.json
1719
service docker restart
@@ -26,3 +28,5 @@ docker run --log-driver=json-file --restart=always -d -e ROLE="$ROLE" -e REGION
2628
echo default: "$LB_NAME" >> /var/lib/docker/swarm/elb.config
2729
echo "$LB_NAME" > /var/lib/docker/swarm/lb_name
2830
docker run -d --log-driver=json-file -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/swarm:/var/lib/docker/swarm --name=editions_controller docker4x/l4controller-azure:"$DOCKER_FOR_IAAS_VERSION" run --ad_app_id="$APP_ID" --ad_app_secret="$APP_SECRET" --subscription_id="$SUB_ID" --resource_group="$GROUP_NAME" --log=4 --default_lb_name="$LB_NAME" --environment=AzurePublicCloud
31+
32+
docker run --log-driver=json-file --name=meta-azure --restart=always -d -p $MANAGER_IP:9024:8080 -e APP_ID="$APP_ID" -e APP_SECRET="$APP_SECRET" -e SUBSCRIPTION_ID="$SUB_ID" -e TENANT_ID="$TENANT_ID" -e GROUP_NAME="$GROUP_NAME" -e VMSS_MGR="$VMSS_MGR" -e VMSS_WRK="$VMSS_WRK" -v /var/run/docker.sock:/var/run/docker.sock docker4x/meta-aws:$DOCKER_FOR_IAAS_VERSION metaserver -flavor=azure

0 commit comments

Comments
 (0)