-
Notifications
You must be signed in to change notification settings - Fork 23
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
Obtaining docker images from Red Hat registry #193
Comments
I would not bind login to What about to use our own |
It can also has the public interface for login/logout exposed. EDIT: Rule is in my opinion preffered because it takes care about the lifecycle and cleans up after itself.
+1. JSON sounds like a great idea. Another problem is if we want to include this test in "run all tests" profile. |
Looks like there issue using config.json and podman (containers/podman#4357). Docker login will be more robust then. |
Here is token for
|
Is there a known way how to obtain product container images from Red Hat container registry? The authentication is needed to pull these images.
Motivation
This is needed because I want to replace Keycloak project image by RH SSO image in integration test.
Main problem is how and where to obtain credentials for this registry, how to use them and if we really want it.
Suggested implementation
Prerequisite is that testsuite is supplied the credentials as a configuration property (system property).
Authentication itself will be implemented as a JUnit's
ExternalResource
which we can wrap around existingDocker
rule to ensure working authentication during test run using rule chain:before
is run after which the docker command can pull images from Red Hat registry.docker login [CREDENTIALS] [SERVER]
Docker
'sbefore
is run and container image is pulled from Red Hat docker registry and started.Docker
'safter
is run and container is stopped and removed.after
is run and user is logged out from the Red Hat registry:docker logout [SERVER]
Do you have some tips? Do you know if someone solved this before?
The text was updated successfully, but these errors were encountered: