-
Notifications
You must be signed in to change notification settings - Fork 394
The MySQL-python module is required #906
Comments
I ran into the same issue. I fixed this issue with the following changes:
This will make sure MySQL-python module is installed into the ansible-container for Debian / Ubuntu based images. |
Hi wmx32, Thanks for helping me. When I try your fix, I have the same error as before. The conductor doesn't seems to have the MySQL-Python module installed:
My changes according your previous post: conductor-src-dockerfile.j2
conductor-local-dockerfile.j2
requirements.txt
And my ansible container run with debug option:
Did I miss something? |
`FROM ansible/container-conductor-ubuntu-xenial:0.9.2 RUN apt-get update && apt-get install RUN pip install ENV TZ="Europe/Rome" That's my custom conductor dockerfile. I build it with :
No other changes needed. |
So you're building your conductor before running ansible-container. |
ISSUE TYPE
container.yml
OS / ENVIRONMENT
SUMMARY
The Mysql requirements are installed in my ansible conductor but I cannot manage mysql databases inside my target container.
STEPS TO REPRODUCE
add the required packages to container/docker/templates/conductor-local-dockerfile.j2 and run ansible-container build.
If I use the method explained here it doesn't work for me so I put everything in this file. See my comment at the end of the 531 issue to see what's the problem when I follow the procedure from @chouseknecht .
conductor-local-dockerfile.j2
EXPECTED RESULTS
A Debian container with a mysql database created.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: