You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 5, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/how-to-guides/Import-code/proc_importing_code.adoc
+33-2Lines changed: 33 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,7 +214,38 @@ For more information about devfile contents requirements, see the "What is outer
214
214
+
215
215
**Solution:** Select a predefined runtime type from the **Review and configure for deployment** view. Make sure you meet all of the {ProductName} <<repository requirements>> for the runtime you select, or configure your own <<custom build and deployment instructions>>.
216
216
217
+
=== Using registry.redhat.io base images for builds
218
+
219
+
Retrieve the Red Hat Container Registry token and configure your application to use this token. Using this token improves the build process of your application.
220
+
221
+
.Procedure
222
+
223
+
Retrieve the Red Hat Container Registry token by following these steps:
224
+
225
+
. Go to link:https://access.redhat.com/terms-based-registry/#/[Registry service account].
226
+
. Create a new Registry service account by selecting *New Service Account*.
227
+
. Retrieve the Registry service account token as a “Docker Configuration”:
228
+
```
229
+
{
230
+
"auths": {
231
+
"registry.redhat.io": {
232
+
"auth": "MTEwNzAxOTl8-redacted-c2Jvc2U6ZZlNDQ="
233
+
}
234
+
}
235
+
}
236
+
```
237
+
.Procedure
238
+
239
+
Configure your application to use the Red Hat Container Registry token by following these steps:
240
+
241
+
. Go to *Component Settings*.
242
+
. Select *Create new build secret*.
243
+
. In the *Create new build secret* modal, add the registry.redhat.io token to be used as a pull secret:
244
+
.. In the *Key* input field, enter *.dockerconfigjson*.
245
+
.. In the *Select or Enter Name* input field, enter *registry-redhat.io*.
246
+
.. Input the Registry Service account token and select *Create*.
247
+
.. From your command line, run `oc secrets link appstudio-pipeline registry-redhat-io`.
248
+
217
249
[role="_additional-resources"]
218
250
.Additional resources
219
-
For information about importing and configuring code to {ProductName} using the CLI, see link:https://redhat-appstudio.github.io/docs.stonesoup.io/Documentation/main/getting-started/getting_started_in_cli/#getting-started-in-the-cli[Getting started in the CLI
220
-
].
251
+
For information about importing and configuring code to {ProductName} using the CLI, see link:https://redhat-appstudio.github.io/docs.stonesoup.io/Documentation/main/getting-started/getting_started_in_cli/#getting-started-in-the-cli[Getting started in the CLI].
0 commit comments