Skip to content
This repository was archived by the owner on Oct 10, 2020. It is now read-only.

Run cmd#938

Closed
baude wants to merge 3 commits intoprojectatomic:masterfrom
baude:run_cmd
Closed

Run cmd#938
baude wants to merge 3 commits intoprojectatomic:masterfrom
baude:run_cmd

Conversation

@baude
Copy link
Member

@baude baude commented Mar 14, 2017

No description provided.

baude added 2 commits March 13, 2017 13:11
An exception was being thrown when trying to run a command inside
an already running container.  For example:

sudo atomic run foobar echo true

The problem was a lack of a setter for user_command in the container
object as well as some mishandled string <-> list conversions.
Prior to refactoring, we had a check_latest method that would check
to see if the image being used by container was the latest image
by simply comparing hash IDs.

Adding this back in and refactoring into docker.py.
Copy link

@TomSweeneyRedHat TomSweeneyRedHat left a comment

Choose a reason for hiding this comment

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

LGTM


@user_command.setter
def user_command(self, value):
self._user_command = value No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

Add Return

@rhatdan
Copy link
Member

rhatdan commented Mar 14, 2017

Just a nit and LGTM

If the image is built (and updated) locally, we need to handle this
differently than if the image came from a registry.  We now
can try/except our way through things and properly handle.
@baude
Copy link
Member Author

baude commented Mar 16, 2017

updated per comments.

@rhatdan
Copy link
Member

rhatdan commented Mar 16, 2017

@rh-atomic-bot r+ ea5368e

@rh-atomic-bot
Copy link

⌛ Testing commit ea5368e with merge ce57e8e...

rh-atomic-bot pushed a commit that referenced this pull request Mar 16, 2017
Prior to refactoring, we had a check_latest method that would check
to see if the image being used by container was the latest image
by simply comparing hash IDs.

Adding this back in and refactoring into docker.py.

Closes: #938
Approved by: rhatdan
rh-atomic-bot pushed a commit that referenced this pull request Mar 16, 2017
If the image is built (and updated) locally, we need to handle this
differently than if the image came from a registry.  We now
can try/except our way through things and properly handle.

Closes: #938
Approved by: rhatdan
@rh-atomic-bot
Copy link

☀️ Test successful - status-redhatci
Approved by: rhatdan
Pushing ce57e8e to master...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants