Skip to content

Commit

Permalink
Working local setup with @cooldragontattoo
Browse files Browse the repository at this point in the history
  • Loading branch information
chosak committed Jan 7, 2025
1 parent 81ea3af commit f5742da
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ cfgov/retirement_api/data/
cfgov/static_built/
**/fixtures/
collectstatic/
helm/

# Ignore all HTML files:
*.html
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ ENV ALLOWED_HOSTS '["*"]'
COPY cfgov ./cfgov/
COPY static.in ./static.in/
COPY refresh-data.sh .
COPY index.sh .
COPY initial-data.sh .
COPY index.sh .
COPY test.sql.gz .

# Copy our static build over from node-builder
Expand Down
2 changes: 1 addition & 1 deletion helm-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fi

if ! docker images -q --filter=reference='cfgov' | grep -q .; then
echo -e "${RED}Docker image 'cfgov' could not be found."
docker build . -t cfgo
docker build . -t cfgov
fi

if ! docker images -q --filter=reference='cfgov-apache' | grep -q .; then
Expand Down
5 changes: 3 additions & 2 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: {{ include "cfgov.fullname" . }}
labels:
{{- include "cfgov.labels" . | nindent 4 }}

spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
Expand Down Expand Up @@ -40,7 +41,7 @@ spec:
- name: {{ .name }}
value: {{ .value | quote }}
{{- end }}
command:
command:
{{- range .command }}
- {{ . }}
{{- end }}
Expand All @@ -55,7 +56,7 @@ spec:
containerPort: {{ .port }}
protocol: TCP
{{- if .env }}
env:
env:
{{- range .env }}
- name: {{ .name }}
value: {{ .value | quote }}
Expand Down
6 changes: 5 additions & 1 deletion helm/values.local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ serviceAccount:

# This is for setting Kubernetes Annotations to a Pod.
# For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
podAnnotations: {}
podAnnotations:
# Always restart containers, even if the image tag hasn't changed.
# This is currently needed because the crawler image tag is always "main".
# https://v3.helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
rollme: {{ randAlphaNum 5 | quote }}
# This is for setting Kubernetes Labels to a Pod.
# For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
podLabels: { 'app.kubernetes.io/name': 'cfgov' }
Expand Down

0 comments on commit f5742da

Please sign in to comment.