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

fix: get URL from credentials when building the Dockerfile #764

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HiranmayaGundu
Copy link

@HiranmayaGundu HiranmayaGundu commented May 2, 2024

When creating a container using a docker image from a private repository, testcontainers would fail to auth correctly, and would never fetch the image. i.e., FROM gcr.io/<image> would fail. This is not a problem when running the image directly. After a bit of digging, it seems like serverURL was being set as undefined, and it seems like the fix is to use the credentials object that has the server list.

I'm not sure how to go about adding a test for this, it needs a Dockerfile to a private repository that the project has access to.

Copy link

netlify bot commented May 2, 2024

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit df46b55
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-node/deploys/6633d6eeb4400100083ab303
😎 Deploy Preview https://deploy-preview-764--testcontainers-node.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@HiranmayaGundu HiranmayaGundu changed the title fix: get URL from credentials fix: get URL from credentials when building the Dockerfile May 2, 2024
@HiranmayaGundu
Copy link
Author

HiranmayaGundu commented May 2, 2024

I'm not entirely sure if this is the correct fix -- just that it fixed my issue when I ran a test. I'm having difficulty running the entire suite locally. None of the tests failed at pulling an image fwiw

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

Successfully merging this pull request may close these issues.

None yet

1 participant