Skip to content

Commit

Permalink
Merge pull request #33 from nebari-dev/remove-launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech authored Jan 5, 2024
2 parents 0024588 + 6837a33 commit 5c99c2e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 663 deletions.
20 changes: 0 additions & 20 deletions jhub_apps/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from jhub_apps import JAppsConfig
from jhub_apps.spawner.spawner_creation import subclass_spawner
from jhub_apps.spawner.utils import get_origin_host


def _create_token_for_service():
Expand Down Expand Up @@ -65,24 +64,6 @@ def install_jhub_apps(c, spawner_to_subclass):
"oauth_redirect_uri": oauth_redirect_uri,
"display": False,
},
{
"name": "launcher",
"url": "http://127.0.0.1:5000",
"command": [
c.JAppsConfig.python_exec,
"-m",
"jhub_apps.launcher.main",
f"--origin-host={get_origin_host(c.JupyterHub.bind_url)}",
],
# Remove this get, set environment properly
"api_token": os.environ.get(
"JHUB_APP_LAUNCHER_TOKEN", _create_token_for_service()
),
"environment": {
"JHUB_JUPYTERHUB_CONFIG": c.JAppsConfig.jupyterhub_config_path,
},
"display": False,
},
]
)

Expand All @@ -91,7 +72,6 @@ def install_jhub_apps(c, spawner_to_subclass):
"name": "japps-service-role", # name the role
"services": [
"japps", # assign the service to this role
"launcher",
],
"scopes": [
# declare what permissions the service should have
Expand Down
Empty file removed jhub_apps/launcher/__init__.py
Empty file.
30 changes: 0 additions & 30 deletions jhub_apps/launcher/main.py

This file was deleted.

Loading

0 comments on commit 5c99c2e

Please sign in to comment.