diff options
author | 2023-08-31 19:09:30 +0100 | |
---|---|---|
committer | 2023-08-31 19:09:30 +0100 | |
commit | 7303301fe01b79036e81304140546b166501b663 (patch) | |
tree | ee878a91c9c5b10c558dfbb39a53bf34cd37a6b4 /deployment.yaml | |
parent | Fix 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.yaml | 11 |
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 |