-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added data science notebook image (#13)
- Loading branch information
Showing
10 changed files
with
2,045 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ARG BASE_IMAGE | ||
FROM ${BASE_IMAGE} | ||
|
||
LABEL name="odh-notebook-jupyter-datascience-ubi8-python-3.8" \ | ||
summary="Jupyter data science notebook image for ODH notebooks" \ | ||
description="Jupyter data science notebook image with base Python 3.8 builder image based on UBI8 for ODH notebooks" \ | ||
io.k8s.display-name="Jupyter data science notebook image for ODH notebooks" \ | ||
io.k8s.description="Jupyter data science notebook image with base Python 3.8 builder image based on UBI8 for ODH notebooks" \ | ||
authoritative-source-url="https://github.com/opendatahub-io/notebooks" \ | ||
io.openshift.build.commit.ref="main" \ | ||
io.openshift.build.source-location="https://github.com/opendatahub-io/notebooks/tree/main/jupyter/datascience/ubi8-python-3.8" \ | ||
io.openshift.build.image="quay.io/opendatahub/notebooks:jupyter-datascience-ubi8-python-3.8" | ||
|
||
COPY requirements.txt ./ | ||
|
||
RUN python -m pip install -r requirements.txt && \ | ||
rm -f requirements.txt | ||
|
||
# Fix permissions to support pip in Openshift environments | ||
RUN chmod -R g+w /opt/app-root/lib/python3.8/site-packages && \ | ||
fix-permissions /opt/app-root -P |
13 changes: 13 additions & 0 deletions
13
jupyter/datascience/ubi8-python-3.8/kustomize/base/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namePrefix: jupyter-datascience-ubi8-python-3-8- | ||
commonLabels: | ||
app: jupyter-datascience-ubi8-python-3-8 | ||
resources: | ||
- service.yaml | ||
- statefulset.yaml | ||
images: | ||
- name: quay.io/opendatahub/notebooks | ||
newName: quay.io/opendatahub/notebooks | ||
newTag: jupyter-datascience-ubi8-python-3.8 |
15 changes: 15 additions & 0 deletions
15
jupyter/datascience/ubi8-python-3.8/kustomize/base/service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: notebook | ||
labels: | ||
app: notebook | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 8888 | ||
protocol: TCP | ||
targetPort: notebook-port | ||
selector: | ||
app: notebook |
58 changes: 58 additions & 0 deletions
58
jupyter/datascience/ubi8-python-3.8/kustomize/base/statefulset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: notebook | ||
annotations: | ||
opendatahub.io/username: jovyan | ||
labels: | ||
opendatahub.io/user: jovyan | ||
spec: | ||
replicas: 1 | ||
selector: {} | ||
serviceName: notebook | ||
template: | ||
metadata: | ||
labels: {} | ||
spec: | ||
containers: | ||
- name: notebook | ||
image: quay.io/opendatahub/notebooks:jupyter-datascience-ubi8-python-3.8 | ||
imagePullPolicy: Always | ||
workingDir: /opt/app-root/src | ||
env: | ||
- name: NOTEBOOK_ARGS | ||
value: |- | ||
--ServerApp.port=8888 | ||
--ServerApp.token='' | ||
--ServerApp.password='' | ||
--ServerApp.base_url=/notebook/opendatahub/jovyan | ||
--ServerApp.quit_button=False | ||
--ServerApp.tornado_settings={"user":"jovyan","hub_host":"https://opendatahub.io","hub_prefix":"/notebookController/jovyan"} | ||
ports: | ||
- name: notebook-port | ||
protocol: TCP | ||
containerPort: 8888 | ||
livenessProbe: | ||
tcpSocket: | ||
port: notebook-port | ||
initialDelaySeconds: 5 | ||
periodSeconds: 5 | ||
successThreshold: 1 | ||
failureThreshold: 3 | ||
readinessProbe: | ||
httpGet: | ||
path: /notebook/opendatahub/jovyan/api | ||
port: notebook-port | ||
scheme: HTTP | ||
initialDelaySeconds: 10 | ||
periodSeconds: 5 | ||
successThreshold: 1 | ||
failureThreshold: 3 | ||
resources: | ||
limits: | ||
cpu: 500m | ||
memory: 2Gi | ||
requests: | ||
cpu: 500m | ||
memory: 2Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# JupyterLab data science requirements | ||
scikit-learn==0.24.1 | ||
kafka-python==2.0.2 | ||
matplotlib==3.4.1 | ||
pandas==1.2.4 | ||
numpy==1.19.2 | ||
boto3==1.17.11 | ||
scipy==1.6.2 | ||
|
||
# JupyterLab extensions | ||
jupyterlab-requirements==0.16.2 | ||
jupyter-resource-usage==0.6.1 | ||
jupyterlab-s3-browser==0.10.1 | ||
jupyterlab-widgets==3.0.3 | ||
jupyterlab-lsp==3.10.0 | ||
jupyter-bokeh==3.0.4 | ||
plotly==5.5.0 |
Oops, something went wrong.