forked from Sysdeploy/openwrt
Move downloading to Dockerfile
This commit is contained in:
parent
614e246e00
commit
c402339da3
|
@ -1,5 +1,7 @@
|
||||||
FROM ubuntu:focal
|
FROM ubuntu:focal
|
||||||
|
|
||||||
|
ENV OPENWRT_VERSION=22.03.2
|
||||||
|
|
||||||
RUN apt -y update
|
RUN apt -y update
|
||||||
|
|
||||||
RUN DEBIAN_FRONTEND=noninteractive TZ=UTC \
|
RUN DEBIAN_FRONTEND=noninteractive TZ=UTC \
|
||||||
|
@ -7,3 +9,20 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=UTC \
|
||||||
build-essential rsync git-core subversion mercurial libssl-dev \
|
build-essential rsync git-core subversion mercurial libssl-dev \
|
||||||
libncurses5-dev unzip gawk zlib1g-dev libncursesw5-dev zlib1g-dev \
|
libncurses5-dev unzip gawk zlib1g-dev libncursesw5-dev zlib1g-dev \
|
||||||
gettext xsltproc wget unzip python
|
gettext xsltproc wget unzip python
|
||||||
|
|
||||||
|
RUN mkdir /Downloads
|
||||||
|
|
||||||
|
WORKDIR /Downloads
|
||||||
|
|
||||||
|
RUN wget -q \
|
||||||
|
'https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/\
|
||||||
|
targets/bcm27xx/bcm2711/\
|
||||||
|
openwrt-imagebuilder-${OPENWRT_VERSION}-bcm27xx-bcm2711.Linux-x86_64.tar.xz'
|
||||||
|
RUN wget -q \
|
||||||
|
'https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/\
|
||||||
|
targets/bcm27xx/bcm2711/\
|
||||||
|
openwrt-sdk-${OPENWRT_VERSION}-bcm27xx-bcm2711_gcc-11.2.0_musl.Linux-x86_64.tar.xz'
|
||||||
|
RUN wget -q \
|
||||||
|
'https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/\
|
||||||
|
targets/bcm27xx/bcm2711/\
|
||||||
|
openwrt-toolchain-${OPENWRT_VERSION}-bcm27xx-bcm2711_gcc-11.2.0_musl.Linux-x86_64.tar.xz'
|
||||||
|
|
|
@ -2,18 +2,7 @@
|
||||||
|
|
||||||
# use imagebuilder
|
# use imagebuilder
|
||||||
|
|
||||||
OPENWRT_VERSION=22.03.2
|
tar -xJf /Downloads/openwrt-imagebuilder-${OPENWRT_VERSION}-*.tar.xz
|
||||||
|
|
||||||
# for i in openwrt-imagebuilder-${OPENWRT_VERSION}-bcm27xx-bcm2711.Linux-x86_64.tar.xz \
|
|
||||||
# openwrt-sdk-${OPENWRT_VERSION}-bcm27xx-bcm2711_gcc-11.2.0_musl.Linux-x86_64.tar.xz \
|
|
||||||
# openwrt-toolchain-${OPENWRT_VERSION}-bcm27xx-bcm2711_gcc-11.2.0_musl.Linux-x86_64.tar.xz
|
|
||||||
for i in openwrt-imagebuilder-${OPENWRT_VERSION}-bcm27xx-bcm2711.Linux-x86_64.tar.xz
|
|
||||||
do
|
|
||||||
wget -q \
|
|
||||||
https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/bcm27xx/bcm2711/$i || exit 1
|
|
||||||
done
|
|
||||||
|
|
||||||
tar -xJf openwrt-imagebuilder-${OPENWRT_VERSION}-*.tar.xz
|
|
||||||
cd openwrt-imagebuilder-*/
|
cd openwrt-imagebuilder-*/
|
||||||
|
|
||||||
make info
|
make info
|
||||||
|
|
Loading…
Reference in New Issue
Block a user