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
Copy file name to clipboardExpand all lines: docs/jenkinsx/lighthouse-bitbucket.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,8 @@ See the docs for all the possible values[^5].
106
106
***gitKind: bitbucketserver**: the `kind` of git server, in this case `bitbucketserver`, because `bitbucket` refers to [Bitbucket Cloud](https://bitbucket.org/)
107
107
***gitName: bs**: the name for our gitserver configuration
108
108
***gitServer: http://bitbucket.openshift.example.com**: the url to our Bitbucket Server
109
+
***registry: docker.io**: when not using a Public Cloud provider, you have to specify the docker registry URL, in this case, Dockerhub (which is `docker.io`)
110
+
***dockerRegistryOrg: caladreas**: when the docker registry owner - in my case, `caladreas`- is different from the git repository owner, you have to specify this via `dockerRegistryOrg`
109
111
110
112
We also have to set the storage for at least the logs.
111
113
If we do not configure the storage for our logs, they will be assumed to be written to github pages of our application.
Copy file name to clipboardExpand all lines: docs/jenkinsx/rhos-311-minimal.md
+75-68Lines changed: 75 additions & 68 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,9 +86,11 @@ The current (as of March 2020) recommended way of installing Jenkins X, is via [
86
86
87
87
***provider: kubernetes**: Normally, this is set to your cloud provider. in order to stay close to Kubernetes itself and thus OpenShift, we set this to `kubernetes`
88
88
***registry: docker.io**: If you're on a public cloud vender, `jx boot` creates a docker registry for you (GCR on GCP, ACR on AWS, and so on), in this example we leverage Docker Hub (`docker.io`). This should be indicative for any self-hosted registry as well!
89
+
***dockerRegistryOrg: caladreas**: when the docker registry owner - in my case, `caladreas`- is different from the git repository owner, you have to specify this via `dockerRegistryOrg`
89
90
***secretStorage: local**: Thre recommended approach is to use the HashiCorp Vault integration, but that isn't supported on OpenShift
90
91
***webhook: prow**: This uses Prow for webhook management. In March 2020 the best option to use with GitHub. If you want to use Bitbucket [read my guide on jx with lighthouse & bitbucket](/jenkinsx/lighthouse-bitbucket/).
91
92
93
+
92
94
??? example "jx-requirements.yaml"
93
95
94
96
```yaml
@@ -104,6 +106,7 @@ The current (as of March 2020) recommended way of installing Jenkins X, is via [
In order to resolve the mismatch between the Docker registry owner and the Git repository owner, we need to change two things in our Jenkins X pipeline (`jenkins-x.yml`)[^8].
261
-
262
-
1. add an override for the Docker registry owner in the `jenkins-x.yml`, the pipeline of your application.
263
-
1. add an override for the `container-build` step of the `build` stage, for both the `release` and `pullrequest` pipelines.
264
-
265
-
Overriding the pipeline is done by specifying the stage to override under `pipelineConfig.overides`[^8][^9].
266
-
267
-
When you set `dockerRegistryOwner`, it overrides the value generated elsewhere.
268
-
269
-
```yaml
270
-
dockerRegistryOwner: caladreas
271
-
```
272
-
273
-
The only exception is where the image gets uploaded to via `Kaniko`.
It can happen that the docker registry owner is not the same for every application. If this is the case, the application will have to make a workaround after it is imported into Jenkins X (via `jx import` or `jx create quickstart`).
415
+
416
+
In order to resolve the mismatch between the default Jenkins X installation Docker registry owner and the application's owner, we need to change two things in our Jenkins X pipeline (`jenkins-x.yml`)[^8].
417
+
418
+
1. add an override for the Docker registry owner in the `jenkins-x.yml`, the pipeline of your application.
419
+
1. add an override for the `container-build` step of the `build` stage, for both the `release` and `pullrequest` pipelines.
420
+
421
+
Overriding the pipeline is done by specifying the stage to override under `pipelineConfig.overides`[^8][^9].
422
+
423
+
When you set `dockerRegistryOwner`, it overrides the value generated elsewhere.
424
+
425
+
```yaml
426
+
dockerRegistryOwner: caladreas
427
+
```
428
+
429
+
The only exception is where the image gets uploaded to via `Kaniko`.
0 commit comments