CentOS-PaaS-SIG / contra-env-infra

Repository to store core infrastructure s2i templates and dockerfiles to support DevOps and CI/CD workflows
GNU General Public License v3.0
3 stars 14 forks source link

Container generation for ansible-executor fails because of missing dependency #60

Open iranzo opened 4 years ago

iranzo commented 4 years ago

imagen

iranzo commented 4 years ago

Forcing Dockerfile to use F29 allows the build to continue

robnester-rh commented 4 years ago

I believe this stems from an expectation of python 3 being the default on Fedora >= 30. The following allows you to set python 3 as the default and results in successful completion:

# sudo update-alternatives --install /usr/bin/python python /usr/bin /python2.7 50
# sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 60
# sudo update-alternatives --config python

Note: Your python version may be 3.5,3.6,3.7 etc. update as appropriate in the above command for python 3.

iranzo commented 4 years ago

Thing is that if I use this repo for generation and it defaults to fedora 30, it should also do above commands in the docker file if needed, isn't it?

However the docker file is failing when adding the dependency for boto for python2 which is no longer there

robnester-rh commented 4 years ago

My apologies. My initial reading of this presumed that it was an issue in executing the ansible playbook itself. Disregard my comment.