mirror of
https://github.com/rafacouto/docker-openwrt-builder
synced 2025-06-07 16:06:16 +00:00
Toolchain ready.
This commit is contained in:
parent
3f82cbb957
commit
9f92427473
14
Dockerfile
14
Dockerfile
@ -11,18 +11,18 @@ RUN apt-get update \
|
|||||||
|
|
||||||
ENV OPENWRT_RELEASE=v15.05.1 \
|
ENV OPENWRT_RELEASE=v15.05.1 \
|
||||||
OPENWRT_TARGET=rpi3 \
|
OPENWRT_TARGET=rpi3 \
|
||||||
WORKDIR=/usr/src/openwrt
|
WORKDIR=/usr/local/openwrt
|
||||||
|
|
||||||
VOLUME ["$WORKDIR"]
|
VOLUME ["$WORKDIR/src"]
|
||||||
|
|
||||||
ADD config $WORKDIR/target-configs
|
ADD configs $WORKDIR/configs
|
||||||
ADD scripts/* $WORKDIR/docker-scripts
|
ADD scripts/* $WORKDIR/scripts
|
||||||
|
|
||||||
RUN git clone --branch $OPENWRT_RELEASE \
|
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"]
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
# ToDo: show target options
|
# 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" \
|
cp "$WORKDIR/target-configs/$OPENWRT_TARGET.diff" \
|
||||||
"$WORKDIR/.config" && exit 1
|
"$WORKDIR/.config" && exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user