Skip to content

Commit

Permalink
Make scratch area of startup script configurable for blueapi container
Browse files Browse the repository at this point in the history
  • Loading branch information
Rose Yemelyanova committed Oct 31, 2023
1 parent e3c4a78 commit f7084a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .devcontainer/container-startup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash

SCRATCH_AREA="/blueapi-plugins/scratch"
if [[ -z "${SCRATCH_AREA}" ]]; then
SCRATCH_AREA="/blueapi-plugins/scratch"
fi

mkdir -p ${SCRATCH_AREA}

Expand Down
3 changes: 3 additions & 0 deletions helm/blueapi/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ spec:
- "/config/secret.yaml"
{{- end }}
- "serve"
env:
- name: SCRATCH_AREA
value: {{ .Values.scratch.containerPath }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit f7084a4

Please sign in to comment.