Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init agent integration al1 #3153

Merged

Conversation

lydiafilipe
Copy link
Contributor

Summary

This pr is an initial commit to integrate ecs init as-is and ecs agent for our AL1 versions. This follows a similar approach to #3141, which was done for our current latest versions.
Implementation details

Created clones of both the init and agent packages.

Removed/changed some of the files that would conflict in the init package and committed the changes:

git clone --branch v1.51.0-1 https://github.com/aws/amazon-ecs-init.git
git checkout -b initAgentPreMerge
git remote rm origin
git rm .github/ISSUE_TEMPLATE.md
git rm .github/PULL_REQUEST_TEMPLATE.md
git rm .gitignore
git mv Makefile init_Makefile
git mv CHANGELOG.md INIT_CHANGELOG.md
git rm NOTICE
git mv README.md INIT_README.md
git rm THIRD-PARTY
git rm scripts/analyze-cover-profile
git rm CODE_OF_CONDUCT.md
git rm CONTRIBUTING.md
git commit -a -m "file changes for merge"
git gc --aggressive

Created initAgentIntegrationAL1 branch in upstream from the 1.51.0 tag. Then ran the following in the agent package to merge init:

git clone --branch v1.51.0 https://github.com/aws/amazon-ecs-agent.git
git checkout -b initAgentIntegrationAL1
git remote add init ~/go/src/repoclones/amazon-ecs-init
git fetch init --tags
git pull init initAgentPreMerge --allow-unrelated-histories

Pushed to #3151 branch.

The static checks currently fail for the agent version tagged at 1.51.0, as evidenced by this pr, so for this pr we also removed the static check from the worflow.
Description for the changelog

Base changes to integrate ECS Init into ECS Agent for AL1
Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

petderek and others added 30 commits March 29, 2018 10:48
Tests were complaining because of a mismatch.
* No longer pull godep
* Start pulling golint
Bundle ECS Agent tarball in package
The process executed by the ecs.service is going to remain running to
supervise the ECS agent and handles lifecycle with the Exec*
directives and also internally where required (eg: for agent upgrade
functionality).
Add ecs systemd unit for al2 and update man page
Revert "Add ecs systemd unit for al2"
Update dev to reverted master
This was inadvertently merged directly into the master and
needs to be restaged.

This reverts commit 52d5792.
amazon-ecs-bot and others added 26 commits November 25, 2020 23:41
update ecs-init to add bind mounts to the ecs-agent containter for exec-for-ECS capability detection. For an EC2 instance to be considered as exec-enabed, the instance needs to have resources required by SSM.

commits:
* add bind mounts for exec capability detection
* update comments
* make constants global for unit tests
* add ut, initialize slice as nil
* simplify function_ptr, fix UTs
* add global function and update tests
* fix tests unrelated to exec
* validate HostConfig.Binds with exec binds
* update capability name, add config to agent binds
* update container root directory, change var name
* shorten names, remove capability prefix
Copy link
Contributor

@YashdalfTheGray YashdalfTheGray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving, we are pulling in the files and making sure they all work later.

Copy link
Member

@fierlion fierlion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a redo of your previous pr (which I already approved)
Approved.

@lydiafilipe lydiafilipe merged commit f35b199 into aws:initAgentIntegrationAL1 Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.