aws / amazon-ecs-init

Amazon Elastic Container Service RPM
http://aws.amazon.com/ecs
Apache License 2.0
200 stars 118 forks source link

Add generic rpm packaging #389

Closed fenxiong closed 3 years ago

fenxiong commented 3 years ago

Summary

Add generic rpm packaging (one that is not specific to platform).

Implementation details

The changes include the following parts:

  1. 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:
  2. 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
  3. Makefile: 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: