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
* Update insights dev environment
Issue: AAH-1262
* README: clean up insights mode docs, there is no insights-proxy or spandx anymore
* drop profiles/ - unused now
goes with ansible/galaxy_ng#1224
* add the basic config, frontend-components-config-utilities
taken from #1526, except less changes
* docker/entrypoint.sh - show an error when using ANSIBLE_HUB_UI_PATH in insights mode
this would technically work as configured,
except `npm run start` now involves running docker to start more container
dockerd won't start in the existing alpine env, failing on missing cgroups v2
and there's no podman apk
switching to bullseye based node container might still work though
Co-authored-by: Martin Hradil <mhradil@redhat.com>
Copy file name to clipboardexpand all lines: README.md
+9-49
Original file line number
Diff line number
Diff line change
@@ -10,67 +10,27 @@ This project can now be run as a container alongside the API. Just follow the in
10
10
11
11
## Develop without containers
12
12
13
-
This app can be developed in standalone mode or insights mode. Insights mode compiles the app to be run on the Red Hat cloud services platform (insights) and requires access to the Red Hat VPN as well as the insights proxy. Standalone mode only requires a running instance of the galaxy API for the UI to connect to.
13
+
This app can be developed in standalone mode or insights mode. Insights mode compiles the app to be run on the Red Hat cloud services platform (insights). Standalone mode only requires a running instance of the galaxy API for the UI to connect to.
14
14
15
15
### Develop in Standalone Mode
16
16
17
17
1. Clone the [galaxy_ng](https://github.com/ansible/galaxy_ng) repo and follow the instructions for starting up the API.
18
-
2. Install node. Node v13+ are known to work. Older versions may work as well.
18
+
2. Install node. Node v14+ is known to work. Older versions may work as well.
19
19
3.`npm install`
20
20
4.`npm run start-standalone`
21
21
22
-
The app will run on http://localhost:8002 and proxy requests for `api/automation-hub` to the api on `http://localhost:5001`.
22
+
The app will run on http://localhost:8002/ui and proxy requests for `/api/automation-hub` to the api on `http://localhost:5001`.
23
23
24
24
### Develop in Insights Mode
25
25
26
-
**NOTE:** This option is only available to Red Hat employees who have access to the Red Hat VPN. Community contributors should follow setup for [standalone mode](#develop-in-standalone-mode)
26
+
**NOTE:** This option is only relevant to Red Hat employees. Community contributors should follow setup for [standalone mode](#develop-in-standalone-mode)
27
27
28
-
To enable insights mode set `DEPLOYMENT_MODE: 'insights'` in [custom.dev.config.js](./custom.dev.config.js).
29
-
30
-
This app is part of the Red Hat cloud platform. Because of that the app needs to be loaded within the context of console.redhat.com. This is done by accessing the app via the [insights-proxy project](https://github.com/RedHatInsights/insights-proxy).
31
-
32
-
#### Set up Insights Proxy
33
-
34
-
- Install docker
35
-
- Clone this repo `git@github.com:RedHatInsights/insights-proxy.git` to your machine
36
-
- Inside the `insights-proxy/` directory on your computer, run the following scripts
37
-
-`npm install`
38
-
-`bash scripts/update.sh` This updates the insights proxy container to the latest version.
39
-
-`sudo bash scripts/patch-etc-hosts.sh` This adds the following entries to your `/etc/hosts` file
40
-
41
-
```
42
-
127.0.0.1 prod.foo.redhat.com
43
-
127.0.0.1 stage.foo.redhat.com
44
-
127.0.0.1 qa.foo.redhat.com
45
-
127.0.0.1 ci.foo.redhat.com
46
-
```
47
-
48
-
Once all this is done, you can launch `insights-proxy` with this command:
This should launch `insights-proxy`, which will redirect the routes defined in `profiles/local-frontend-and-api.js` to the automation hub UI running locally on your machine.
55
-
56
-
##### NOTE
57
-
58
-
If you are on a Mac, you might have to make a small change to the `insights-proxy/scripts/run.sh` script. Update this line
Once the insights proxy is running, open a new terminal, navigate to your local copy of `ansible-hub-ui` and execute
69
-
70
-
1.`npm install`
71
-
2.`npm run start`
28
+
1. Clone the [galaxy_ng](https://github.com/ansible/galaxy_ng) repo and start the API with `COMPOSE_PROFILE=insights`.
29
+
2. Install node. Node v14+ is known to work. Older versions may work as well.
30
+
3.`npm install`
31
+
4.`npm run start`
72
32
73
-
To access the app, visit: https://ci.foo.redhat.com:1337/insights/automation-hub
33
+
The app will run on http://localhost:8002/beta/ansible/automation-hub and proxy requests for `/api/automation-hub` to the api on `http://localhost:5001`.
0 commit comments