diff --git a/README.md b/README.md index 79a0e5e..ea0652f 100644 --- a/README.md +++ b/README.md @@ -57,14 +57,19 @@ point. docker run --rm -it -v myvolume:/workdir crops/poky --workdir=/workdir ``` - Let's discuss the options: - * **_--workdir=/workdir_**: This causes the container to start in the directory + Available options: + * **_--help_**: show help message and exit. + * **_--workdir=WORKDIR_**: This causes the container to start in the directory specified. This can be any directory in the container. The container will also use the uid and gid of the workdir as the uid and gid of the user in the container. + * **_--id=ID_**: uid and gid to use for the user inside the container. It should be in the form uid:gid. - This should put you at a prompt similar to: + The previous example should put you at a prompt similar to: ``` pokyuser@3bbac563cacd:/workdir$ ``` At this point you should be able to follow the same instructions as described - in https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html + in https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html#building-your-image to build an image. + + Note that the container should not be used to clone Poky or obtain any other meta-data, which must be done + _outside_ the container using common tools like Git, as stated in https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html#use-git-to-clone-poky diff --git a/poky-entry.py b/poky-entry.py index 56cc755..14054bf 100755 --- a/poky-entry.py +++ b/poky-entry.py @@ -25,7 +25,7 @@ parser = argparse.ArgumentParser() parser.add_argument('--workdir', default='/home/pokyuser', help='The active directory once the container is running. ' - 'In the abscence of the "id" argument, the uid and ' + 'In the absence of the "id" argument, the uid and ' 'gid of the workdir will also be used for the user ' 'in the container.')