You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose PortForwardingContainer from internal to public so that configuration can be made on a instance, and split Instance from Build so that builder can be preconfigured
Expose OptionsBuilder via ExposeHostPortsAsync
Add new endpoint that allows for ConfigureExposeHostPorts
Benefit
I can redirect all the logs and monitor what is happening via logger of my choice
Alternatives
I tried to copy PortForwardingContainer and all necessary classes from the source repository and use them with configuration instead of TestcontainersSettings.ExposeHostPortsAsync but it doesn't seem to be working.
sshd image is created, but /etc/hosts is not modified and there is lack of documentation or code reference on why is that. The only part I changed is to expose the builder part of the container.
Would you like to help contributing this enhancement?
Yes
The text was updated successfully, but these errors were encountered:
Thank you for creating the issue. Currently, we are not exposing the builder or allowing developers to configure it. Have you tried your suggestion locally? Do you have a POC?
Problem
I want to configure
PortForwardingContainer
so that I can add custom logger to the TestContainer that is used byExposeHostPortsAsync
.Current code:
Expected code:
Solution
Proposed solutions:
PortForwardingContainer
frominternal
topublic
so that configuration can be made on a instance, and split Instance from Build so that builder can be preconfiguredOptionsBuilder
viaExposeHostPortsAsync
ConfigureExposeHostPorts
Benefit
I can redirect all the logs and monitor what is happening via logger of my choice
Alternatives
I tried to copy
PortForwardingContainer
and all necessary classes from the source repository and use them with configuration instead ofTestcontainersSettings.ExposeHostPortsAsync
but it doesn't seem to be working.sshd image is created, but /etc/hosts is not modified and there is lack of documentation or code reference on why is that. The only part I changed is to expose the builder part of the container.
Would you like to help contributing this enhancement?
Yes
The text was updated successfully, but these errors were encountered: