@@ -131,14 +131,19 @@ tasks:
131
131
desc : Build the Python 3.x image with "Noteable feature"-related packages (SQL, git integration, DEX, etc) extending the datascience image of the same version
132
132
cmds :
133
133
# ensure the datascience image is built first
134
- - task python:datascience:build IDENTIFIER=noteable-gpu NBL_PYTHON_VERSION={{.NBL_PYTHON_VERSION}}
134
+ - task python:datascience:build IDENTIFIER=noteable NBL_PYTHON_VERSION={{.NBL_PYTHON_VERSION}}
135
135
# copy over noteable-specific files
136
136
- task python:noteable:copy-files IDENTIFIER=noteable NBL_PYTHON_VERSION={{.NBL_PYTHON_VERSION}}
137
- # copy dev_packages for local builds, even if we aren't using the dev stage
138
- - sudo cp -R python/noteable/dev_packages python/noteable/{{.NBL_PYTHON_VERSION}}/
139
137
# build the noteable image off of the datascience image
140
138
- task build LANGUAGE=python NBL_LANGUAGE_VERSION={{.NBL_PYTHON_VERSION}} IDENTIFIER=noteable BUILD_TARGET={{.BUILD_TARGET}} -- --build-context base=docker-image://local/kernel-python-{{.NBL_PYTHON_VERSION}}-datascience:dev
141
139
140
+ noteable:build-with-dev-packages :
141
+ desc : LOCAL DEV - Build the Python 3.x image with "Noteable feature"-related packages (SQL, git integration, DEX, etc) and dev_packages extending the datascience image of the same version
142
+ cmds :
143
+ # copy dev_packages in and then build with BUILD_TARGET specified
144
+ - sudo cp -R python/noteable/dev_packages python/noteable/{{.NBL_PYTHON_VERSION}}/
145
+ - task python:noteable:build IDENTIFIER=noteable NBL_PYTHON_VERSION={{.NBL_PYTHON_VERSION}} BUILD_TARGET=dev
146
+
142
147
# Noteable GPU image
143
148
noteable-gpu:lock-dependencies :
144
149
desc : Lock Python dependencies for Noteable builds using pip-compile
@@ -152,11 +157,16 @@ tasks:
152
157
- task python:datascience-gpu:build IDENTIFIER=noteable-gpu NBL_PYTHON_VERSION={{.NBL_PYTHON_VERSION}}
153
158
# copy over noteable-specific files
154
159
- task python:noteable:copy-files IDENTIFIER=noteable NBL_PYTHON_VERSION={{.NBL_PYTHON_VERSION}} FILE_PREFIX="gpu."
155
- # copy dev_packages for local builds, even if we aren't using the dev stage
156
- - sudo cp -R python/noteable/gpu_dev_packages python/noteable/{{.NBL_PYTHON_VERSION}}/
157
160
# build the noteable-gpu image off of the datascience-gpu image
158
161
- task build LANGUAGE=python NBL_LANGUAGE_VERSION={{.NBL_PYTHON_VERSION}} IDENTIFIER=noteable BUILD_TARGET={{.BUILD_TARGET}} TAG_SUFFIX=-gpu -- --build-context base=docker-image://local/kernel-python-{{.NBL_PYTHON_VERSION}}-datascience-gpu:dev
159
162
163
+ noteable-gpu:build-with-dev-packages :
164
+ desc : LOCAL DEV - Build the Python 3.x image with "Noteable feature"-related packages (SQL, git integration, DEX, etc), GPU support, and dev_packages
165
+ cmds :
166
+ # copy dev_packages in and then build with BUILD_TARGET specified
167
+ - sudo cp -R python/noteable/gpu_dev_packages python/noteable/{{.NBL_PYTHON_VERSION}}/
168
+ - task python:noteable-gpu:build IDENTIFIER=noteable NBL_PYTHON_VERSION={{.NBL_PYTHON_VERSION}} BUILD_TARGET=gpu-dev
169
+
160
170
# convenience functions for building multiple images in parallel
161
171
base:lock-all-dependencies :
162
172
desc : Lock Python dependencies for all Python 3.x builds using pip-compile
@@ -259,14 +269,12 @@ tasks:
259
269
noteable:build-all-with-dev-packages :
260
270
desc : LOCAL DEV - Build all `noteable` images with `dev_packages` included
261
271
deps :
262
- - task : noteable:build
272
+ - task : noteable:build-with-dev-packages
263
273
vars :
264
274
NBL_PYTHON_VERSION : 3.9
265
- BUILD_TARGET : dev
266
- - task : noteable:build
275
+ - task : noteable:build-with-dev-packages
267
276
vars :
268
277
NBL_PYTHON_VERSION : 3.10
269
- BUILD_TARGET : dev
270
278
271
279
noteable-gpu:lock-all-dependencies :
272
280
desc : Lock Python dependencies for all Python 3.x GPU builds using pip-compile
@@ -280,21 +288,21 @@ tasks:
280
288
desc : Build all Python noteable-gpu images
281
289
deps :
282
290
- task : noteable-gpu:build
283
- vars : { NBL_PYTHON_VERSION: 3.9 }
291
+ vars :
292
+ NBL_PYTHON_VERSION : 3.9
284
293
- task : noteable-gpu:build
285
- vars : { NBL_PYTHON_VERSION: 3.10 }
294
+ vars :
295
+ NBL_PYTHON_VERSION : 3.10
286
296
287
297
noteable-gpu:build-all-with-dev-packages :
288
298
desc : LOCAL DEV - Build all `noteable` images with `gpu_dev_packages` included
289
299
deps :
290
- - task : noteable-gpu:build
300
+ - task : noteable-gpu:build-with-dev-packages
291
301
vars :
292
302
NBL_PYTHON_VERSION : 3.9
293
- BUILD_TARGET : gpu-dev
294
- - task : noteable-gpu:build
303
+ - task : noteable-gpu:build-with-dev-packages
295
304
vars :
296
305
NBL_PYTHON_VERSION : 3.10
297
- BUILD_TARGET : gpu-dev
298
306
299
307
# convenience functions for building all images
300
308
lock-all-dependencies :
0 commit comments