1
0
mirror of https://github.com/alljoynsville/openwrt-builder synced 2025-06-06 15:36:24 +00:00

Initial commit

This commit is contained in:
George Jiglau 2014-03-21 16:28:52 +02:00
commit 74d078e330
2 changed files with 27 additions and 0 deletions

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM ubuntu:13.10
RUN apt-get update &&\
apt-get install -y git-core subversion build-essential gcc-multilib \
libncurses5-dev zlib1g-dev gawk flex gettext &&\
apt-get clean &&\
useradd -m openwrt &&\
echo 'openwrt ALL=NOPASSWD: ALL' > /etc/sudoers.d/openwrt &&\
sudo -iu openwrt git clone git://git.openwrt.org/12.09/openwrt.git &&\
sudo -iu openwrt openwrt/scripts/feeds update

17
README.md Normal file
View File

@ -0,0 +1,17 @@
Docker OpenWRT buildroot
========================
This is a docker container for the [OpenWRT](https://openwrt.org/)
[buildroot](http://wiki.openwrt.org/doc/howto/buildroot.exigence).
Because the build system requires that its command are not executed by root,
the user `openwrt` was created. The buildroot can be found in
`/home/openwrt/openwrt`.
To run a shell in the buildroot, execute the following command:
```sh
docker run -t -i noonien/openwrt-buildroot sudo -iu openwrt bash
```
More information on how to use this buildroot can be found on the
[OpenWRT wiki](http://wiki.openwrt.org/doc/howto/build).