-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][RFR] Update docker-py 1.10 to docker 4.2 #10082
Conversation
52c3780
to
ec975fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With first look LGTM. I will test locally.
Thanks for dropping docker-py @mshriver
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to verify that running miq selenium-container
locally worked, so LGTM. Worth noting that I had to nuke my venv even after uninstalling docker-py
and installing docker
.
Seemed to be related to docker/docker-py#1370
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested Locally works fine for me 👍
@@ -33,7 +33,7 @@ def vnc_ready(addr, port): | |||
@click.option('--image', help='Chooses selenium container image', | |||
default=docker_conf.get('selff', 'cfmeqe/sel_ff_chrome')) | |||
@click.option('--vncviewer', help='Chooses VNC viewer command', | |||
default=docker_conf.get('vncviewer', 'vinagre')) | |||
default=docker_conf.get('vncviewer', 'vncviewer')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional:
Mike one thought came in mind like better to make xdg-open
as default. maybe vncviewer not installed on user system
but our most of user use vncviewer
@@ -33,7 +33,7 @@ def vnc_ready(addr, port): | |||
@click.option('--image', help='Chooses selenium container image', | |||
default=docker_conf.get('selff', 'cfmeqe/sel_ff_chrome')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we start using quay.io/redhatqe/selenium-standalone
?
The structure of the library changed significantly, thus dockerbot needed significant changes Change docker API in dockerbot for container start kwargs
ec975fa
to
2c31fdc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
I will move default image to quay.io/redhatqe/selenium-standalone
.
The structure of the library changed significantly, thus dockerbot needed significant changes
We no longer need to process info from inspect, and the interface for creating an running containers has completely changed.
I moved some of the logging around, and changed the logic to accommodate the docker API changes.
NOTE:
I stopped short of updating the dockerfile for the pytest container. It needs to be rewritten to use quickstart, but that is out of scope of trying to update our docker dependency.
The DockerInstance changes can be verified by running
miq-selenium-container