From 4f827bc33bc1d2be53cab74bfcc84e3a72f6d744 Mon Sep 17 00:00:00 2001 From: Rafa Couto Date: Thu, 22 Dec 2016 18:15:07 +0100 Subject: [PATCH] Environment vars documented. --- Dockerfile | 2 +- README.md | 10 +++++++--- scripts/build.sh | 5 +++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index d1652b3..10a18f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN apt-get update \ gawk subversion mercurial wget gettext \ && rm -rf /var/lib/apt/lists/* -ENV WORKDIR="/usr/local/openwrt" OPENWRT_RELEASE="v15.05.1" +ENV WORKDIR="/usr/local/openwrt" OPENWRT_RELEASE="master" WORKDIR $WORKDIR diff --git a/README.md b/README.md index 02b3128..9bf8b90 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,7 @@ This image provides a toolchain to build OpenWRT for different hardware devices. ## Get the docker image -### Pre-built image - - docker pull caligari/openwrt-builder +Prepare a disk volume with 15Gb free to execute this image. ### From Dockerfile @@ -27,6 +25,8 @@ shows the help: docker run -v $(pwd)/src:/usr/local/openwrt/src \ -e OPENWRT_TARGET=rpi-3 caligari/openwrt-builder +- /usr/local/openwrt/src Directory where OpenWRT sources persist (>= 15Gb). + ### Docker variables docker run \ @@ -35,6 +35,10 @@ shows the help: -e JOBS=3 \ caligari/openwrt-builder +- OPENWRT\_TARGET Device configuration you are building OpenWRT for. +- OPENWRT\_RELEASE OpenWRT version tag/branch to build (default is 'master'). +- JOBS Number of parallel jobs to launch with _make_ + ### Compile an OpenWRT version to a hardware target ## Related info diff --git a/scripts/build.sh b/scripts/build.sh index 88f05d6..5b5f6b3 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -22,10 +22,11 @@ git checkout $OPENWRT_RELEASE # set the config file cp "$OPENWRT_CONFIGS/$OPENWRT_TARGET.diff" "$OPENWRT_SRC/.config" +make defconfig # update feeds -./scripts/feeds update -a -./scripts/feeds install -a +#./scripts/feeds update -a +#./scripts/feeds install -a # available processors if [ -z "$JOBS" ] ; then