A container image that is able to run bitbake/poky. It has helpers to create users and groups within the container. This is so that the output generated in the container will be readable by the user on the host.
GNU General Public License v2.0
214
stars
96
forks
source link
Add helper script and integrate with ssh-agent #90
user@host$ poky-container run ubuntu-20.04
...
pokyuser@4da677d43c61:/workdir$
Basic help
user@host$ poky-container help
Usage:
poky-container list
List available images
poky-container run IMAGE [HOST_WORKDIR]
Run the selected image on a specific location
Parameters:
IMAGE The name of the image to run
HOST_WORKDIR The working directory, ie, location if the workspace
on the host, which will show as /workdir in the
container.
By default, the current working directory is used.
ssh-agent integration
When launching the container, if SSH_AUTH_SOCK is set, the socket is bind-mounted in the container too and ~/.bashrc in the container recreates the SSH_AUTH_SOCK variable.
Feel free to pick any of the changes or suggest improvements.
Thanks.
Added a script, poky-container, which can be used to simplify the listing and launching of the available containers.
Listing available containers
Note: the list of containers is maintained by hand.
Launching a container
Basic help
ssh-agent integration
When launching the container, if SSH_AUTH_SOCK is set, the socket is bind-mounted in the container too and
~/.bashrc
in the container recreates the SSH_AUTH_SOCK variable.Feel free to pick any of the changes or suggest improvements. Thanks.