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

Toolchain ready.

This commit is contained in:
Rafa Couto 2016-12-21 22:30:46 +01:00
parent 3f82cbb957
commit 9f92427473
5 changed files with 10 additions and 8 deletions

View File

@ -11,18 +11,18 @@ RUN apt-get update \
ENV OPENWRT_RELEASE=v15.05.1 \
OPENWRT_TARGET=rpi3 \
WORKDIR=/usr/src/openwrt
WORKDIR=/usr/local/openwrt
VOLUME ["$WORKDIR"]
VOLUME ["$WORKDIR/src"]
ADD config $WORKDIR/target-configs
ADD scripts/* $WORKDIR/docker-scripts
ADD configs $WORKDIR/configs
ADD scripts/* $WORKDIR/scripts
RUN git clone --branch $OPENWRT_RELEASE \
https://github.com/openwrt/openwrt.git $WORKDIR
https://github.com/openwrt/openwrt.git $WORKDIR/src
WORKDIR $WORKDIR
WORKDIR $WORKDIR/src
CMD ["$WORKDIR/docker-scripts/build.sh", "$OPENWRT_TARGET"]
CMD ["$WORKDIR/scripts/build.sh", "$OPENWRT_TARGET"]

View File

@ -2,7 +2,9 @@
# ToDo: show target options
# ToDo: test target config
# ToDo
echo 'ToDo: examine targets from env vars...'
exit 0
cp "$WORKDIR/target-configs/$OPENWRT_TARGET.diff" \
"$WORKDIR/.config" && exit 1