Skip to content
This repository was archived by the owner on Jan 31, 2024. It is now read-only.

Commit aa5e6f2

Browse files
authored
Add generic data science notebook to JH deployment (#381)
Signed-off-by: Landon LaSmith <LLaSmith@redhat.com>
1 parent 0e48991 commit aa5e6f2

File tree

5 files changed

+60
-2
lines changed

5 files changed

+60
-2
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: image.openshift.io/v1
2+
kind: ImageStream
3+
metadata:
4+
labels:
5+
opendatahub.io/notebook-image: "true"
6+
annotations:
7+
opendatahub.io/notebook-image-url: "https://github.com/thoth-station/s2i-generic-data-science-notebook"
8+
opendatahub.io/notebook-image-name: "Generic Data Scient Notebook Image"
9+
opendatahub.io/notebook-image-desc: "Jupyter notebook image with a set of data science libraries that advanced AI/ML notebooks will use as a base image to provide a standard for libraries avialable in all notebooks"
10+
name: s2i-generic-data-science-notebook
11+
spec:
12+
lookupPolicy:
13+
local: true
14+
tags:
15+
- annotations:
16+
openshift.io/imported-from: quay.io/thoth-station/s2i-generic-data-science-notebook
17+
from:
18+
kind: DockerImage
19+
name: quay.io/thoth-station/s2i-generic-data-science-notebook:v0.0.2
20+
name: "v0.0.2"
21+
referencePolicy:
22+
type: Source

jupyterhub/notebook-images/overlays/additional/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ bases:
44
- ../../base
55
resources:
66
- minimal-notebook-imagestream.yaml
7+
- generic-data-science-notebook-imagestream.yaml
78
- scipy-notebook-imagestream.yaml
89
- tensorflow-notebook-imagestream.yaml
910
- spark-scipy-notebook-imagestream.yaml
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
apiVersion: build.openshift.io/v1
2+
kind: BuildConfig
3+
metadata:
4+
labels:
5+
build: s2i-generic-data-science-notebook
6+
name: s2i-generic-data-science-notebook
7+
spec:
8+
output:
9+
to:
10+
kind: ImageStreamTag
11+
name: s2i-generic-data-science-notebook:local-build
12+
source:
13+
git:
14+
uri: https://github.com/thoth-station/s2i-generic-data-science-notebook
15+
type: Git
16+
strategy:
17+
sourceStrategy:
18+
from:
19+
kind: ImageStreamTag
20+
name: s2i-minimal-notebook:local-build
21+
env:
22+
- name: "ENABLE_PIPENV"
23+
value: "1"
24+
- name: "THOTH_DRY_RUN"
25+
value: "1"
26+
- name: "THOTH_ADVISE"
27+
value: "0"
28+
- name: "THOTH_PROVENANCE_CHECK"
29+
value: "0"
30+
- name: "THOTH_ERROR_FALLBACK"
31+
value: "1"
32+
type: Source
33+
triggers:
34+
- type: ConfigChange

jupyterhub/notebook-images/overlays/build/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ bases:
44
- ../../base
55
resources:
66
- minimal-notebook-buildconfig.yaml
7+
- generic-data-science-notebook-buildconfig.yaml
78
- scipy-notebook-buildconfig.yaml
89
- tensorflow-notebook-buildconfig.yaml
910
- spark-minimal-notebook-buildconfig.yaml

tests/basictests/jupyterhub.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ JH_LOGIN_PASS=${OPENSHIFT_PASS:-"admin"} #Password used to login to JH
1111
OPENSHIFT_LOGIN_PROVIDER=${OPENSHIFT_LOGIN_PROVIDER:-"htpasswd-provider"} #OpenShift OAuth provider used for login
1212
JH_AS_ADMIN=${JH_AS_ADMIN:-"true"} #Expect the user to be Admin in JupyterHub
1313

14-
JUPYTER_IMAGES=("s2i-spark-minimal-notebook:py36-spark2.4.5-hadoop2.7.3" s2i-minimal-notebook:v0.0.7 s2i-scipy-notebook:v0.0.2 s2i-tensorflow-notebook:v0.0.2)
15-
JUPYTER_NOTEBOOK_FILES=(spark.ipynb basic.ipynb basic.ipynb tensorflow.ipynb)
14+
JUPYTER_IMAGES=("s2i-spark-minimal-notebook:py36-spark2.4.5-hadoop2.7.3" s2i-minimal-notebook:v0.0.7 s2i-scipy-notebook:v0.0.2 s2i-tensorflow-notebook:v0.0.2 s2i-generic-data-science-notebook:v0.0.2)
15+
JUPYTER_NOTEBOOK_FILES=(spark.ipynb basic.ipynb basic.ipynb tensorflow.ipynb basic.ipynb)
1616

1717
os::test::junit::declare_suite_start "$MY_SCRIPT"
1818

0 commit comments

Comments
 (0)