{"id":13489782,"url":"https://github.com/openwrt/docker","last_synced_at":"2025-03-28T05:31:17.097Z","repository":{"id":40646099,"uuid":"195986731","full_name":"openwrt/docker","owner":"openwrt","description":"Docker containers of the ImageBuilder and SDK","archived":false,"fork":false,"pushed_at":"2025-01-09T09:27:51.000Z","size":145,"stargazers_count":544,"open_issues_count":32,"forks_count":89,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-03-19T20:47:26.211Z","etag":null,"topics":["docker","openwrt","openwrt-imagebuilder","openwrt-sdk"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openwrt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2019-07-09T10:27:06.000Z","updated_at":"2025-03-17T12:18:56.000Z","dependencies_parsed_at":"2023-02-01T02:31:34.548Z","dependency_job_id":"6f56f0fa-f293-4b8a-b977-d5b66ce37172","html_url":"https://github.com/openwrt/docker","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/openwrt%2Fdocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwrt%2Fdocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwrt%2Fdocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openwrt%2Fdocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openwrt","download_url":"https://codeload.github.com/openwrt/docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245978200,"owners_count":20703675,"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":["docker","openwrt","openwrt-imagebuilder","openwrt-sdk"],"created_at":"2024-07-31T19:00:35.046Z","updated_at":"2025-03-28T05:31:17.087Z","avatar_url":"https://github.com/openwrt.png","language":"Shell","funding_links":[],"categories":["Shell","Dockerfile","docker"],"sub_categories":[],"readme":"# OpenWrt Docker repository\n\n[![GPL-2.0-only License][license-badge]][license-ref]\n[![CI][ci-badge]][ci-ref]\n[![Docker Hub][docker-hub-badge]][docker-hub-ref]\n\nThis repository contains files to create OpenWrt containers. While mostly used\nfor our CI you may use the scripts to build containers on your own.\n\n\u003e [!WARNING]\n\u003e Starting with the branch of OpenWrt 24.10 any snapshot (aka nightly) builds no\n\u003e longer contain the actual binaries but instead a `setup.sh` script. The\n\u003e environment variables are set automatically per contaier to download the\n\u003e correct archive containing the SDK/ImageBuilder/rootfs. This reduces\n\u003e dramatically bandwidth and storage usage. Sorry for the inconvenience.\n\nAvailable containers:\n\n* `sdk` compile OpenWrt packages\n* `imagebuilder` create firmware images\n* `rootfs` test software inside an OpenWrt runtime\n\nAll containers are mirrored to the follwing three registries under `openwrt` account:\n\n* docker.io ([sdk](https://hub.docker.com/r/openwrt/sdk) | [imagebuilder](https://hub.docker.com/r/openwrt/imagebuilder) | [rootfs](https://hub.docker.com/r/openwrt/rootfs))  `*` \n* ghcr.io ([sdk](https://github.com/openwrt/docker-openwrt/pkgs/container/sdk) | [imagebuilder](https://github.com/openwrt/docker-openwrt/pkgs/container/imagebuilder) | [rootfs](https://github.com/openwrt/docker-openwrt/pkgs/container/rootfs))\n* quay.io ([sdk](https://quay.io/repository/openwrt/sdk) | [imagebuilder](https://quay.io/repository/openwrt/imagebuilder) | [rootfs](https://quay.io/repository/openwrt/rootfs))\n\n\u003e `*` We have switched our account from `openwrtorg` to `openwrt` on docker.io\n\nFind more details on the container types below\n\n## `sdk`\n\nContains the [OpenWrt\nSDK](https://openwrt.org/docs/guide-developer/toolchain/using_the_sdk) based on\nthe same container we use for our [Buildbot](https://buildbot.org)\ninfrastructure. This can be useful when building packages on macOS, Windows or\nvia CI.\n\n### SDK Example\n\n```shell\ndocker run --rm -v \"$(pwd)\"/bin/:/builder/bin -it openwrt/sdk\n# inside the Docker container\n./scripts/feeds update packages\nmake defconfig\n./scripts/feeds install tmate\nmake package/tmate/{clean,compile} -j$(nproc)\n```\n\nEnjoy a local OpenWrt SDK container building the `tmate` package and but the\nbinary in hosts `./bin` folder.\n\n### SDK Tags\n\nAll currently available SDKs via tags in the following format:\n\n* `\u003ctarget\u003e-\u003csubtarget\u003e[-\u003cbranch|tag|version\u003e]`\n* `\u003carch\u003e[-\u003cbranch|tag|version\u003e]`\n\nThe `branch|tag|version` can be something like `openwrt-22.03` (branch),\n`v22.03.4` (tag) or `21.02.3` (version). To use daily builds use either `main`\nor `SNAPSHOT`.\n\n## `imagebuilder`\n\nContains the [OpenWrt\nImageBuilder](https://openwrt.org/docs/guide-user/additional-software/imagebuilder)\nbased on the same container we use for our [buildbot](buildbot.org)\ninfrastructure. This can be useful when creating images on macOS, Windows or\nvia CI.\n\n### ImageBuilder Example\n\n```shell\ndocker run --rm -v \"$(pwd)\"/bin/:/builder/bin -it openwrt/imagebuilder\n# inside the Docker container\nmake image PROFILE=generic PACKAGES=tmate\n```\n\nEnjoy a local OpenWrt ImageBuilder container building an image for x86/64 and\nstore the binary in hosts `./bin` folder.\n\n### ImageBuilder Tags\n\nAll currently available ImageBuilders via tags in the following format:\n\n* `\u003ctarget\u003e-\u003csubtarget\u003e[-\u003cbranch|tag|version\u003e]`\n* `\u003carch\u003e[-\u003cbranch|tag|version\u003e]`\n\nThe `branch|tag|version` can be something like `openwrt-22.03` (branch),\n`v22.03.4` (tag) or `21.02.3` (version). To use daily builds use either `main`\nor `SNAPSHOT`.\n\n## `rootfs` (experimental)\n\n\u003e The OpenWrt runtime uses multiple active services to work, it's not really\n\u003e suited as a container. This `rootfs` should only be used for special cases\n\u003e like CI testing.\n\nAn unpackaged version of OpenWrt's rootfs for different architectures. The\n`./rootfs` folder requires slight modifications to work within Docker,\nadditional files for the rootfs should be added there before building.\n\n### Rootfs Example\n\n```shell\ndocker run --rm -it openwrt/rootfs\n# inside the Docker container\nmkdir /var/lock/\nopkg update\nopkg install tmate\ntmate\n```\n\nEnjoy a local OpenWrt container running the x86/64 architecture with internet\naccess. Once closed the container is removed.\n\n### Rootfs Tags\n\n\"|||armvirt/32|armvirt/64|malta/be|mvebu/cortexa9\n\n* `x86/64` or `x86_64`\n* `x86/generic` or `i386_pentium4`\n* `x86/geode` or `i386_pentium-mmx`\n* `armvirt/32` or `arm_cortex-a15_neon-vfpv4`\n* `armvirt/64` or `aarch64_cortex-a53`\n* `malta/be` or `mips_24kc`\n* `mvebu/cortexa9` or `arm_cortex-a9_vfpv3-d16`\n\n## Build Your Own\n\nIf you wan to create your own container you can use the `Dockerfile`. You can set the following build arguments:\n\n* `TARGET` - the target to build for (e.g. `x86/64`)\n* `DOWNLOAD_FILE` - the file to download (e.g. `imagebuilder-.*x86_64.tar.xz`)\n* `FILE_HOST` - the host to download the ImageBuilder/SDK/rootfs from (e.g. `downloads.openwrt.org`)\n* `VERSION_PATH` - the path to the ImageBuilder/SDK/rootfs (e.g. `snapshots` or `releases/21.02.3`)\n\n### Example ImageBuilder\n\n\u003e If you plan to use your own server please add your own GPG key to the\n\u003e `./keys/` folder.\n\n```shell\ndocker build \\\n    --build-arg TARGET=x86/64 \\\n    --build-arg DOWNLOAD_FILE=\"imagebuilder-.*x86_64.tar.xz\" \\\n    --build-arg FILE_HOST=downloads.openwrt.org \\\n    --build-arg VERSION_PATH=snapshots \\\n    -t openwrt/x86_64 .\n```\n\n[ci-badge]: https://github.com/openwrt/docker/actions/workflows/containers.yml/badge.svg\n[ci-ref]: https://github.com/openwrt/docker/actions/workflows/containers.yml\n[docker-hub-badge]: https://img.shields.io/badge/docker--hub-openwrt-blue.svg?style=flat-square\n[docker-hub-ref]: https://hub.docker.com/u/openwrt\n[license-badge]: https://img.shields.io/github/license/openwrt/docker.svg?style=flat-square\n[license-ref]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenwrt%2Fdocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenwrt%2Fdocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenwrt%2Fdocker/lists"}