Skip to content
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

Cannot change port #189

Open
moritonal opened this issue Feb 14, 2023 · 2 comments
Open

Cannot change port #189

moritonal opened this issue Feb 14, 2023 · 2 comments

Comments

@moritonal
Copy link

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 thehostPort to anything different than containerPort.

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

@moritonal
Copy link
Author

Ah, xray uses the scratch image, which means without a shell there's no expansion making this a bit harder.

@willarmiros
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants