Open moritonal opened 1 year ago
Ah, xray uses the scratch image, which means without a shell there's no expansion making this a bit harder.
Hi @moritonal - is the --bind
arg not sufficient for what you're looking for? https://github.com/aws/aws-xray-daemon#daemon-usage-command-line-args
Hi
Looking to use this as a side-car in an ECS setup and might just be missing something so feel free to refute.
The port here is hard-coded to 2000, and my Rails app is set to port 2000 as well. Normally a simple fix is to map the container port to a different host port, but in CDK ECS I cannot set the
hostPort
to anything different thancontainerPort
.I'll put together a PR that swaps it over to using environment vars, but I also might just be missing something obvious.
All the best
Tom