From 74d078e330ac554d86e5d58a0e993329f9431208 Mon Sep 17 00:00:00 2001 From: George Jiglau Date: Fri, 21 Mar 2014 16:28:52 +0200 Subject: [PATCH] Initial commit --- Dockerfile | 10 ++++++++++ README.md | 17 +++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7ff6e9b --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..c3be8ce --- /dev/null +++ b/README.md @@ -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).