Move downloading to Dockerfile
Some checks reported errors
buildbot/multibuild_parent Build done.
buildbot/travis_bionic Build done.
buildbot/job/openwrt Build done.

This commit is contained in:
Peter Šurda 2023-01-02 14:09:42 +08:00
parent 614e246e00
commit c402339da3
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95
2 changed files with 20 additions and 12 deletions

View File

@ -1,5 +1,7 @@
FROM ubuntu:focal
ENV OPENWRT_VERSION=22.03.2
RUN apt -y update
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 \
libncurses5-dev unzip gawk zlib1g-dev libncursesw5-dev zlib1g-dev \
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'

View File

@ -2,18 +2,7 @@
# use imagebuilder
OPENWRT_VERSION=22.03.2
# 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
tar -xJf /Downloads/openwrt-imagebuilder-${OPENWRT_VERSION}-*.tar.xz
cd openwrt-imagebuilder-*/
make info