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

Environment vars documented.

This commit is contained in:
Rafa Couto 2016-12-22 18:15:07 +01:00
parent b143b0c074
commit 4f827bc33b
3 changed files with 11 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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