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
3. Clone the repository, and open a terminal in the base of this project.
44
44
4. Run the command `npm install` to install all the dependencies.
45
45
46
-
## Building
46
+
## Building apps/koku-ui-hccm
47
47
```
48
48
npm build
49
49
```
50
50
51
-
## Testing
51
+
## Testing apps/koku-ui-hccm
52
52
```
53
53
npm test
54
54
```
@@ -57,7 +57,7 @@ npm test
57
57
58
58
Note that this approach currently supports the Insights stage and prod environments.
59
59
60
-
1. Start development server
60
+
1. Start development server in apps/koku-ui-hccm
61
61
```
62
62
npm start
63
63
```
@@ -82,50 +82,50 @@ Refer to the [serving files locally][serving-files-locally] section of cloud ser
82
82
make dev-static-node
83
83
```
84
84
85
-
2. Start development server in Koku UI repo
85
+
2. Start development server for Koku UI in apps/koku-ui-hccm
86
86
```
87
87
npm start:csb
88
88
```
89
89
90
-
### Running Koku UI with local Koku microfrontend (MFE)
90
+
### Running Koku UI with local ROS UI
91
91
92
-
Refer to the [koku-ui-mfe README][koku-ui-mfe-readme] for more details
92
+
Refer to the [koku-ui-ros README][koku-ui-ros-readme] for more details
93
93
94
-
1. Start development server in Koku MFE repo
94
+
1. Start development server in apps/koku-ui-ros
95
95
```
96
96
npm start:static
97
97
```
98
98
99
-
2. Start development server in Koku UI repo
99
+
2. Start development server in apps/koku-ui-hccm
100
100
```
101
-
npm start:mfe
101
+
npm start:ros
102
102
```
103
103
104
-
### Running Koku UI with local Koku microfrontend (MFE) and Cloud Services Backend
104
+
### Running Koku UI with local ROS UI and Cloud Services Backend
105
105
106
-
Refer to the [serving files locally][serving-files-locally] section of cloud services config and the [koku-ui-mfe README][koku-ui-mfe-readme] for more details
106
+
Refer to the [serving files locally][serving-files-locally] section of cloud services config and the [koku-ui-ros README][koku-ui-ros-readme] for more details
107
107
108
108
1. Serve files locally from Cloud Services Backend repo
109
109
```
110
110
make dev-static-node
111
111
```
112
112
113
-
2. Start development server in Koku MFE repo
113
+
2. Start development server in apps/koku-ui-ros
114
114
```
115
115
npm start:static
116
116
```
117
117
118
-
3. Start development server in Koku UI repo
118
+
3. Start development server in apps/koku-ui-hccm
119
119
```
120
-
npm start:csb:mfe
120
+
npm start:csb:ros
121
121
```
122
122
123
123
## Running local instances of Koku UI and Koku API
124
124
#### Koku UI
125
125
126
126
Note that this approach currently supports the Insights stage and prod environments.
127
127
128
-
1. Start development server
128
+
1. Start development server in apps/koku-ui-hccm
129
129
```
130
130
npm start
131
131
```
@@ -209,7 +209,7 @@ This [RELEASE][release-doc] doc describes how to release Koku UI to each staging
Copy file name to clipboardExpand all lines: apps/koku-ui-hccm/RELEASE.md
+12-35Lines changed: 12 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,58 +1,36 @@
1
1
# Releasing Koku UI
2
2
3
-
This doc describes how to release Koku UI to each staging environment. Note that this should be done in order for testing purposes; stage-stable, prod-beta, and finally prod-stable
3
+
This doc describes how to release Koku UI to each staging environment. Note that this should be done in order for testing purposes.
4
4
5
5
## Release script
6
6
7
7
The release script creates a PR with a unique SHA, used for a namespace \`ref\` in the app-interface repo. The script also ensures that code is always pulled from the correct branches. For example, we always:
8
8
9
-
1. Pull from master when pushing to stage-stable
10
-
2. Pull from stage-stable when pushing to prod-beta
11
-
3. Pull from prod-beta when pushing to prod-stable
9
+
1. Pull from master when pushing to prod-hccm
12
10
13
-
Please allow the PR to build successfully and merge before running the script again for the next branch.
11
+
Note: Pushing to master automatically deploys to the stage.
14
12
15
-
### Release to stage-stable
13
+
Please allow the PR to build successfully and merge before running the script again.
16
14
17
-
```
18
-
sh scripts/release-branch.sh -s
19
-
```
20
-
21
-
### Release to prod-beta
22
-
23
-
```
24
-
sh scripts/release-branch.sh -b
25
-
```
26
-
27
-
### Release to prod-stable
15
+
### Release to prod-hccm
28
16
29
17
```
30
18
sh scripts/release-branch.sh -p
31
19
```
32
20
33
21
## Deployment
34
22
35
-
After all PRs have been merged, update the \`hccm-frontend\` resource in https://gitlab.cee.redhat.com/service/app-interface/-/blob/master/data/services/insights/hccm/deploy-clowder.yml
23
+
After all PRs have been merged, update the \`koku-ui-hccm\` resource in https://gitlab.cee.redhat.com/service/app-interface/-/blob/master/data/services/insights/hccm/deploy-clowder.yml
36
24
37
25
Use the latest commit of each branch to update namespaces \`ref\` in the app-interface repo. Don't use a merge commit, SHAs must be unique when images are created for each branch.
ref: c7f6c75fd1e895afbc05a2a6d26835fa16a0edfa // Replace with latest SHA for prod-stable branch
33
+
ref: c7f6c75fd1e895afbc05a2a6d26835fa16a0edfa // Replace with latest SHA for prod-hccm branch
56
34
...
57
35
```
58
36
@@ -62,17 +40,16 @@ After releasing to each staging environment, open an incognito window and view o
62
40
63
41
Please ensure expected changes have been updated before releasing to the next staging environment.
64
42
65
-
1. For stage-stable, view https://console.stage.redhat.com/openshift/cost-management/
66
-
2. For prod-beta, view https://console.redhat.com/beta/openshift/cost-management/
67
-
3. For prod-stable, view https://console.redhat.com/openshift/cost-management/
43
+
1. For stage, view https://console.stage.redhat.com/openshift/cost-management/
44
+
2. For prod-hccm, view https://console.redhat.com/openshift/cost-management/
68
45
69
46
## Release notes
70
47
71
-
After releasing to prod-stable, a new tag will be created here https://github.com/project-koku/koku-ui/tags. Create a new GitHub release based on this tag -- use the tag label as the "release title".
48
+
After releasing to prod-hccm, a new tag will be created here https://github.com/project-koku/koku-ui/tags. Create a new GitHub release based on this tag -- use the tag label as the "release title".
72
49
73
50
Note that you may "Draft a new release", before the latest tag is available, and mark it as a "pre-release" -- don't click "publish release" yet, use "save draft".
74
51
75
-
Please document any new features and bug fixes available in production and other staging environments. For example, note any features that are only available in stage-beta.
52
+
Please document any new features and bug fixes available in production and other staging environments. For example, note any features that are only available in stage.
76
53
77
54
For release examples, please see existing releases here https://github.com/project-koku/koku-ui/releases
0 commit comments