Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Include amazon-ecs-volume-plugin in Debian and Generic RPM Packages #433

Closed
wants to merge 3 commits into from
Closed

Include amazon-ecs-volume-plugin in Debian and Generic RPM Packages #433

wants to merge 3 commits into from

Conversation

dennisconrad
Copy link
Contributor

Summary

This PR ensures the amazon-ecs-volume-plugin binary and startup scripts are included in the Debian and generic RPM packages built via the Makefile.

Implementation details

Modify Debian and generic RPM build scripts and Makefile.

Testing

Tested on Ubuntu 18.04 Bionic and Red Hat Enterprise Linux 8.4.

New tests cover the changes: no

Description for the changelog

Include amazon-ecs-volume-plugin in Debian and Generic RPM Packages

Licensing

This contribution is under the terms of the Apache 2.0 License: yes

@dennisconrad
Copy link
Contributor Author

Fixes #431

@mssrivas
Copy link
Contributor

Hi, Could you elaborate on testing performed for this?

@dennisconrad
Copy link
Contributor Author

I am not quote sure how to answer this for changes to the packaging of a product...

We are running Ubuntu in our environment, and I copied the existing amazon-ecs-volume-plugin.service and amazon-ecs-volume-plugin.socket systemctl configuration files into the generic-deb directories and ensured the amazon-ecs-volume-plugin binary is included in the resulting package. I checked that all required files are included in the generated .deb packaged by running dpkg -c <package>, then installed the package, and mounted an EFS file system that requires IAM permissions and transitEncryption to be mounted inside a docker container running on the Ubuntu system (which requires the amazon-ecs-volume-plugin). This is running in production for 1+ months now in our organisation.

I followed a similar approach with the generic RPM package, except that I ran rpm -qpl <package> to check the included files and installed it on a Red Hat Enterprise Linux 8.4 and mounted an EFS file system as above. I have no long-term results for these since, as mentioned above, we are running Ubuntu 18.04 and no Red Hat in our environment.

@gunzy83
Copy link

gunzy83 commented Sep 13, 2021

Thanks for the change. I have built the Debian package for 18.04 as well and we have included this in our AMI and we have had this running in ops environments for about a month and production for about a week. We have only needed EFS in our ops environment so far but we build one AMI for all environments so the ECS agent bootstrapping definitely works reliably.

@dennisconrad
Copy link
Contributor Author

dennisconrad commented Oct 7, 2021

@mssrivas Do you require anything else from me? You keep releasing new versions which we then manually need to patch to deploy it to our servers.

@@ -125,8 +125,11 @@ BUILDROOT/ecs-agent.tar:

.generic-rpm-done:
./scripts/update-version.sh
curl -O ${AGENT_URL}
Copy link
Contributor

Choose a reason for hiding this comment

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

why have you added this curl command here?

Copy link
Contributor

Choose a reason for hiding this comment

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

the reason i ask is because my understanding is that the rpm build already knows how to grab this file by referencing the "Source3" and "Source4" in the rpm spec file: https://github.com/aws/amazon-ecs-init/pull/433/files#diff-db47b4ac84229ffbd6d0d4460faf19f18306e70fc7cf7758f3e1197dbdf3b658R40

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @sparrc,

Thank you for your comment! Unless someone else can fix the generic RPM build, I am going to close this PR and open a new one like my original one (#432) with only the generic deb changes. I see that there have been quite a few changes to the amazon-linux RPM build since opening this one, but I unfortunately do not have the time to read any deeper into the RPM build system.

@viccsjain
Copy link

Is this PR merged and released?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants