Skip to content

Commit

Permalink
ci(fix): Possibly fix task def repeated port '8001' mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
topher-lo committed Mar 18, 2024
1 parent 6684237 commit 2fd305c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aws/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,17 @@ def __init__(self, scope: Construct, id: str, **kwargs) -> None:
image=ecs.ContainerImage.from_asset(
directory=".",
file="Dockerfile",
build_args={"API_MODULE": "tracecat.runner.app:app"},
build_args={"API_MODULE": "tracecat.runner.app:app", "PORT": "8001"},
),
health_check=ecs.HealthCheck(
command=["CMD-SHELL", "curl -f http://localhost:8000"],
command=["CMD-SHELL", "curl -f http://localhost:8001"],
interval=Duration.seconds(120),
retries=5,
start_period=Duration.seconds(60),
timeout=Duration.seconds(10),
),
memory_limit_mib=512,
environment={"API_MODULE": "tracecat.runner.app:app"},
environment={"API_MODULE": "tracecat.runner.app:app", "PORT": "8001"},
secrets=runner_secrets,
)
runner_container.add_port_mappings(ecs.PortMapping(container_port=8001))
Expand Down

0 comments on commit 2fd305c

Please sign in to comment.