From 907e5183e0b4ea7157578aeaead9aa4393101e47 Mon Sep 17 00:00:00 2001 From: dgarbartopti <156467722+dgarbartopti@users.noreply.github.com> Date: Tue, 16 Apr 2024 05:04:28 -0500 Subject: [PATCH] let `eb local run` generate multi-service docker-compose files partially fixes #58, but ideally a full fix would just copy a docker-compose.yml at the root if one existed this just fixes improperly dumping multiple services at the root of the docker-compose and failing validation also it ideally would work with the "ECS" image and not just "Multi-container Docker" --- ebcli/containers/compose.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ebcli/containers/compose.py b/ebcli/containers/compose.py index ce1302f8d..8f2e3fc9d 100644 --- a/ebcli/containers/compose.py +++ b/ebcli/containers/compose.py @@ -18,6 +18,7 @@ AWSEB_LOGS = 'awseb-logs-' +COMPOSE_SERVICES_KEY = 'services' COMPOSE_CMD_KEY = 'command' COMPOSE_ENV_KEY = 'environment' COMPOSE_IMG_KEY = 'image' @@ -76,7 +77,7 @@ def compose_dict(dockerrun, docker_proj_path, host_log, high_priority_env): for definition in definitions: _add_service(services, definition, volume_map, host_log, high_priority_env) - return services + return {COMPOSE_SERVICES_KEY: services} def _add_service(services, definition, volume_map, host_log, high_priority_env):