Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No sudo #2

Open
wants to merge 15 commits into
base: no-sudo
Choose a base branch
from
Open

No sudo #2

wants to merge 15 commits into from

Conversation

addisonwurtz
Copy link
Collaborator

I am mostly just submitting this as a proof-of-work. I was able to get around a lot of the apt issues and used buildpacks in order to support tljh repo submodule, and to run the bootstrap.py script during build. Unfortunately, you eventually need root permissions to create admin users. I do not believe there is a workaround for this.

For posterity, there are the build commands I was using:

export APP_NAME=jupyter-hub
export ADMIN=admin
export TLJH_BOOTSTRAP_PIP_SPEC=/the-littlest-jupyterhub

heroku create $APP_NAME

heroku stack:set heroku-24 --app $APP_NAME

heroku config:set TLJH_INSTALL_PREFIX=/app/the-littlest-jupyterhub -a $APP_NAME
heroku config:set ADMIN=$ADMIN -a $APP_NAME
heroku config:set TLJH_BOOTSTRAP_PIP_SPEC=$TLJH_BOOTSTRAP_PIP_SPEC -a $APP_NAME
heroku config:set BUILDPACK_RUN_LOAD_CONFIG=1

heroku buildpacks:add --index 1 https://github.com/dmathieu/heroku-buildpack-submodules -a $APP_NAME
heroku buildpacks:add --index 2 heroku-community/apt -a $APP_NAME
heroku buildpacks:add --index 3 heroku/python -a $APP_NAME
heroku buildpacks:add --index 4 https://github.com/weibeld/heroku-buildpack-run -a $APP_NAME

#heroku addons:create heroku-postgresql:essential-1 --app $APP_NAME

heroku git:remote -a $APP_NAME

git push heroku main

I will add them to the readme if we decide to come back to this branch for any reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant