├── 17.01 └── Dockerfile ├── 18.06 └── Dockerfile ├── 22.03 └── Dockerfile ├── LICENSE └── README.md /17.01/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:18.04 2 | 3 | RUN apt-get update &&\ 4 | apt-get install -y sudo time git-core subversion build-essential gcc-multilib \ 5 | libncurses5-dev zlib1g-dev gawk flex gettext wget unzip python &&\ 6 | apt-get clean 7 | 8 | RUN useradd -m openwrt &&\ 9 | echo 'openwrt ALL=NOPASSWD: ALL' > /etc/sudoers.d/openwrt 10 | 11 | USER openwrt 12 | WORKDIR /home/openwrt 13 | 14 | RUN git clone git://git.openwrt.org/openwrt/openwrt.git -b lede-17.01 &&\ 15 | openwrt/scripts/feeds update -a 16 | 17 | -------------------------------------------------------------------------------- /18.06/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:18.04 2 | 3 | RUN apt-get update &&\ 4 | apt-get install -y sudo time git-core subversion build-essential gcc-multilib \ 5 | libncurses5-dev zlib1g-dev gawk flex gettext wget unzip python &&\ 6 | apt-get clean 7 | 8 | RUN useradd -m openwrt &&\ 9 | echo 'openwrt ALL=NOPASSWD: ALL' > /etc/sudoers.d/openwrt 10 | 11 | USER openwrt 12 | WORKDIR /home/openwrt 13 | 14 | RUN git clone git://git.openwrt.org/openwrt/openwrt.git -b openwrt-18.06 &&\ 15 | openwrt/scripts/feeds update -a 16 | 17 | -------------------------------------------------------------------------------- /22.03/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | RUN apt-get update && \ 4 | DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC \ 5 | apt-get install -y \ 6 | sudo time git-core subversion build-essential gcc-multilib \ 7 | libncurses5-dev zlib1g-dev gawk flex gettext wget unzip \ 8 | grep rsync python3 python3-distutils && \ 9 | apt-get clean 10 | 11 | RUN useradd -m openwrt && \ 12 | echo 'openwrt ALL=NOPASSWD: ALL' > /etc/sudoers.d/openwrt 13 | 14 | USER openwrt 15 | WORKDIR /home/openwrt 16 | 17 | RUN git clone git://git.openwrt.org/openwrt/openwrt.git -b openwrt-22.03 && \ 18 | openwrt/scripts/feeds update -a 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 George-Cristian Jiglau 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | docker-openwrt-buildroot 2 | ======================== 3 | [![Docker Build Status](https://img.shields.io/docker/build/noonien/openwrt-buildroot.svg)](https://hub.docker.com/r/noonien/openwrt-buildroot) 4 | [![License: MIT](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/noonien/docker-openwrt-buildroot/blob/master/LICENSE) 5 | 6 | 7 | This is a docker container for the [OpenWRT](https://openwrt.org/) 8 | [buildroot](http://wiki.openwrt.org/doc/howto/buildroot.exigence). 9 | 10 | Because the build system requires that its command are not executed by root, 11 | the user `openwrt` was created. The buildroot can be found in 12 | `/home/openwrt/openwrt`. 13 | 14 | To run a shell in the buildroot, execute the following command: 15 | ```sh 16 | docker run -it noonien/openwrt-buildroot bash 17 | ``` 18 | 19 | More information on how to use this buildroot can be found on the 20 | [OpenWRT wiki](http://wiki.openwrt.org/doc/howto/build). 21 | --------------------------------------------------------------------------------