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

Removed runc dependency #282

Merged
merged 3 commits into from
Oct 6, 2021
Merged

Conversation

jefchien
Copy link
Contributor

@jefchien jefchien commented Oct 1, 2021

Description of the issue

The agent has a dependency on github.com/opencontainers/runc v1.0.0-rc10, which requires an upgrade. While the version could be bumped up to v1.0.0-rc95, that would affect the dependency on github.com/google/cadvisor v0.36.0, which depends on v1.0.0-rc10. Without updating the cadvisor dependency, which would require more evaluation and incremental changes, the next best step would be to remove the local dependency.

See #254 for more details.

Description of changes

Removed dependency on runc in userutil_linux.

Replaced with golang os/user lookup and version/arch specific setUid/setGid.

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Tests

Tested on EC2 linux instance. Added unit test for getGroupIds.

Replaced with golang os/user lookup and version/arch specific setUid/setGid.
@sethAmazon
Copy link
Contributor

sethAmazon commented Oct 5, 2021

Should we wait on this until we can upgrade to using 1.17 for release?

@jefchien
Copy link
Contributor Author

jefchien commented Oct 5, 2021

I don't really think there's a need to wait. The only difference would be the inclusion of the two 1.15 specific files, which can easily be removed once 1.15 is no longer supported.

Copy link
Contributor

@jhnlsn jhnlsn left a comment

Choose a reason for hiding this comment

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

lgtm

@jhnlsn jhnlsn merged commit e9190ce into aws:master Oct 6, 2021
@jefchien jefchien deleted the remove-runc-dependency branch October 6, 2021 14:35
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.

4 participants