Skip to content

Commit

Permalink
Helm file and container for Leiden
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzondervan committed Jul 31, 2023
1 parent eb7bc4a commit 9eaec6f
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ NPM_REGISTRY=
NPM_TOKEN=
VCS_REF=
VERSION=
NEXT_PUBLIC_API_URL=https://api.huwelijksplanner.online/api
NEXT_PUBLIC_API_URL=https://api.leiden-hp.commonground.nu/api
NEXT_PUBLIC_MATOMO_URL=https://stats.utrecht.nl/analytics/
NEXT_PUBLIC_MATOMO_SITE_ID=5
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ ARG NODE_ENV
ARG NPM_REGISTRY
ARG NPM_STRICT_SSL
ARG NPM_TOKEN
ARG NEXT_PUBLIC_API_URL

RUN echo $NEXT_PUBLIC_API_URL

RUN if test "$NODE_ENV" = 'development'; \
then \
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ services:
- "NPM_TOKEN=${NPM_TOKEN}"
- "VCS_REF=${VCS_REF}"
- "VERSION=${VERSION}"
- "NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}"
context: .
dockerfile: ./Dockerfile
ports:
- "3000:3000"
command: "start"
image: ghcr.io/conductionnl/huwelijksplanner-utrecht:leiden
7 changes: 0 additions & 7 deletions helm/huwelijksplanner/templates/configmap.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions helm/huwelijksplanner/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,32 +29,13 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
volumes:
- name: tmpfs
emptyDir: {}
- name: tmpfs2
emptyDir: {}
- name: env
configMap:
name: {{ include "api-platform.fullname" . }}
items:
- key: "properties"
path: "env.js"

containers:
- name: {{ .Chart.Name }}-pwa
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.pwa.image.image }}:{{ .Values.pwa.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.pwa.image.pullPolicy }}
volumeMounts:
- name: env
mountPath: "/usr/share/nginx/html/env.js"
subPath: "env.js"
- mountPath: /var/cache/nginx/client_temp
name: tmpfs
- mountPath: /var/run
name: tmpfs2
ports:
- name: http
containerPort: 3000
Expand Down
7 changes: 0 additions & 7 deletions helm/huwelijksplanner/templates/secrets.yaml

This file was deleted.

14 changes: 14 additions & 0 deletions helm/huwelijksplanner/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "api-platform.fullname" . }}
labels:
{{- include "api-platform.labelsPWA" . | nindent 4 }}
spec:
ports:
- port: 80
targetPort: 3000
protocol: TCP
name: http
selector:
{{- include "api-platform.selectorLabelsPWA" . | nindent 4 }}

0 comments on commit 9eaec6f

Please sign in to comment.