ansible / ansible-dev-tools

Ansible automation developer tools
https://ansible.readthedocs.io/projects/dev-tools/
GNU General Public License v3.0
69 stars 26 forks source link

Change default container user to root #364

Closed alisonlhart closed 2 weeks ago

alisonlhart commented 2 weeks ago

This changes the default container user for both podman and docker containers to root instead of root and podman respectively. This is to resolve naming confusion as well as Ansible VSCode extension container-in-container issues. The volume mount removal is also due to container-in-container file copy problems that prevented syntax-highlighting and hover features.

Related: https://issues.redhat.com/browse/AAP-30231

alisonlhart commented 2 weeks ago

I have added a workaround in this PR because the new test will not pass until the upstream image has been updated. This is using the --user==root param in the podman call. We can remove this later.

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud