mirror of
https://github.com/rafacouto/docker-openwrt-builder
synced 2025-06-07 16:06:16 +00:00
Command to run the build script.
This commit is contained in:
parent
0722046a26
commit
d711025c34
@ -9,9 +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 OPENWRT_RELEASE=v15.05.1 \
|
ENV WORKDIR=/usr/local/openwrt
|
||||||
OPENWRT_TARGET=rpi3 \
|
|
||||||
WORKDIR=/usr/local/openwrt
|
|
||||||
|
|
||||||
VOLUME ["$WORKDIR/src"]
|
VOLUME ["$WORKDIR/src"]
|
||||||
|
|
||||||
@ -20,6 +18,6 @@ ADD scripts $WORKDIR/scripts
|
|||||||
|
|
||||||
WORKDIR $WORKDIR/src
|
WORKDIR $WORKDIR/src
|
||||||
|
|
||||||
CMD ["$WORKDIR/scripts/build.sh", "$OPENWRT_TARGET"]
|
CMD ["../scripts/build.sh"]
|
||||||
|
|
||||||
|
|
||||||
|
10
README.md
10
README.md
@ -18,14 +18,14 @@ This image provides a toolchain to build OpenWRT for different hardware devices.
|
|||||||
|
|
||||||
docker run --rm caligari/openwrt-builder
|
docker run --rm caligari/openwrt-builder
|
||||||
|
|
||||||
|
shows the help:
|
||||||
|
|
||||||
|
-ToDo-
|
||||||
|
|
||||||
### Docker volumes
|
### Docker volumes
|
||||||
|
|
||||||
docker run -v $(pwd)/src:/usr/local/openwrt/src --rm caligari/openwrt-builder
|
docker run -v $(pwd)/src:/usr/local/openwrt/src --rm caligari/openwrt-builder
|
||||||
|
|
||||||
will show the help:
|
|
||||||
|
|
||||||
-ToDo-
|
|
||||||
|
|
||||||
### Compile an OpenWRT version to a hardware target
|
### Compile an OpenWRT version to a hardware target
|
||||||
|
|
||||||
## Related info
|
## Related info
|
||||||
@ -34,7 +34,7 @@ will show the help:
|
|||||||
|
|
||||||
## Thanks
|
## Thanks
|
||||||
|
|
||||||
- [Javier Loureiro](https://twitter.com/StaticBoardsES) who had the idea for Raspberry Pi devices and provided config files for them.
|
- [Javi Loureiro](https://twitter.com/StaticBoardsES) who had the idea for Raspberry Pi devices and provided config files for them.
|
||||||
- [OpenWRT community](https://openwrt.org/) for its great product.
|
- [OpenWRT community](https://openwrt.org/) for its great product.
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,6 +4,9 @@
|
|||||||
|
|
||||||
# ToDo
|
# ToDo
|
||||||
echo 'ToDo: examine targets from env vars...'
|
echo 'ToDo: examine targets from env vars...'
|
||||||
|
echo "WORKDIR=$WORKDIR"
|
||||||
|
echo "OPENWRT_RELEASE=$OPENWRT_RELEASE"
|
||||||
|
echo "OPENWRT_TARGET=$OPENWRT_TARGET"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
# get the sources
|
# get the sources
|
||||||
|
Loading…
x
Reference in New Issue
Block a user