Skip to content

Commit 3c29f5e

Browse files
harshad16Chad Roberts
authored andcommitted
updates on gpu buildconfigs and imagestreams
Signed-off-by: Harshad Reddy Nalla <hnalla@redhat.com>
1 parent 5758d4b commit 3c29f5e

2 files changed

Lines changed: 161 additions & 85 deletions

File tree

jupyterhub/notebook-images/overlays/cuda-11.0.3/cuda-ubi8-build-chain.yaml

Lines changed: 124 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -9,143 +9,201 @@ items:
99
local: true
1010
tags:
1111
- name: latest
12+
annotations: null
1213
from:
1314
kind: DockerImage
14-
name: "nvcr.io/nvidia/cuda:$(cuda_version)-cudnn8-devel-ubi8"
15+
name: 'nvcr.io/nvidia/cuda:$(cuda_version)-cudnn8-devel-ubi8'
16+
generation: 2
1517
importPolicy: {}
1618
referencePolicy:
17-
type: Local
19+
type: Source
1820
- kind: ImageStream
1921
apiVersion: image.openshift.io/v1
2022
metadata:
2123
name: "$(cuda_version)-cuda-s2i-core-ubi8"
2224
spec:
2325
lookupPolicy:
2426
local: true
27+
tags:
28+
- name: latest
29+
annotations: null
30+
generation: 1
31+
importPolicy: {}
32+
referencePolicy:
33+
type: Local
2534
- kind: ImageStream
2635
apiVersion: image.openshift.io/v1
2736
metadata:
2837
name: "$(cuda_version)-cuda-s2i-base-ubi8"
2938
spec:
3039
lookupPolicy:
3140
local: true
41+
tags:
42+
- name: latest
43+
annotations: null
44+
generation: 1
45+
importPolicy: {}
46+
referencePolicy:
47+
type: Local
3248
- kind: ImageStream
3349
apiVersion: image.openshift.io/v1
3450
metadata:
3551
name: "$(cuda_version)-cuda-s2i-py38-ubi8"
3652
spec:
3753
lookupPolicy:
3854
local: true
55+
tags:
56+
- name: latest
57+
annotations: null
58+
generation: 1
59+
importPolicy: {}
60+
referencePolicy:
61+
type: Local
3962
- kind: ImageStream
4063
apiVersion: image.openshift.io/v1
4164
metadata:
4265
name: "$(cuda_version)-cuda-s2i-thoth-ubi8-py38"
4366
spec:
4467
lookupPolicy:
4568
local: true
69+
tags:
70+
- name: latest
71+
annotations: null
72+
generation: 1
73+
importPolicy: {}
74+
referencePolicy:
75+
type: Local
4676
- kind: BuildConfig
4777
apiVersion: build.openshift.io/v1
4878
metadata:
4979
name: "$(cuda_version)-cuda-s2i-core-ubi8"
5080
spec:
51-
triggers:
52-
- imageChange: {}
53-
type: ImageChange
54-
source:
55-
type: Git
56-
git:
57-
uri: "https://github.com/sclorg/s2i-base-container"
58-
ref: "master"
59-
contextDir: "core/"
81+
nodeSelector: null
82+
output:
83+
to:
84+
kind: ImageStreamTag
85+
name: '$(cuda_version)-cuda-s2i-core-ubi8:latest'
86+
resources: {}
87+
completionDeadlineSeconds: 1800
88+
successfulBuildsHistoryLimit: 1
89+
failedBuildsHistoryLimit: 1
6090
strategy:
6191
type: Docker
6292
dockerStrategy:
63-
noCache: true
64-
dockerfilePath: "Dockerfile.rhel8"
6593
from:
6694
kind: ImageStreamTag
67-
name: nvidia-cuda-$(cuda_version):latest
68-
output:
69-
to:
70-
kind: ImageStreamTag
71-
name: $(cuda_version)-cuda-s2i-core-ubi8:latest
95+
name: 'nvidia-cuda-$(cuda_version):latest'
96+
noCache: true
97+
dockerfilePath: Dockerfile.rhel8
98+
postCommit: {}
99+
source:
100+
type: Git
101+
git:
102+
uri: 'https://github.com/sclorg/s2i-base-container'
103+
ref: master
104+
contextDir: core
105+
triggers:
106+
- type: ImageChange
107+
imageChange: {}
108+
runPolicy: SerialLatestOnly
72109
- kind: BuildConfig
73110
apiVersion: build.openshift.io/v1
74111
metadata:
75112
name: "$(cuda_version)-cuda-s2i-base-ubi8"
76113
spec:
77-
triggers:
78-
- imageChange: {}
79-
type: ImageChange
80-
source:
81-
type: Git
82-
git:
83-
uri: "https://github.com/sclorg/s2i-base-container"
84-
ref: "master"
85-
contextDir: "base/"
114+
nodeSelector: null
115+
output:
116+
to:
117+
kind: ImageStreamTag
118+
name: '$(cuda_version)-cuda-s2i-base-ubi8:latest'
119+
resources: {}
120+
completionDeadlineSeconds: 1800
121+
successfulBuildsHistoryLimit: 1
122+
failedBuildsHistoryLimit: 1
86123
strategy:
87124
type: Docker
88125
dockerStrategy:
89-
noCache: true
90-
dockerfilePath: "Dockerfile.rhel8"
91126
from:
92127
kind: ImageStreamTag
93-
name: $(cuda_version)-cuda-s2i-core-ubi8:latest
94-
output:
95-
to:
96-
kind: ImageStreamTag
97-
name: $(cuda_version)-cuda-s2i-base-ubi8:latest
128+
name: '$(cuda_version)-cuda-s2i-core-ubi8:latest'
129+
noCache: true
130+
dockerfilePath: Dockerfile.rhel8
131+
postCommit: {}
132+
source:
133+
type: Git
134+
git:
135+
uri: 'https://github.com/sclorg/s2i-base-container'
136+
ref: master
137+
contextDir: base
138+
triggers:
139+
- type: ImageChange
140+
imageChange: {}
141+
runPolicy: SerialLatestOnly
98142
- kind: BuildConfig
99143
apiVersion: build.openshift.io/v1
100144
metadata:
101145
name: "$(cuda_version)-cuda-s2i-py38-ubi8"
102146
spec:
103-
triggers:
104-
- imageChange: {}
105-
type: ImageChange
106-
source:
107-
type: Git
108-
git:
109-
uri: "https://github.com/sclorg/s2i-python-container"
110-
ref: "master"
111-
contextDir: "3.8/"
147+
nodeSelector: null
148+
output:
149+
to:
150+
kind: ImageStreamTag
151+
name: '$(cuda_version)-cuda-s2i-py38-ubi8:latest'
152+
resources: {}
153+
completionDeadlineSeconds: 1800
154+
successfulBuildsHistoryLimit: 1
155+
failedBuildsHistoryLimit: 1
112156
strategy:
113157
type: Docker
114158
dockerStrategy:
115-
noCache: true
116-
dockerfilePath: "Dockerfile.rhel8"
117159
from:
118160
kind: ImageStreamTag
119-
name: $(cuda_version)-cuda-s2i-base-ubi8:latest
120-
output:
121-
to:
122-
kind: ImageStreamTag
123-
name: $(cuda_version)-cuda-s2i-py38-ubi8:latest
161+
name: '$(cuda_version)-cuda-s2i-base-ubi8:latest'
162+
noCache: true
163+
dockerfilePath: Dockerfile.rhel8
164+
postCommit: {}
165+
source:
166+
type: Git
167+
git:
168+
uri: 'https://github.com/sclorg/s2i-python-container'
169+
ref: master
170+
contextDir: '3.8'
171+
triggers:
172+
- type: ImageChange
173+
imageChange: {}
174+
runPolicy: SerialLatestOnly
124175
- kind: BuildConfig
125176
apiVersion: build.openshift.io/v1
126177
metadata:
127178
name: "$(cuda_version)-cuda-s2i-thoth-ubi8-py38"
128179
spec:
129-
triggers:
130-
- imageChange: {}
131-
type: ImageChange
132-
source:
133-
type: Git
134-
git:
135-
uri: "https://github.com/thoth-station/s2i-thoth"
136-
ref: "v0.26.0"
137-
contextDir: "ubi8-py38/"
180+
nodeSelector: null
181+
output:
182+
to:
183+
kind: ImageStreamTag
184+
name: '$(cuda_version)-cuda-s2i-thoth-ubi8-py38:latest'
185+
resources: {}
186+
completionDeadlineSeconds: 1800
187+
successfulBuildsHistoryLimit: 1
188+
failedBuildsHistoryLimit: 1
138189
strategy:
139190
type: Docker
140191
dockerStrategy:
141-
noCache: true
142-
dockerfilePath: "Dockerfile"
143192
from:
144193
kind: ImageStreamTag
145-
name: "$(cuda_version)-cuda-s2i-py38-ubi8:latest"
146-
output:
147-
to:
148-
kind: ImageStreamTag
149-
name: "$(cuda_version)-cuda-s2i-thoth-ubi8-py38:latest"
194+
name: '$(cuda_version)-cuda-s2i-py38-ubi8:latest'
195+
noCache: true
196+
dockerfilePath: Dockerfile
197+
postCommit: {}
198+
source:
199+
type: Git
200+
git:
201+
uri: 'https://github.com/thoth-station/s2i-thoth'
202+
ref: v0.26.0
203+
contextDir: ubi8-py38
204+
triggers:
205+
- type: ImageChange
206+
imageChange: {}
207+
runPolicy: SerialLatestOnly
150208
kind: List
151209
metadata: {}

