Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BuildConfiguration objects to build RStudio and CUDA R RStudio notebooks oc OCP cluster #118

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
156 changes: 156 additions & 0 deletions manifests/base/cuda-rstudio-buildconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
---
kind: ImageStream
apiVersion: image.openshift.io/v1
metadata:
name: cuda-rhel9
spec:
lookupPolicy:
local: true
tags:
- name: latest
referencePolicy:
type: Source
---
kind: ImageStream
apiVersion: image.openshift.io/v1
metadata:
annotations:
opendatahub.io/notebook-image-creator: RHOAI
opendatahub.io/notebook-image-url: "https://github.com/red-hat-data-services/notebooks/tree/main/rstudio"
opendatahub.io/notebook-image-name: "CUDA - R Studio"
opendatahub.io/notebook-image-desc: "R Studio Workbench image with an integrated development environment for R, a programming language designed for statistical computing and graphics."
opendatahub.io/recommended-accelerators: '["nvidia.com/gpu"]'
name: cuda-rstudio-rhel9
labels:
opendatahub.io/dashboard: 'true'
opendatahub.io/notebook-image: 'true'
spec:
lookupPolicy:
local: true
tags:
- name: latest
annotations:
opendatahub.io/notebook-software: '[{"name":"CUDA","version":"11.8"},{"name":"R","version":"v4.3"},{"name":"Python","version":"v3.9"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"r-studio","version":"4.3"}]'
referencePolicy:
type: Source
---
kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: cuda-rhel9
labels:
app: buildchain
component: cuda-rhel9
spec:
source:
type: Git
git:
uri: "https://github.com/red-hat-data-services/notebooks"
ref: main
strategy:
type: Docker
dockerStrategy:
dockerfilePath: "cuda/rhel9-python-3.9/Dockerfile"
noCache: true
from:
kind: "DockerImage"
name: "quay.io/modh/odh-base-rhel9:base-rhel9-python-3.9-20240131-378dafd"
env:
- name: USERNAME
valueFrom:
secretKeyRef:
name: rhel-subscription-secret
key: USERNAME
- name: PASSWORD
valueFrom:
secretKeyRef:
name: rhel-subscription-secret
key: PASSWORD
- name: SERVERURL
valueFrom:
secretKeyRef:
name: rhel-subscription-secret
key: SERVERURL
optional: true
- name: BASEURL
valueFrom:
secretKeyRef:
name: rhel-subscription-secret
key: BASEURL
optional: true
output:
to:
kind: ImageStreamTag
name: "cuda-rhel9:latest"
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: "1"
memory: 1Gi
runPolicy: Serial
triggers:
- imageChange: {}
type: ImageChange
---
kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: cuda-rstudio-rhel9
labels:
app: buildchain
component: cuda-rstudio-image
spec:
source:
type: Git
git:
uri: "https://github.com/red-hat-data-services/notebooks"
ref: main
atheo89 marked this conversation as resolved.
Show resolved Hide resolved
strategy:
type: Docker
dockerStrategy:
dockerfilePath: "rstudio/rhel9-python-3.9/Dockerfile"
noCache: true
from:
kind: "ImageStreamTag"
name: "cuda-rhel9:latest"
env:
- name: USERNAME
valueFrom:
secretKeyRef:
name: rhel-subscription-secret
key: USERNAME
- name: PASSWORD
valueFrom:
secretKeyRef:
name: rhel-subscription-secret
key: PASSWORD
- name: SERVERURL
valueFrom:
secretKeyRef:
name: rhel-subscription-secret
key: SERVERURL
optional: true
- name: BASEURL
valueFrom:
secretKeyRef:
name: rhel-subscription-secret
key: BASEURL
optional: true
output:
to:
kind: ImageStreamTag
name: "cuda-rstudio-rhel9:latest"
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: "1"
memory: 1Gi
runPolicy: Serial
triggers:
- imageChange: {}
type: ImageChange
2 changes: 2 additions & 0 deletions manifests/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ resources:
- jupyter-tensorflow-notebook-imagestream.yaml
- jupyter-trustyai-notebook-imagestream.yaml
- code-server-notebook-imagestream.yaml
- rstudio-buildconfig.yaml
- cuda-rstudio-buildconfig.yaml

commonLabels:
opendatahub.io/component: "true"
Expand Down
2 changes: 1 addition & 1 deletion manifests/base/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ varReference:
- path: spec/tags[]/from/name
kind: ImageStream
apiGroup: image.openshift.io/v1
name: odh-codeserver-notebook-n
name: odh-codeserver-notebook-n
82 changes: 82 additions & 0 deletions manifests/base/rstudio-buildconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
kind: ImageStream
apiVersion: image.openshift.io/v1
metadata:
annotations:
opendatahub.io/notebook-image-creator: RHOAI
opendatahub.io/notebook-image-url: "https://github.com/red-hat-data-services/notebooks/tree/main/rstudio"
opendatahub.io/notebook-image-name: "R Studio"
opendatahub.io/notebook-image-desc: "R Studio Workbench image with an integrated development environment for R, a programming language designed for statistical computing and graphics."
name: rstudio-rhel9
labels:
opendatahub.io/dashboard: 'true'
opendatahub.io/notebook-image: 'true'
spec:
lookupPolicy:
local: true
tags:
- name: latest
annotations:
opendatahub.io/notebook-software: '[{"name":"R","version":"v4.3"},{"name":"Python","version":"v3.9"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"r-studio","version":"4.3"}]'
referencePolicy:
type: Source
---
kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: rstudio-rhel9
labels:
component: rstudio-rhel9-image
spec:
source:
type: Git
git:
uri: "https://github.com/red-hat-data-services/notebooks"
ref: main
strategy:
type: Docker
dockerStrategy:
from:
kind: "DockerImage"
name: "quay.io/modh/odh-base-rhel9:base-rhel9-python-3.9-20240131-378dafd"
dockerfilePath: "rstudio/rhel9-python-3.9/Dockerfile"
env:
- name: USERNAME
valueFrom:
secretKeyRef:
name: rhel-subscription-secret
key: USERNAME
- name: PASSWORD
valueFrom:
secretKeyRef:
name: rhel-subscription-secret
key: PASSWORD
- name: SERVERURL
valueFrom:
secretKeyRef:
name: rhel-subscription-secret
key: SERVERURL
optional: true
- name: BASEURL
valueFrom:
secretKeyRef:
name: rhel-subscription-secret
key: BASEURL
optional: true
noCache: true
output:
to:
kind: ImageStreamTag
name: "rstudio-rhel9:latest"
runPolicy: Serial
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: "1"
memory: 1Gi
triggers:
- imageChange: {}
type: ImageChange
Loading