Skip to content

Commit

Permalink
- fixed bug when adding automation in the local repository: "cm add .…
Browse files Browse the repository at this point in the history
… {automation_name}"

- cosmetic improvements for Docker runs
  • Loading branch information
gfursin committed Apr 13, 2024
1 parent cc102e8 commit e5ab18d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cm-mlops/automation/script/module_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,8 @@ def dockerfile(i):
if r['return'] > 0:
return r

print("Dockerfile generated at "+dockerfile_path)
print ('')
print ("Dockerfile generated at " + dockerfile_path)

return {'return':0}

Expand Down
3 changes: 2 additions & 1 deletion cm-mlops/script/app-mlperf-inference/build_dockerfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
if r['return'] > 0:
print(r)
exit(1)
print("Dockerfile generated at "+dockerfile_path)

print ('')
print ("Dockerfile generated at " + dockerfile_path)

1 change: 1 addition & 0 deletions cm-mlops/script/run-docker-container/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def preprocess(i):
if docker_image and recreate_image != "yes":
print("Docker image exists with ID: " + docker_image)
env['CM_DOCKER_IMAGE_EXISTS'] = "yes"

elif recreate_image == "yes":
env['CM_DOCKER_IMAGE_RECREATE'] = "no"

Expand Down
1 change: 1 addition & 0 deletions cm/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- changed outdated version of CM in requirements when creating new repos
- fixed minor bug in `cm add automation {name}`
- added dependency on giturlparse to support private repos in containers
- fixed bug when adding automation in the local repository: "cm add . {automation_name}"

## V2.0.4
- added skip of delayed help to simplify output of `cmr [tags] --help`
Expand Down
2 changes: 1 addition & 1 deletion cm/cmind/repo/automation/automation/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def add(self, i):
if 'tags' in i: del(i['tags'])

automation = i['automation']
if ',' not in automation:
if automation!='.' and ',' not in automation:
i['automation'] = automation + ',' + self.meta['uid']

r_obj=self.cmind.access(i)
Expand Down

0 comments on commit e5ab18d

Please sign in to comment.