2022-12-16 15:47:27 +00:00
|
|
|
FROM ubuntu:focal
|
|
|
|
|
2023-01-02 06:09:42 +00:00
|
|
|
ENV OPENWRT_VERSION=22.03.2
|
|
|
|
|
2022-12-16 15:47:27 +00:00
|
|
|
RUN apt -y update
|
2022-12-19 07:01:47 +00:00
|
|
|
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive TZ=UTC \
|
|
|
|
apt -yq install \
|
2022-12-19 06:56:18 +00:00
|
|
|
build-essential rsync git-core subversion mercurial libssl-dev \
|
|
|
|
libncurses5-dev unzip gawk zlib1g-dev libncursesw5-dev zlib1g-dev \
|
2023-01-08 07:43:25 +00:00
|
|
|
gettext xsltproc wget unzip python python3-distutils rxvt-unicode
|
2023-01-02 06:09:42 +00:00
|
|
|
|
2023-01-08 07:43:25 +00:00
|
|
|
RUN git clone https://git.openwrt.org/openwrt/openwrt.git
|
|
|
|
RUN cd openwrt && git checkout v${OPENWRT_VERSION}
|
2023-01-08 19:26:29 +00:00
|
|
|
|
|
|
|
RUN wget -qP /openwrt \
|
|
|
|
"https://downloads.openwrt.org/releases/${OPENWRT_VERSION}/targets/bcm27xx/bcm2711/config.buildinfo"
|
|
|
|
|
|
|
|
RUN cd /openwrt && cp config.buildinfo .config && make defconfig
|
|
|
|
|
|
|
|
ENV FORCE_UNSAFE_CONFIGURE=1
|
|
|
|
|
|
|
|
RUN cd /openwrt && make tools/install
|
|
|
|
RUN cd /openwrt && make toolchain/install
|
|
|
|
|
|
|
|
RUN cd /openwrt && make download
|
|
|
|
RUN cd /openwrt && make world
|
|
|
|
|
|
|
|
RUN useradd -m -U -u 999 buildbot
|
|
|
|
RUN chown -R buildbot.buildbot /openwrt
|
|
|
|
|
|
|
|
USER buildbot
|
|
|
|
|
|
|
|
ADD . .
|