Skip to content

Commit

Permalink
Merge pull request #54 from UNINETTSigma2/test-updated-jupyter-images
Browse files Browse the repository at this point in the history
update jupyter service in test
  • Loading branch information
sirikal authored Oct 20, 2023
2 parents bbea240 + 2d5831d commit 42da580
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 10 deletions.
8 changes: 4 additions & 4 deletions repos/testing/jupyter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apiVersion: v1
description: Jupyter notebook with Dataporten integration
name: jupyter
version: 0.10.30
version: 0.10.31
maintainers:
- name: Sigma2 AS
email: contact@sigma2.no
- name: Sigma2 AS
email: contact@sigma2.no
home: https://github.com/UninettSigma2/helm-charts/tree/master/repos/testing/jupyter
icon: https://bollwyvl.github.io/jupyter.github.io/images/jupyter-sq-text.svg
keywords:
- Apache Spark
- Scala
- R
- VS code
- VS Code
2 changes: 1 addition & 1 deletion repos/testing/jupyter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ A [Jupyter Notebook](http://jupyter.org/) is an open-source web application that

### Advanced
This application creates a [Jupyter Notebook](https://github.com/UninettSigma2/helm-charts/tree/master/repos/testing/jupyter) instance using the following Dockerfiles:
- [uninettSigma2/jupyter-spark](https://github.com/UninettSigma2/helm-charts-dockerfiles/tree/fbbf65f/jupyter-spark/Dockerfile)
- [uninettSigma2/jupyter-spark](https://github.com/UninettSigma2/helm-charts-dockerfiles/tree/e077f7c/jupyter-spark/Dockerfile)

#### Values
| Value name | Description |
Expand Down
4 changes: 2 additions & 2 deletions repos/testing/jupyter/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ properties:
dockerImage:
type: string
examples:
- quay.io/nird-toolkit/jupyter-spark:20220826-8ed372f
- sigma2as/jupyter-spark:20231016-e077f7c
env:
type: object
properties:
Expand Down Expand Up @@ -34,7 +34,7 @@ properties:
contact_email:
type: string
examples:
- example@uninett.no
- example@sigma2.no
dataporten:
type: object
properties:
Expand Down
16 changes: 16 additions & 0 deletions repos/testing/jupyter/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,22 @@ c.NotebookApp.allow_remote_access = True
c.NotebookApp.token = ''
c.NotebookApp.password = ''

c.ServerProxy.servers = {
'code-server': {
'command': [
'code-server',
'--auth=none',
'--disable-telemetry',
'--port={port}'
],
'timeout': 20,
'launcher_entry': {
'title': 'VS Code IDE'
}
}
}


{{- end -}}

# Create /etc/passwd file to contain UID of users we add
Expand Down
1 change: 1 addition & 0 deletions repos/testing/jupyter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ spec:
initContainers:
- name: busybox
image: busybox:1.33.1-glibc
imagePullPolicy: IfNotPresent
securityContext:
runAsUser: {{ .Values.uid }}
runAsGroup: {{ .Values.gid }}
Expand Down
9 changes: 6 additions & 3 deletions repos/testing/jupyter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ persistentStorage:
readOnly: false
appstore_generated_data:
appstore_meta_data:
contact_email: "example@uninett.no"
contact_email: "example@sigma2.no"
dataporten:
scopes:
- ""
Expand All @@ -34,6 +34,10 @@ appstore_generated_data:
- profile
- email
authorized_principals: []
owner: provided-by-toolkit
userinfo_url: provided-by-toolkit
token_url: provided-by-toolkit
auth_url: provided-by-toolkit
uid: 999
gid: 999
username: notebook
Expand All @@ -44,8 +48,7 @@ advanced:
env:
sparkMasterUrl: "local[*]"
jupyterLab: true
dockerImage: quay.io/nird-toolkit/jupyter-spark:20220826-8ed372f

dockerImage: sigma2as/jupyter-spark:20231016-e077f7c
githubToken: ""
authGroupProviders:
- url: "https://groups-api.dataporten.no/groups/me/groups"
Expand Down

0 comments on commit 42da580

Please sign in to comment.