mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
RegisterTaskDefinition already parsed containerDefinitions[].command and .entryPoint, and EcsContainerManager honoured both when launching the container — but containerDefinitionNode never rendered them, so DescribeTaskDefinition silently omitted both keys. The practical consequence is data loss on the describe -> register round trip that tooling relies on to cut a new revision: the overrides disappear from the JSON and the new revision falls back to the image's default entrypoint. The container still starts, so nothing surfaces until whatever the entrypoint was meant to do turns out not to have happened. Serialize both sparsely, matching the surrounding portMappings / mountPoints style, so definitions that set neither stay byte-identical. Tests: a parse+serialize unit test in the EcsJsonHandlerVolumesTest style (round trip plus an absent-stays-absent guard), and an end-to-end register -> describe case in EcsIntegrationTest. Refs #2445