What's the point of this call to source
?
#109
Replies: 3 comments
-
I'm opening this as a question first because it's likely that I'm just misunderstanding something. Please do me an educate 😄 |
Beta Was this translation helpful? Give feedback.
-
This could be combined with #102 / #108 into a dockerfile cleanup issue once space-ros/space-ros#114 is resolved |
Beta Was this translation helpful? Give feedback.
-
This is the case. Each |
Beta Was this translation helpful? Give feedback.
-
I just noticed that we are all over the place calling
bash -c 'source <path>'
before we execute ros-related commands. To me, this makes sense under the assumption that the adjustments made by those invocations do not persist across dockerRUN
s.But then I noticed the same at the very end of a
RUN
:docker/space_robots/Dockerfile
Line 78 in 76cd412
What's the point of doing that?
If the effects of calling
source
persist acrossRUN
s, then should these be simplified throughout the file? Note that just removing duplication is not enough of a reason to factorize those; there are circumstances under which you want to spell it out twice.If the effects of calling
source
do not persist acrossRUN
s, then we should just remove that last bit from the line above.Beta Was this translation helpful? Give feedback.
All reactions