{"id":20405982,"url":"https://github.com/coldnew/docker-yocto","last_synced_at":"2025-03-17T15:12:04.316Z","repository":{"id":66658855,"uuid":"122437737","full_name":"coldnew/docker-yocto","owner":"coldnew","description":"My docker environment to build the yocto project","archived":false,"fork":false,"pushed_at":"2025-03-03T03:42:05.000Z","size":33,"stargazers_count":37,"open_issues_count":2,"forks_count":32,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-03T04:28:22.623Z","etag":null,"topics":["build-environment","docker","petalinux","yocto"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coldnew.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-22T06:06:08.000Z","updated_at":"2025-03-03T03:42:00.000Z","dependencies_parsed_at":"2023-03-27T13:18:20.503Z","dependency_job_id":null,"html_url":"https://github.com/coldnew/docker-yocto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coldnew%2Fdocker-yocto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coldnew%2Fdocker-yocto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coldnew%2Fdocker-yocto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coldnew%2Fdocker-yocto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coldnew","download_url":"https://codeload.github.com/coldnew/docker-yocto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056425,"owners_count":20390719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build-environment","docker","petalinux","yocto"],"created_at":"2024-11-15T05:14:12.400Z","updated_at":"2025-03-17T15:12:04.311Z","avatar_url":"https://github.com/coldnew.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"docker-yocto\n=================\n\n## About\n\nThis repo contains docker image I use for building the yocto images.\n\nI use the script [yocto-build.sh](https://raw.githubusercontent.com/coldnew/docker-yocto/master/yocto-build.sh) to switch yocto building environment so I can use docker to build the [Yocto project](https://www.yoctoproject.org) instad of install a ubuntu as VM.\n\n## Setting up\n\nFirst download the [yocto-build.sh](https://raw.githubusercontent.com/coldnew/docker-yocto/master/yocto-build.sh) as `~/bin/yocto-build`\n\n```sh\nmkdir -p ~/bin\ncurl https://raw.githubusercontent.com/coldnew/docker-yocto/master/yocto-build.sh \u003e ~/bin/yocto-build\nchmod +x ~/bin/yocto-build\n```\n\nAdd following line to the `~/.bashrc` file to ensure that the `~/bin` folder is in you PATH variable.\n\n```sh\nexport PATH=~/bin:$PATH\n```\n\n## Basic Usage\n\nFirst time to use the `yocto-build` command, you need to tell it where is the workdir we build the yocto image.\n\nFor example, if I want to build yocto at `/home/coldnew/poky` then:\n\n```sh\nyocto-build --workdir /home/coldnew/poky\n```\n\nAfter this command, we'll create a container named `yocto-build`, which is the environment we used to build the yocto image.\nNow you'll find your current shell is switch to the container and the `/home/coldnew/poky` is mounted to `/yocto`.\n\n## Spawn a new shell\n\nIf you want to spawn a new shell in another terminal, you can use\n\n```sh\nyocto-build --shell\n```\n\nThis will spawn a new shell if you already specify a workdir.\n\n## Remove the container\n\nThis script only support *ONLY ONE CONTAINER*, so If you want to change the workdir, you should remove it first, remove a container is easy, just use following command:\n\n```sh\nyocto-build --rm\n```\n\nThen you can setup a new workdir you want.\n\n## Upgrade script\n\nUpgrade this script is easy, just type\n\n```sh\nyocto-build --upgrade\n```\n\n## Pull new docker container\n\nTo pull new docker image, just type\n\n```sh\nyocto-build --pull\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoldnew%2Fdocker-yocto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoldnew%2Fdocker-yocto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoldnew%2Fdocker-yocto/lists"}