jupyterhub/notebook-images/overlays/cuda-11.0.3/gpu-notebook.yaml

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,17 @@ items:
7272
metadata:
7373
name: s2i-minimal-gpu-cuda-$(cuda_version)-notebook
7474
spec:
75+
nodeSelector: null
7576
output:
7677
to:
7778
kind: ImageStreamTag
7879
name: 'minimal-gpu:py3.8-cuda-$(cuda_version)'
80+
resources:
81+
requests:
82+
memory: 4Gi
83+
completionDeadlineSeconds: 1800
84+
successfulBuildsHistoryLimit: 1
85+
failedBuildsHistoryLimit: 1
7986
strategy:
8087
type: Docker
8188
dockerStrategy:
@@ -84,70 +91,81 @@ items:
8491
name: '$(cuda_version)-cuda-s2i-thoth-ubi8-py38:latest'
8592
noCache: true
8693
dockerfilePath: Dockerfile
94+
postCommit: {}
8795
source:
8896
type: Git
8997
git:
90-
ref: python38
9198
uri: 'https://github.com/thoth-station/s2i-minimal-notebook'
99+
ref: python38
92100
triggers:
93-
- type: ConfigChange
94101
- type: ImageChange
95-
resources:
96-
requests:
97-
memory: 4Gi
102+
imageChange: {}
103+
runPolicy: SerialLatestOnly
98104
- kind: BuildConfig
99105
apiVersion: build.openshift.io/v1
100106
metadata:
101107
name: s2i-tensorflow-gpu-cuda-$(cuda_version)-notebook
102108
spec:
109+
nodeSelector: null
103110
output:
104111
to:
105112
kind: ImageStreamTag
106113
name: 'tensorflow-gpu:py3.8-cuda-$(cuda_version)'
114+
resources:
115+
limits:
116+
memory: 8Gi
117+
requests:
118+
memory: 6Gi
119+
completionDeadlineSeconds: 1800
120+
successfulBuildsHistoryLimit: 1
121+
failedBuildsHistoryLimit: 1
107122
strategy:
108123
type: Source
109124
sourceStrategy:
110125
from:
111126
kind: ImageStreamTag
112127
name: 'minimal-gpu:py3.8-cuda-$(cuda_version)'
128+
postCommit: {}
113129
source:
114130
type: Git
115131
git:
116-
ref: python38
117132
uri: 'https://github.com/thoth-station/s2i-tensorflow-gpu-notebook'
133+
ref: python38
118134
triggers:
119-
- type: ConfigChange
120135
- type: ImageChange
121-
resources:
122-
limits:
123-
memory: 8Gi
124-
requests:
125-
memory: 6Gi
136+
imageChange: {}
137+
runPolicy: SerialLatestOnly
126138
- kind: BuildConfig
127139
apiVersion: build.openshift.io/v1
128140
metadata:
129141
name: s2i-pytorch-gpu-cuda-$(cuda_version)-notebook
130142
spec:
143+
nodeSelector: null
131144
output:
132145
to:
133146
kind: ImageStreamTag
134147
name: 'pytorch-gpu:py3.8-cuda-$(cuda_version)'
148+
resources:
149+
limits:
150+
memory: 8Gi
151+
requests:
152+
memory: 6Gi
153+
completionDeadlineSeconds: 1800
154+
successfulBuildsHistoryLimit: 1
155+
failedBuildsHistoryLimit: 1
135156
strategy:
136157
type: Source
137158
sourceStrategy:
138159
from:
139160
kind: ImageStreamTag
140161
name: 'minimal-gpu:py3.8-cuda-$(cuda_version)'
162+
postCommit: {}
141163
source:
142164
type: Git
143165
git:
144-
ref: python38
145166
uri: 'https://github.com/thoth-station/s2i-pytorch-notebook'
167+
ref: python38
146168
triggers:
147-
- type: ConfigChange
148169
- type: ImageChange
149-
resources:
150-
limits:
151-
memory: 8Gi
152-
requests:
153-
memory: 6Gi
170+
imageChange: {}
171+
runPolicy: SerialLatestOnly

0 commit comments

Comments
 (0)