Skip to content

Commit fa62878

Browse files
Merge pull request #1227 from DavidHurta/extend-dev-building-and-publishing-release-docs
NO-JIRA: Extend the development documentation regarding building and publishing a payload image
2 parents 9c2d6c9 + e467b5a commit fa62878

File tree

1 file changed

+58
-1
lines changed

1 file changed

+58
-1
lines changed

docs/dev/README.md

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,64 @@ that will contain all manifests from an existing release payload and the develop
4848
```console
4949
$ oc adm release new --from-release=quay.io/openshift-release-dev/ocp-release:4.11.18-x86_64 \
5050
--to-image-base=${REPO}/origin-cluster-version-operator:latest \
51-
--image=${REPO}/ocp-release:latest
51+
--to-image=${REPO}/ocp-release:latest
52+
```
53+
54+
Note that the pull secret for the `quay.io/openshift-release-dev/ocp-release` container image can be acquired [here](https://console.redhat.com/openshift/install/pull-secret).
55+
56+
In case you want to utilize different credentials for the same container image registry domain, for example,
57+
one set of credentials for the existing release image and one for a personal location where to upload the new release
58+
image in the same container image registry domain, the following unsupported methods are possible at the moment.
59+
Note that these methods may not be supported or functional when used with other container tools.
60+
61+
The main idea is to modify the used [authentication file](https://docs.podman.io/en/latest/markdown/podman-login.1.html#authfile-path)
62+
and specify a second `auth` entry that has a specified port or path, which acts as a new entry for which different
63+
credentials can be specified.
64+
65+
Given an authentication file with a specified path:
66+
67+
```json
68+
{
69+
"auths": {
70+
"quay.io/username": {
71+
"auth": "token to be used when accessing the username's namespace"
72+
},
73+
"quay.io": {
74+
"auth": "broad token to be used when the quay.io host is specified"
75+
}
76+
}
77+
}
78+
```
79+
80+
Build and publish a release image:
81+
82+
```console
83+
$ oc adm release new --from-release=quay.io/openshift-release-dev/ocp-release:4.11.18-x86_64 \
84+
--to-image-base=quay.io/username/origin-cluster-version-operator:latest \
85+
--to-image=quay.io/username/ocp-release:latest
86+
```
87+
88+
Given a specified port in the authentication file:
89+
90+
```json
91+
{
92+
"auths": {
93+
"quay.io:443": {
94+
"auth": "broad token to be used when the quay.io host and the 443 port are specified"
95+
},
96+
"quay.io": {
97+
"auth": "broad token to be used when the quay.io host is specified"
98+
}
99+
}
100+
}
101+
```
102+
103+
Build and publish a release image by specifying the port accordingly, for example:
104+
105+
```console
106+
$ oc adm release new --from-release=quay.io/openshift-release-dev/ocp-release:4.11.18-x86_64 \
107+
--to-image-base=quay.io:443/${NAMESPACE}/origin-cluster-version-operator:latest \
108+
--to-image=quay.io:443/${NAMESPACE}/ocp-release:latest
52109
```
53110

54111
## Testing CVO

0 commit comments

Comments
 (0)