Skip to content

Commit 0607597

Browse files
authored
Merge pull request #86 from amazeeio/dev
Helm fixes, and fastly purge fixes
2 parents b6f6c29 + d5b7715 commit 0607597

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM uselagoon/python-3.12:latest
22

33
RUN apk add bash --no-cache
4+
RUN apk add curl --no-cache
45

56
WORKDIR /app
67

@@ -20,4 +21,4 @@ RUN mkdir -p /app/logs && \
2021
COPY backend-start.sh .
2122
RUN chmod +x /app/backend-start.sh
2223

23-
CMD ["/app/backend-start.sh"]
24+
CMD ["/app/backend-start.sh"]

helm/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,13 @@ helm install amazee-ai . -n amazee-ai --create-namespace \
111111
#### 4. Local deployment with kind
112112
```bash
113113
kind create cluster --name amazee-ai-local
114+
# Pull the charts etc, and set the backend URL to localhost
115+
helm install amazee-ai oci://ghcr.io/amazeeio/amazee.ai/amazee-ai --namespace amazee-ai --create-namespace --set frontend.apiUrl="http://localhost:8800"
116+
# Wait for all pods to initialise fully, then forward ports
117+
k port-forward deployment/amazee-ai-frontend 3000:3000 -n amazee-ai
118+
k port-forward deployment/amazee-ai-cbackend 8800:8800 -n amazee-ai
114119
```
120+
The system should now be accessable at http://localhost:3000
115121

116122
## Configuration
117123

helm/charts/frontend/templates/_helpers.tpl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ Frontend-specific API URL generation.
5555
This provides a frontend-specific override if needed.
5656
*/}}
5757
{{- define "frontend.apiUrl" -}}
58-
{{- $frontend := .Values.frontend | default dict -}}
59-
{{- if $frontend.apiUrl }}
60-
{{- $frontend.apiUrl | quote }}
58+
{{- if .Values.apiUrl }}
59+
{{- .Values.apiUrl | quote }}
6160
{{- else }}
6261
{{- $backendService := printf "%s-backend" .Release.Name }}
6362
{{- $port := "8800" }}

0 commit comments

Comments
 (0)