diff --git a/Dockerfile b/Dockerfile index e8361e1..3c3a25e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,9 +9,7 @@ RUN apt-get update \ gawk subversion mercurial wget gettext \ && rm -rf /var/lib/apt/lists/* -ENV OPENWRT_RELEASE=v15.05.1 \ - OPENWRT_TARGET=rpi3 \ - WORKDIR=/usr/local/openwrt +ENV WORKDIR=/usr/local/openwrt VOLUME ["$WORKDIR/src"] @@ -20,6 +18,6 @@ ADD scripts $WORKDIR/scripts WORKDIR $WORKDIR/src -CMD ["$WORKDIR/scripts/build.sh", "$OPENWRT_TARGET"] +CMD ["../scripts/build.sh"] diff --git a/README.md b/README.md index 6bbde31..6d0d1ac 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,14 @@ This image provides a toolchain to build OpenWRT for different hardware devices. docker run --rm caligari/openwrt-builder +shows the help: + + -ToDo- + ### Docker volumes 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 ## Related info @@ -34,7 +34,7 @@ will show the help: ## 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. diff --git a/scripts/build.sh b/scripts/build.sh index 2040b81..e533369 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -4,6 +4,9 @@ # ToDo echo 'ToDo: examine targets from env vars...' +echo "WORKDIR=$WORKDIR" +echo "OPENWRT_RELEASE=$OPENWRT_RELEASE" +echo "OPENWRT_TARGET=$OPENWRT_TARGET" exit 0 # get the sources