diff --git a/.gitignore b/.gitignore index 6a2ac13..c56c067 100644 --- a/.gitignore +++ b/.gitignore @@ -182,3 +182,4 @@ jspm_packages /package-lock.json tilt/helm-values-secrets.yaml +tilt/helm-n-a-a-vre-secrets.yaml diff --git a/Tiltfile b/Tiltfile index 545d792..ffa630e 100644 --- a/Tiltfile +++ b/Tiltfile @@ -12,6 +12,18 @@ helm_remote( ], ) + + +helm_remote( + 'jupyterhub', + repo_url='https://jupyterhub.github.io/helm-chart/', + values=[ + './tilt/helm-n-a-a-vre-secrets.yaml', + ], +) + + + docker_build( 'qcdis/vreapi', context='.', diff --git a/tilt/helm-n-a-a-vre.yaml b/tilt/helm-n-a-a-vre.yaml new file mode 100644 index 0000000..f350f69 --- /dev/null +++ b/tilt/helm-n-a-a-vre.yaml @@ -0,0 +1,67 @@ +hub: + image: + tag: "2.0.0" + concurrentSpawnLimit: 20 + consecutiveFailureLimit: 20 + activeServerLimit: 20 + namedServerLimitPerUser: 1 + shutdownOnLogout: true + extraEnv: + OAUTH2_TLS_VERIFY: 'false' + baseUrl: /n-a-a-vre + config: + GenericOAuthenticator: +ingress: + enabled: true + hosts: + - paas.minikube.test + annotations: + kubernetes.io/ingress.class: "nginx" + nginx.ingress.kubernetes.io/add-base-url: "true" + kubernetes.io/tls-acme: "true" + nginx.ingress.kubernetes.io/proxy-body-size: "600m" + nginx.org/client-max-body-size: "600m" +proxy: + service: + type: ClusterIP +singleuser: + cmd: ['/usr/local/bin/start-jupyter-venv.sh'] + extraFiles: + jupyter_notebook_config.json: + mountPath: /etc/jupyter/jupyter_notebook_config.json + data: + ServerApp: + iopub_data_rate_limit: 1.0e10 + iopub_msg_rate_limitFloat: 3000 + memory: + limit: 3G + guarantee: 2G + storage: + capacity: 0.1Gi + cpu: + limit: 1.0 + guarantee: 1.0 + lifecycleHooks: + postStart: + exec: + command: ["sh", "-c", "/tmp/init_script.sh"] + defaultUrl: "/lab" + extraEnv: + JUPYTERHUB_SINGLEUSER_APP: "jupyter_server.serverapp.ServerApp" + MODULE_MAPPING_URL: https://raw.githubusercontent.com/QCDIS/NaaVRE-conf/main/module_mapping.json + NAAVRE_API_TOKEN: e46eb8a73155c7dfb99c9209f47a55ecc3b6ae7d + SEARCH_API_ENDPOINT: http://145.100.135.119/api/ + SEARCH_API_TOKEN: 2d23b88f724f5d95072d011786f7133e1e517675 + VLAB_SLUG: n-a-a-vre + API_ENDPOINT: https://lifewatch.lab.uvalight.net:32443/vre-api/ + MULTIPLY_CONF_URL: https://github.com/QCDIS/data-access/raw/master/multiply.zip + CELL_GITHUB: https://github.com/QCDIS/NaaVRE-n-a-a-vre-dev-VL + CELL_GITHUB_TOKEN: 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 + REGISTRY_URL: https://hub.docker.com/u/qcdis + PROJ_LIB: /venv/share/proj + profileList: + - display_name: "Laserfarm VL environment" + description: "Vitual lab with Laserfarm dependencies installed" + kubespawner_override: + image: qcdis/n-a-a-vre-laserfarm:v2.0-beta + pullPolicy: Always \ No newline at end of file