aboutsummaryrefslogtreecommitdiffstats
path: root/deployment.yaml
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2023-08-19 16:10:59 -0700
committerGravatar Mark <[email protected]>2023-08-19 20:42:56 -0700
commit0db60fc25bb48d2c139b91e78b7bcfe7b98475b4 (patch)
treec7be500ffe0ca2a8acbd603395cb13fe331d39f2 /deployment.yaml
parentUse buildpack-deps as the builder base image (diff)
Install multiple Python versions in image
Separate snekbox's Python interpreter from the interpreter used by NsJail. This allows for the interpreters to be updated on different cadences and provides better isolation of packages. Each Python interpreter adds about 70 MB to the built image.
Diffstat (limited to 'deployment.yaml')
-rw-r--r--deployment.yaml6
1 files changed, 4 insertions, 2 deletions
diff --git a/deployment.yaml b/deployment.yaml
index b0856f3..ece9ef4 100644
--- a/deployment.yaml
+++ b/deployment.yaml
@@ -30,8 +30,9 @@ spec:
- "/bin/sh"
- "-c"
- >-
- PYTHONUSERBASE=/snekbox/user_base
- pip install --user --upgrade
+ find /lang/python -mindepth 1 -maxdepth 1 -type d -exec
+ PYTHONUSERBASE=/snekbox/user_base &&
+ {}/bin/python -m pip install -U
anyio[trio]~=3.6
arrow~=1.2
attrs~=22.2
@@ -55,6 +56,7 @@ spec:
typing-extensions~=4.4
tzdata~=2022.7
yarl~=1.8
+ \;
volumes:
- name: snekbox-user-base-volume
hostPath: