mirror of
https://github.com/rafacouto/docker-openwrt-builder
synced 2025-06-07 16:06:16 +00:00
Environment vars documented.
This commit is contained in:
parent
b143b0c074
commit
4f827bc33b
@ -9,7 +9,7 @@ RUN apt-get update \
|
|||||||
gawk subversion mercurial wget gettext \
|
gawk subversion mercurial wget gettext \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& 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
|
WORKDIR $WORKDIR
|
||||||
|
|
||||||
|
10
README.md
10
README.md
@ -5,9 +5,7 @@ This image provides a toolchain to build OpenWRT for different hardware devices.
|
|||||||
|
|
||||||
## Get the docker image
|
## Get the docker image
|
||||||
|
|
||||||
### Pre-built image
|
Prepare a disk volume with 15Gb free to execute this image.
|
||||||
|
|
||||||
docker pull caligari/openwrt-builder
|
|
||||||
|
|
||||||
### From Dockerfile
|
### From Dockerfile
|
||||||
|
|
||||||
@ -27,6 +25,8 @@ shows the help:
|
|||||||
docker run -v $(pwd)/src:/usr/local/openwrt/src \
|
docker run -v $(pwd)/src:/usr/local/openwrt/src \
|
||||||
-e OPENWRT_TARGET=rpi-3 caligari/openwrt-builder
|
-e OPENWRT_TARGET=rpi-3 caligari/openwrt-builder
|
||||||
|
|
||||||
|
- /usr/local/openwrt/src Directory where OpenWRT sources persist (>= 15Gb).
|
||||||
|
|
||||||
### Docker variables
|
### Docker variables
|
||||||
|
|
||||||
docker run \
|
docker run \
|
||||||
@ -35,6 +35,10 @@ shows the help:
|
|||||||
-e JOBS=3 \
|
-e JOBS=3 \
|
||||||
caligari/openwrt-builder
|
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
|
### Compile an OpenWRT version to a hardware target
|
||||||
|
|
||||||
## Related info
|
## Related info
|
||||||
|
@ -22,10 +22,11 @@ git checkout $OPENWRT_RELEASE
|
|||||||
|
|
||||||
# set the config file
|
# set the config file
|
||||||
cp "$OPENWRT_CONFIGS/$OPENWRT_TARGET.diff" "$OPENWRT_SRC/.config"
|
cp "$OPENWRT_CONFIGS/$OPENWRT_TARGET.diff" "$OPENWRT_SRC/.config"
|
||||||
|
make defconfig
|
||||||
|
|
||||||
# update feeds
|
# update feeds
|
||||||
./scripts/feeds update -a
|
#./scripts/feeds update -a
|
||||||
./scripts/feeds install -a
|
#./scripts/feeds install -a
|
||||||
|
|
||||||
# available processors
|
# available processors
|
||||||
if [ -z "$JOBS" ] ; then
|
if [ -z "$JOBS" ] ; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user