Open drzraf opened 6 years ago
@drzraf Unfortunately , I believe this is expected behavior: conductor needs to be compatible OS system. This introduces side effects of course, when your services are based on different base images. Ideally, there should be possibility to override conductor on per service basis.
ISSUE TYPE
container.yml
OS / ENVIRONMENT
SUMMARY
I can't provision mariadb (based on Debian Jessie) using Alpine as a connector.
STEPS TO REPRODUCE
mysql/tasks/main.yml
EXPECTED RESULTS
image built
ACTUAL RESULTS
NOTE 1:
Running this raw task with
gather_facts: no
:- raw: "ls -l /_usr/bin/python*"
shows that the executable actually exists:NOTE 2:
30d2d9db2593 being the container:
and the file actually exists in /_usr/bin, is an executable:
The same applies for all binaries not symlinked to /bin/busybox, ex:
WORKAROUND:
Install Python3 in the guest
mariadb
container, using: Incontainer.yml
- { role: mysql, gather_facts: no, ansible_python_interpreter: "/usr/bin/python3", mysql: "{% raw %} {{ site.mysql }} {% endraw %}" }
In
mysql/tasks/main.yml
- raw: "apt-get update && apt-get -y install python3-minimal"
Run with:
ansible-container --debug --vars-files vars/main.yml build --use-local-python
See also : #511