Replies: 3 comments 2 replies
-
|
That script should never have existed over Like It is never too late. |
Beta Was this translation helpful? Give feedback.
-
|
As any abstraction layer, it is nice until it doesn't do what you want. I guess this is the point @doganulus is trying to make. At work, we mostly develop using bespoke docker containers built on top of the official ones. We only use this script to setup new vehicles from scratch, which is certainly not something we do very often. I don't think we ever had issue with this script. I personally hate shell scripts, so I would not mind if instead we had to copy paste an Ansible one-liner. |
Beta Was this translation helpful? Give feedback.
-
|
For |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm thinking about simplifying and modernizing the
setup-dev-env.sh-ansible-dockertrio.And wanted to start from the setup-dev-env.sh file.
General complaints
❓▶️ I would like to know if you have any complaints or suggestions about this script, how it could be improved etc.
Here is my breakdown on this script
ansible.ansible's dependencies andansible.ansibleand callsansiblein a brittle way.ansibledirectly after installing it dependencies?Target audience for this script
autoware/setup-dev-env.sh
Line 164 in 447f0e1
Here I see that it is installing
sudowithapt-get -y install sudo.I assume it is expecting the caller to have root privileges.
If you run
docker run -it ubuntu:22.04 bashthen you don't havesudoand you start as root. So it would make sense.But within
docker run -it ros:humble-ros-base-jammybash it comes withsudoalready.And normal users with desktop have it too. So this
sudoinstallation doesn't make sense to me since our target use cases have it installed by default. Why not remove this step??❓▶️ Does anyone know what are the use cases for this setup script?
So far I could identify 2 users:
Ubuntu 22.04desktop users calling it from an interactive terminalros:humble-ros-base-jammybase container users (for building the docker image)cc. @mitsudome-r @youtalk @oguzkaganozt @isamu-takagi @maxime-clem @mojomex @VRichardJP
Beta Was this translation helpful? Give feedback.
All reactions