Skip to content

Commit

Permalink
feat: copies ca-certificates to scratch image and fixes helm deployme…
Browse files Browse the repository at this point in the history
…nt values files
  • Loading branch information
markbrown87 committed Dec 8, 2024
1 parent fe854d6 commit 1190d41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions container/webapp.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o dev-station .
FROM scratch

# Copy the built application from the first stage
COPY --from=build-stage /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build-stage /app/dev-station /dev-station
COPY --from=build-stage /app/index.html /
COPY --from=build-stage /app/values-files /values-files
Expand Down
1 change: 1 addition & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
containers:
- name: {{ .Values.container.name }}
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: {{ .Values.container.port }}
volumeMounts:
Expand Down
2 changes: 1 addition & 1 deletion helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ deployment:

ingress:
host: dev-station.cluster.sololab.one
serivce:
service:
name: web-deployment-service

0 comments on commit 1190d41

Please sign in to comment.