-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
[Enhancement]: Resolve variables (ARG
s) during Docker image build
#980
Comments
Resolving variables ( testcontainers-dotnet/src/Testcontainers/Images/DockerfileArchive.cs Lines 69 to 115 in 604ae2c
|
I am missing the parsing of "ARG" as well. I use Testcontainers to smoke test a rather complicated Dockerfile which is configured by builds-args/ ARGS. At the moment I manually maintain a second Dockerfile just for the Testcontainers E2E test. |
Problem
Testcontainers for .NET cannot resolve variables (
ARG
s) during the Docker image build process. Currently, Testcontainers does not pull base images in advance that utilize variables. Hence, if the images are not already present on the host, they will not be pulled, causing the Docker image build process to fail.Dockerfile
with intermediate layer (regression works with3.3.0
) #972Solution
To pull base images that utilize variables in advance too, Testcontainers needs to have the capability to resolve the default values and build arguments of variables.
Benefit
Developers will not be required to manually pull the images beforehand, enabling a more streamlined Docker image building and testing configuration.
Alternatives
Pull images manually beforehand.
Would you like to help contributing this enhancement?
Yes
The text was updated successfully, but these errors were encountered: