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
* Docs: preview.env instructions
The instructions present as comments in the preview.env file are not
sufficient for a new member trying to set up their development
environment for the first time.
Add a section in the documentation that explains what needs to be set in
preview.env and how to set up the prerequisites.
Signed-off-by: Adam Cmiel <[email protected]>
* Docs: how to verify that your dev cluster works
Signed-off-by: Adam Cmiel <[email protected]>
* Docs: how to test code changes
Signed-off-by: Adam Cmiel <[email protected]>
* preview.env: link the relevant documentation
Signed-off-by: Adam Cmiel <[email protected]>
* preview.env: mention not to set the PaC secret
Signed-off-by: Adam Cmiel <[email protected]>
* Document how to render the docs for your fork
Signed-off-by: Adam Cmiel <[email protected]>
---------
Signed-off-by: Adam Cmiel <[email protected]>
Copy file name to clipboardexpand all lines: README.md
+4
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
For the full documentation click [here](https://redhat-appstudio.github.io/infra-deployments/docs/introduction/about.html)
4
4
5
+
When working on documentation updates, you may want to enable GitHub pages for your forked repository,
6
+
see the [GitHub docs: Publishing from a branch](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-from-a-branch).
7
+
The site will be available at `https://<username>.github.io/<repository>` (`https://<username>.github.io/infra-deployments` if you didn't rename yor fork).
8
+
5
9
This repository is an initial set of Argo-CD-based deployments of StoneSoup components to a cluster, plus a script to bootstrap Argo CD onto that cluster (to drive these Argo-CD-based deployments, via OpenShift GitOps).
6
10
7
11
This repository is structured as a GitOps monorepo (e.g. the repository contains the K8s resources for *multiple* applications), using [Kustomize](https://kustomize.io/).
Copy file name to clipboardexpand all lines: docs/development/deployment.md
+202-1
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,8 @@ Preview mode works in a feature branch, apply script which creates new preview b
39
39
40
40
Steps:
41
41
42
-
1. Copy `hack/preview-template.env` to `hack/preview.env` and update new file based on instructions. File `hack/preview.env` should never be included in commit.
42
+
1. Copy `hack/preview-template.env` to `hack/preview.env` and update new file based on [instructions](#previewenv-instructions).
43
+
File `hack/preview.env` should never be included in commit.
43
44
44
45
2. Work on your changes in a feature branch
45
46
@@ -60,6 +61,206 @@ If you want to reset your environment you can run the `hack/util-update-app-of-a
60
61
61
62
Note running these scripts in a clone repo will have no effect as the repo will remain `https://github.com/redhat-appstudio/infra-deployments.git`
62
63
64
+
### preview.env instructions
65
+
66
+
I want a development deployment of StoneSoup where I can:
67
+
68
+
* Run simple builds
69
+
* Onboard a repository to Pipelines as Code
70
+
71
+
What environment variables do I need to set in `preview.env` before I run the preview script?
Replace this reference with a reference to your fork and the commit you would like to test. Create
255
+
a new branch, commit the changes and run `hack/preview.sh`.
256
+
63
257
## Optional: OpenShift Local Post-Bootstrap Configuration
64
258
65
259
Even with 6 CPU cores, you will need to reduce the CPU resource requests for each StoneSoup application. Either run `./hack/reduce-gitops-cpu-requests.sh` which will set resources.requests.cpu values to 50m or use `kubectl edit argocd/openshift-gitops -n openshift-gitops` to reduce the values to some other value. More details are in the FAQ below.
0 commit comments