mirror of
https://github.com/rafacouto/docker-openwrt-builder
synced 2025-06-08 16:36:17 +00:00
Get the sources when running the container.
This commit is contained in:
parent
603c371dcf
commit
0722046a26
@ -16,10 +16,7 @@ ENV OPENWRT_RELEASE=v15.05.1 \
|
||||
VOLUME ["$WORKDIR/src"]
|
||||
|
||||
ADD configs $WORKDIR/configs
|
||||
ADD scripts/* $WORKDIR/scripts
|
||||
|
||||
RUN git clone --branch $OPENWRT_RELEASE \
|
||||
https://github.com/openwrt/openwrt.git $WORKDIR/src
|
||||
ADD scripts $WORKDIR/scripts
|
||||
|
||||
WORKDIR $WORKDIR/src
|
||||
|
||||
|
@ -34,7 +34,7 @@ will show the help:
|
||||
|
||||
## Thanks
|
||||
|
||||
- [Javier Loureiro](https://twitter.com/StaticBoardsES) who has the idea for Raspberry Pi devices and provided config files for those ones.
|
||||
- [Javier 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.
|
||||
|
||||
|
||||
|
@ -6,11 +6,18 @@
|
||||
echo 'ToDo: examine targets from env vars...'
|
||||
exit 0
|
||||
|
||||
cp "$WORKDIR/target-configs/$OPENWRT_TARGET.diff" \
|
||||
"$WORKDIR/.config" && exit 1
|
||||
# get the sources
|
||||
git clone https://github.com/openwrt/openwrt.git $WORKDIR/src
|
||||
git checkout $OPENWRT_RELEASE
|
||||
|
||||
# set the config file
|
||||
cp "$WORKDIR/target-configs/$OPENWRT_TARGET.diff" \
|
||||
"$WORKDIR/src/.config" && exit 1
|
||||
|
||||
# update feeds
|
||||
./scripts/feeds update -a && exit 1
|
||||
./scripts/feeds install -a && exit 1
|
||||
|
||||
ionice -c 3 nice -n19 make -j1 V=s
|
||||
# compile
|
||||
ionice -c 3 nice -n19 make -j3 V=s
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user