-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/tnation/docker py #12
Conversation
tasks/main.yml
Outdated
@@ -26,6 +26,6 @@ | |||
- Restart Docker | |||
|
|||
- name: Install Docker API client for Python | |||
pip: name=docker-py | |||
pip: name=docker |
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.
Since this is going to break backwards compatibility anyway (major revision bump), I think that it makes sense to rename docker_py_version
to something like docker_python_sdk_version
or something like that.
examples/site.yml
Outdated
@@ -9,8 +9,5 @@ | |||
- { role: "azavea.docker" } | |||
|
|||
tasks: | |||
- name: Bring up a test container |
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.
Is there a reason this was taken out? I agree that it probably has little value, but given that, it at least exercises the interaction between Ansible and the Docker Engine (which happens via the Docker for Python SDK).
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 took it out because the Ansible docker module is deprecated. Additionally, when I was researching the replacement, docker_container
, the requirements indicated that the interaction between Ansible and the Docker API are still taking place via the old docker-py
module. It wasn't testing the current docker SDK installation anymore. I've updated this task to run a docker command on the VM using Ansible command
, which does require the docker SDK to work properly.
6aa1f27
to
2f52b1d
Compare
Updated. |
Ugh, I think I made a mistake in the assembly of the issue that led to this PR. I thought that swapping The main goal here is to install Docker via Ansible so that it works for the follow two cases:
Perhaps the right move here is to remove the |
Updated, the |
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.
👍
Sorry for the confusion around this issue. Please ensure that we bump the major version of this on release too.
29874dc
to
2ee5eb4
Compare
Install the Docker SDK instead of docker-py. Also, bump
ansible-pip
role version and update the example installation to be compatible with the new version of docker.Fixes #11
Testing