Re: #west #west


Bolivar, Marti
 

Hello,

Some responses inline.

"ahmed.balata via lists.zephyrproject.org"
<ahmed.balata=tu-dortmund.de@lists.zephyrproject.org> writes:

Hello,
I want or create a docker image for Zephyr, I have a script that has
west init /
West Update
west zephyr export
..........and the next steps. While the previous steps are in Dockerfile.

when i use this script as entrypoint, i get these errors
Line 9: West: command not found
Line 10: West: command not found
Line 11: West: command not found
If these are really copy/pasted from the error output, then the problem
seems to be that it should be "west", not "West" -- lowercase "w", that
is.


but if I normally execute the container and then manually execute the
script in the container, I don't get any errors.
The other thing to check is that the west executable installed by pip is
in the PATH. Use "pip3 show -f west" to find these.

So for example:

Location: /foo/lib/python3.8/site-packages
Files:
../../../bin/west

This means west is in
/foo/lib/python3.8/site-packages/../../../bin/west, or
/foo/bin/west

Martí


How can i use such script as an entrypoint?
Thank you

Join users@lists.zephyrproject.org to automatically receive all group messages.