Issue 150#151
Conversation
|
🚀 Preview Deployment Success! View your live changes here: https://edeb0a3e.openshift-examples.pages.dev\n\nUploading... (352/507) 🌎 Deploying... |
rbo
left a comment
There was a problem hiding this comment.
That's an awesome overview. Some tiny changes. ;-)
| Paste the content in the file pull-scret. Then: | ||
|
|
||
| `cat ./pull-secret | jq . > $(pwd)/pull-secret.json` | ||
|
|
||
| Replace the existing `auth.json` file in $XDG_RUNTIME_DIR/containers/ | ||
|
|
||
| ```code | ||
| sudo mv pull-secret.json $XDG_RUNTIME_DIR/containers/auth.json | ||
| ``` | ||
|
|
||
| Next up is to generate the base64-encoded user name and password or token for your mirror registry by running the following command: | ||
|
|
||
| `echo -n '<user_name>:<password>' | base64 -w0` | ||
|
|
||
| For <user_name> and <password>, specify the user name and password that you configured for your registry. | ||
|
|
||
| Example: | ||
|
|
||
| `echo -n 'init:r3dh4t1!' | base64 -w0` | ||
|
|
||
| Edit the JSON file and add a section that describes your registry to it: | ||
|
|
||
| ```json | ||
| "auths": { | ||
| "rguske-rhel9-disco-bastion.rguske.coe.muc.redhat.com:8443": { | ||
| "auth": "aW5pdDpyM2RoNHQxIQ==", | ||
| "email": "rguske@redhat.com" | ||
| }, | ||
| "cloud.openshift.com": { | ||
|
|
||
| [...] | ||
| ``` |
There was a problem hiding this comment.
🤔 oc-mirror, meanwhile, look into $XDG_RUNTIME_DIR/containers/auth.json and not in ~/.docker/config.json ?
A much easier way to adjust the auth.json
cp pull-secretc.json $XDG_RUNTIME_DIR/containers/auth.json
podman login --authfile $XDG_RUNTIME_DIR/containers/auth.json --username .. rguske-rhel9-disco-bastion.rguske.coe.muc.redhat.com:8443
I know we have this steps in the docs. I find that very error-prone, though.
There was a problem hiding this comment.
oc-mirror, meanwhile, look into $XDG_RUNTIME_DIR/containers/auth.json and not in ~/.docker/config.json ?
There's no ~/.docker/config.json in this doc. I don't know where you've seen it.
Mine is from our docs!
Closes: openshift-examples#150 Signed-off-by: Robert Guske <robert.guske@gmail.com>
|
🚀 Preview Deployment Success! View your live changes here: https://bbcf36c6.openshift-examples.pages.dev\n\nUploading... (502/507) 🌎 Deploying... |
Update Disconnected Cluster Installation.