@@ -11,23 +11,31 @@ Docker Desktop [Instructions](https://docs.docker.com/desktop/mac/install)
1111brew install minikube
1212```
1313
14- ## Step 3: Setup Local Environment
14+ ## Step 3: Install Helm
15+ ``` bash
16+ brew install helm
17+ ```
18+
19+ ## Step 4: Setup Local Environment
1520``` bash
1621python3 -m venv venv
1722source venv/bin/activate
1823pip install -r requirements.txt
1924```
2025
21- ## Step 4 : OPTIONAL Setup Voice Recognition (MAC Only)
26+ ## Step 5 : OPTIONAL Setup Voice Recognition (MAC Only)
2227Use Voice Control On MAC [ Instructions] ( https://support.apple.com/en-us/HT210539 ) .
2328
24- ## Step 5 : Build App Locally
29+ ## Step 6 : Build App Locally
2530``` bash
31+ cd app/website
2632docker build --tag cortexaai:latest .
2733docker run -d --name cortexaai --publish 5000:5000 cortexaai
34+ cd ..
35+ cd ..
2836```
2937
30- ## Step 6 : Install Ansible Galaxy kubernetes.core.k8s
38+ ## Step 7 : Install Ansible Galaxy kubernetes.core.k8s
3139``` bash
3240pip install openshift pyyaml kubernetes
3341cd /Applications/Python\ < version>
@@ -36,25 +44,23 @@ ansible-galaxy collection install kubernetes.core
3644cd < repo>
3745```
3846
39- ## Step 7 : Deploy & Run App to Kubernetes
47+ ## Step 8 : Deploy & Run App to Kubernetes
4048``` bash
49+ cd app
4150minikube delete
4251minikube start
43- cd app
44- kubectl apply -f deployment.yml
45- minikube start service: webapp
46- kubectl get all
47- minikube service webapp-service [terminal 1]
48- kubectl port-forward --address 0.0.0.0 service/webapp-service 30000:5000 [terminal 2]
52+ helm install website .
53+ minikube service website-cortexaai [terminal 1]
54+ kubectl port-forward --address 0.0.0.0 service/webapp-service 30000:80 [terminal 2]
4955cd ..
5056```
5157
52- ## Step 8 : Run Docker Compose (Selenium Grid)
58+ ## Step 9 : Run Docker Compose (Selenium Grid)
5359``` bash
5460docker-compose -f ./docker-compose.yml up --scale chrome=1 -d
5561```
5662
57- ## Step 9 : Observe Selenium Grid Run (Including Built-In VNC Viewer)
63+ ## Step 10 : Observe Selenium Grid Run (Including Built-In VNC Viewer)
5864```
5965http://localhost:4444/ui/index.html#/sessions
6066```
0 commit comments