-
Notifications
You must be signed in to change notification settings - Fork 28
Deploy a dev cluster on AWS
The deployment a dev version of AMP on AWS by default uses the :latest images from Docker Hub.
This is not satisfying when making changes that impact cloud deployments, before pushing them as latest tag, one wants to test it first. A better way is to use another tag that nobody else plans to use. Below $USER is the username of the developer, or any other unique ID. $VERSION is the dev version, for instance 0.18.0-dev.
ampmake build make VERSION=$USER clean-ampagent build-ampagent docker push appcelerator/ampagent:$USER for img in amplifier gateway agent ampbeat amp-prometheus; do docker tag appcelerator/${img):$VERSION appcelerator/${img}:$USER docker push appcelerator/${img}:$USER done
Short circuit the CLI and deploy the Cloudformation template directly. Go the AWS console, Cloudformation page, and create a new stack. Upload the template from examples/cluster/aws-swarm-asg.yml. Change the value of AMP Version to $USER.
Once the tests are done, delete the Cloudformation stack, and delete the tagged images on Docker hub.