-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
The order of the containers generated at initialization in ecs-task-def.json is random #599
Comments
@yutaro0602 Thank you! I think it desirable to By the way, I did not suppose to modify definition files created by |
@fujiwara Currently, we are using ecspresso within the buildspecObject during the build time of CodePipeline. Furthermore, we're managing it with CDK. From the above background, we're currently operating in such a way that we mirror the current ESC configuration without preparing the default configuration file each time, and only make necessary changes (replacing images). I believe ecspresso is a fantastic OSS. I'll be attending the jaws-ug container department on the 8th, and if there's a chance to chat then, I'd appreciate it. |
The order of the containers generated at initialization in ecs-task-def.json is random, and it's proving to be problematic.
As shown below, I am replacing the image definitions within the taskdef.json file that is generated by 'ecspresso init', and then deploying it.
'jq \'.containerDefinitions[0].image = "\'${BACKEND_FULL_IMAGE_PATH}\'"\' ecs-task-def.json > temp.json && mv temp.json ecs-task-def.json',
'jq \'.containerDefinitions[1].image = "\'${FRONTEND_FULL_IMAGE_PATH}\'"\' ecs-task-def.json > temp.json && mv temp.json ecs-task-def.json',
I am operating in the order of the array, but the order in which these containers are returned is somewhat irregular. It would be extremely helpful if Ecspresso could output the containers in alphabetical order.
The text was updated successfully, but these errors were encountered: