-
Notifications
You must be signed in to change notification settings - Fork 37
Deploying Plugins on ECS and to overview local
Adam Hooper edited this page Jan 17, 2018
·
2 revisions
So you edited a plugin. How do you push your change everywhere?
To deploy your plugin, you need to publish it.
- Pick a version number: increment the latest one using semver. Update
PATCH
for bugfixes andMINOR
for new features. LeaveMAJOR
at1
: if it's higher than1
, this guide is obsolete! - Each plugin has a
./release
script. Call./release 1.MINOR.PATCH
, substituting in your new version number.
The ./release
script will:
- Build from
Dockerfile
, run integration tests, and abort on failure. - Update the project's code to match the new version (such as in
package.json
) and commit the fix. -
git push
to master. - Tag the project
v1.MINOR.PATCH
andgit push
the tag.
Assuming you configured Docker Hub correctly, it will spot your git pushes and build new images with tags latest
, 1
, 1.MINOR
and 1.MINOR.PATCH
.
- Check out overview-local.
- Edit
config/overview.yml
: update the version number of your plugin. - Commit the change and push it.
We don't run integration tests here: we rely upon the plugin's own integration tests.
This is ... a pain. "Fargate" makes these steps simpler, but we've already reserved an instance. We hope to update these instructions once Amazon releases "EKS" because we suspect it will be even better than Fargate.
- Log into AWS Management Console
- Navigate to
ECS
(Elastic Container Service) - Find the latest
Task Definition
for your plugin. ClickCreate New Revision
. - Scroll down until you find the "container" section of the task. Click it. Change the image's version number in the container definition's popup.
- Close the popup and click
Create
to create a new Task Definition. - Navigate to the plugin's
Service
(in theplugins2
cluster). - Click
Update
(to update the service) - Choose the new
Task Definition
. - Click
Next Step
,Next Step
,Next Step
,Update Service
- Wait for AWS to update things. You may need to go to the previously-running
Task
andStop
it to make room for the new one.