Skip to content

Conversation

atrisovic
Copy link
Member

Signed-off-by: Ana Trisovic ana.trisovic@gmail.com

@atrisovic atrisovic force-pushed the docker branch 2 times, most recently from bd52536 to a736f8a Compare February 14, 2018 16:39
check_call(["docker", "save", "-o", "{}.tar".format(img_name), img_name])
self.upload(pid=pid, filepath=img_name, output_filename=img_name)
check_call(["rm", "{}.tar".format(img_name)])
except CalledProcessError:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't hide exceptions ;)

try:
response = ctx.obj.cap_api.docker_push(pid=pid, img_name=img_name)
click.echo(json.dumps(response, indent=4))
except Exception as ex:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here first catch with StatusCodeException, check other cli methods

@atrisovic atrisovic force-pushed the docker branch 13 times, most recently from 12fc33a to 1f6fead Compare February 22, 2018 13:34
@atrisovic atrisovic changed the title WIP cli: add docker image upload cli: add docker image upload Feb 22, 2018
@atrisovic atrisovic force-pushed the docker branch 2 times, most recently from 8e840b5 to 28526ba Compare February 22, 2018 15:10
@coveralls
Copy link

coveralls commented Feb 22, 2018

Coverage Status

Coverage decreased (-1.6%) to 61.217% when pulling 483bcc8 on atrisovic:docker into bd67c84 on cernanalysispreservation:master.

@atrisovic atrisovic force-pushed the docker branch 3 times, most recently from 52bbbb0 to 736984f Compare February 22, 2018 15:57
Signed-off-by: Ana Trisovic <ana.trisovic@gmail.com>
@ioannistsanaktsidis ioannistsanaktsidis merged commit 483bcc8 into cernanalysispreservation:master Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants