Skip to content

Commit 53f16c4

Browse files
committed
Merge branch 'master' of github.com:lablup/backend.ai-kernels
2 parents d6f8d39 + 829f2f7 commit 53f16c4

32 files changed

+427
-545
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
*.tar.gz filter=lfs diff=lfs merge=lfs -text
55
*.zip filter=lfs diff=lfs merge=lfs -text
66
*.tgz filter=lfs diff=lfs merge=lfs -text
7+
*.bin filter=lfs diff=lfs merge=lfs -text

build.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def print_header(s):
2222
click.secho(s, fg='yellow', bold=True)
2323

2424

25-
def build_kernel(name, tag, extra_opts='', *, squash=False):
25+
def build_kernel(name, tag, extra_opts='', *, squash=False, testing=False):
2626
assert Path(name).is_dir()
2727

2828
sq = '--squash' if squash else ''
@@ -44,11 +44,15 @@ def build_kernel(name, tag, extra_opts='', *, squash=False):
4444
'the new kernelspec.',
4545
fg='yellow', err=True)
4646
return
47+
if testing:
48+
img_ref = f'beta.docker.backend.ai/testing/{short_name}:{tag}'
49+
else:
50+
img_ref = f'lablup/{short_name}:{tag}'
4751
run('docker build '
48-
f'-t lablup/{short_name}:{tag} {extra_opts} '
52+
f'-t {img_ref} {extra_opts} '
4953
f'-f {dockerfile} {sq} {name}')
5054
if auto_push.get():
51-
run(f'docker push lablup/{short_name}:{tag}')
55+
run(f'docker push {img_ref}')
5256

5357

5458
def build_common(name, tag, extra_opts=''):
@@ -74,7 +78,7 @@ def build_common(name, tag, extra_opts=''):
7478
'tf-old', 'tf-current', 'tf-future',
7579
'caffe', 'pytorch',
7680
'cntk-builder','cntk',
77-
'vendor-aws', 'vendor-ngc',
81+
'vendor-aws', 'vendor-ngc', 'vendor-freecad',
7882
]
7983

8084

@@ -338,6 +342,9 @@ def main(build, list_builds, _auto_push):
338342
if 'vendor-aws' in build:
339343
build_kernel('vendor/aws_polly', '0.1-alpine3.8')
340344

345+
if 'vendor-freecad' in build:
346+
build_kernel('vendor/freecad', '0.18-glvnd1.1')
347+
341348
if 'vendor-ngc' in build:
342349
build_kernel('vendor/ngc-caffe2', '18.08-py2')
343350
build_kernel('vendor/ngc-caffe3', '18.08-py3')

0 commit comments

Comments
 (0)