Skip to content

Commit

Permalink
Try pip install as part of entrypoint command
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Davidson committed Nov 3, 2023
1 parent 742aed6 commit 1b4dc24
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions binderhub-azimuth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ binderhub:
continuous:
enabled: false
hub:
args:
- bash
- -c
- "pip install kubernetes && jupyterhub --config /usr/local/etc/jupyterhub/jupyterhub_config.py --upgrade-db"
config:
JupyterHub:
authenticator_class: RemoteUserAuthenticator
Expand Down Expand Up @@ -235,10 +239,10 @@ binderhub:
c.JupyterHub.authenticator_class = RemoteUserAuthenticator
# TODO: Make note of why install must happen in separate file
98-k8s-client-install.py: |
import sys, subprocess
subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'kubernetes'])
subprocess.check_call([sys.executable, '-m', 'pip', 'list'])
# 98-k8s-client-install.py: |
# import sys, subprocess
# subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'kubernetes'])
# subprocess.check_call([sys.executable, '-m', 'pip', 'list'])

99-zenith.py: |
import os
Expand Down

0 comments on commit 1b4dc24

Please sign in to comment.