aboutsummaryrefslogtreecommitdiffstats
path: root/deployment.yaml
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2023-08-31 19:09:30 +0100
committerGravatar GitHub <[email protected]>2023-08-31 19:09:30 +0100
commit7303301fe01b79036e81304140546b166501b663 (patch)
treeee878a91c9c5b10c558dfbb39a53bf34cd37a6b4 /deployment.yaml
parentFix link in readme (#189) (diff)
Make CI and deployment.yaml share the same dependency install script (#190)
* Make CI and deployment.yaml share the same dependency install script * squashme: add set -euo pipefail as sane defaults This also requires running under bash rather than sh * squashme: add make target for installing eval deps
Diffstat (limited to 'deployment.yaml')
-rw-r--r--deployment.yaml11
1 files changed, 2 insertions, 9 deletions
diff --git a/deployment.yaml b/deployment.yaml
index 6f188c9..cad8037 100644
--- a/deployment.yaml
+++ b/deployment.yaml
@@ -13,22 +13,15 @@ spec:
app: snekbox
spec:
initContainers:
- # Ensure "dry-run-deploy" job of test.yaml is updated with any changes to this init container
- name: deps-install
image: ghcr.io/python-discord/snekbox:latest
imagePullPolicy: Always
volumeMounts:
- name: snekbox-user-base-volume
mountPath: /snekbox/user_base
- env:
- - name: PYTHONUSERBASE
- value: /snekbox/user_base
command:
- - "/bin/sh"
- - "-c"
- - >-
- find /lang/python -mindepth 1 -maxdepth 1 -type d -exec
- {}/bin/python -m pip install --user -U -r requirements/eval-deps.pip \;
+ - /bin/bash
+ - scripts/install_eval_deps.sh
containers:
- name: snekbox
image: ghcr.io/python-discord/snekbox:latest