Search code examples
azuredocker-swarmazure-container-service

Running custom script after azure container service deployment using swarm


I want to run a custom script after a swarm cluster is ready. I'm using following template to create azure container service (swarm based). https://github.com/Azure/azure-quickstart-templates/tree/875d139c16c9c023dce519e6dd48c707e3473346/101-acs-swarm

I couldn't find a way to run custom script automatically after the deployment finishes.


Solution

  • Currently, there is no way to run a custom script on the VMs inside the acs cluster. The only workaround for automation is to bring your own swarm cluster and run the custom script to install your software.

    Ref: https://github.com/phagunbaya/azure-templates/tree/master/docker-swarm