Omit the changelog section since the code will not be in main branch in a while. they can be added later when ready to merge to main branch.
Omit the volume plugin for now. They can be added later if needed. currently I have not tested the plugin.
packaging/generic-rpm/ecs.service: the systemd service file. this is basically the same as the one for AL, except i added "/var/lib/ecs/ecs.config" as another optional environment file, which is where we put "ECS_EXTERNAL" env and allows ecs init to use it in https://github.com/aws/amazon-ecs-init/pull/383
Makefile: added a target generic-rpm to build the rpm.
Testing
Built the rpm and tested it on:
Centos 7
Centos 8
RHEL 7
Fedora 32
opensuse/Tumbleweed
Verified that the service runs fine on these platforms.
Description for the changelog
N/A
Licensing
This contribution is under the terms of the Apache 2.0 License:
Summary
Add generic rpm packaging (one that is not specific to platform).
Implementation details
The changes include the following parts:
packaging/generic-rpm/ecs-init.spec
: the rpm spec file used to built the rpm. This is written based on what we have on AL https://github.com/fenxiong/amazon-ecs-init/blob/master/packaging/amazon-linux-ami/ecs-init.spec, with the following notable differences:packaging/generic-rpm/ecs.service
: the systemd service file. this is basically the same as the one for AL, except i added "/var/lib/ecs/ecs.config" as another optional environment file, which is where we put "ECS_EXTERNAL" env and allows ecs init to use it in https://github.com/aws/amazon-ecs-init/pull/383Makefile
: added a target generic-rpm to build the rpm.Testing
Built the rpm and tested it on:
Verified that the service runs fine on these platforms.
Description for the changelog
N/A
Licensing
This contribution is under the terms of the Apache 2.0 License: