Initial commit
This commit is contained in:
commit
27e0eac595
|
@ -0,0 +1 @@
|
||||||
|
bin/
|
|
@ -0,0 +1,47 @@
|
||||||
|
FROM localhost/openwrt-base:debian AS builder
|
||||||
|
|
||||||
|
ADD target.config /run/target.config
|
||||||
|
RUN cat /run/target.config > .config
|
||||||
|
RUN make defconfig
|
||||||
|
|
||||||
|
RUN make -j$(nproc) V=w download
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=w \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
tools/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=w \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
toolchain/compile
|
||||||
|
|
||||||
|
ADD config /run/config
|
||||||
|
RUN cat /run/target.config /run/config >> .config
|
||||||
|
RUN make defconfig
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
target/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
package/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
world
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache ccache -s
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
|
||||||
|
COPY --from=builder /root/OpenWRT/bin/ /
|
|
@ -0,0 +1,27 @@
|
||||||
|
# WPAD
|
||||||
|
CONFIG_PACKAGE_wpad-openssl=y
|
||||||
|
|
||||||
|
# LuCI
|
||||||
|
CONFIG_PACKAGE_luci=y
|
||||||
|
CONFIG_LUCI_LANG_de=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-dashboard=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-network=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-status=y
|
||||||
|
CONFIG_PACKAGE_luci-theme-openwrt-2020=y
|
||||||
|
|
||||||
|
# Protocol support
|
||||||
|
CONFIG_PACKAGE_luci-proto-ipv6=y
|
||||||
|
CONFIG_PACKAGE_luci-proto-bonding=y
|
||||||
|
CONFIG_PACKAGE_luci-proto-relay=y
|
||||||
|
|
||||||
|
# Application support
|
||||||
|
CONFIG_PACKAGE_luci-app-wireguard=y
|
||||||
|
CONFIG_PACKAGE_luci-app-firewall=y
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
CONFIG_PACKAGE_zabbix-agentd=y
|
||||||
|
|
||||||
|
# ZRAM
|
||||||
|
CONFIG_PROCD_ZRAM_TMPFS=y
|
||||||
|
CONFIG_PACKAGE_kmod-zram=m
|
||||||
|
CONFIG_PACKAGE_zram-swap=m
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Target
|
||||||
|
CONFIG_TARGET_ath79=y
|
||||||
|
CONFIG_TARGET_ath79_generic=y
|
||||||
|
CONFIG_TARGET_ath79_generic_DEVICE_ubnt_unifiac-pro=y
|
|
@ -0,0 +1,47 @@
|
||||||
|
FROM localhost/openwrt-base:debian AS builder
|
||||||
|
|
||||||
|
ADD target.config /run/target.config
|
||||||
|
RUN cat /run/target.config > .config
|
||||||
|
RUN make defconfig
|
||||||
|
|
||||||
|
RUN make -j$(nproc) V=w download
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=w \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
tools/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=w \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
toolchain/compile
|
||||||
|
|
||||||
|
ADD config /run/config
|
||||||
|
RUN cat /run/target.config /run/config >> .config
|
||||||
|
RUN make defconfig
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
target/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
package/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
world
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache ccache -s
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
|
||||||
|
COPY --from=builder /root/OpenWRT/bin/ /
|
|
@ -0,0 +1,27 @@
|
||||||
|
# WPAD
|
||||||
|
CONFIG_PACKAGE_wpad-openssl=y
|
||||||
|
|
||||||
|
# LuCI
|
||||||
|
CONFIG_PACKAGE_luci=y
|
||||||
|
CONFIG_LUCI_LANG_de=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-dashboard=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-network=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-status=y
|
||||||
|
CONFIG_PACKAGE_luci-theme-openwrt-2020=y
|
||||||
|
|
||||||
|
# Protocol support
|
||||||
|
CONFIG_PACKAGE_luci-proto-ipv6=y
|
||||||
|
CONFIG_PACKAGE_luci-proto-bonding=y
|
||||||
|
CONFIG_PACKAGE_luci-proto-relay=y
|
||||||
|
|
||||||
|
# Application support
|
||||||
|
CONFIG_PACKAGE_luci-app-wireguard=y
|
||||||
|
CONFIG_PACKAGE_luci-app-firewall=y
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
CONFIG_PACKAGE_zabbix-agentd=y
|
||||||
|
|
||||||
|
# ZRAM
|
||||||
|
CONFIG_PROCD_ZRAM_TMPFS=y
|
||||||
|
CONFIG_PACKAGE_kmod-zram=m
|
||||||
|
CONFIG_PACKAGE_zram-swap=m
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Target
|
||||||
|
CONFIG_TARGET_ath79=y
|
||||||
|
CONFIG_TARGET_ath79_nand=y
|
||||||
|
CONFIG_TARGET_ath79_nand_DEVICE_aerohive_hiveap-121=y
|
|
@ -0,0 +1,55 @@
|
||||||
|
FROM debian:latest
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/var/cache/apt/archives apt-get update
|
||||||
|
RUN --mount=type=cache,dst=/var/cache/apt/archives apt-get install --no-install-recommends -y \
|
||||||
|
ca-certificates \
|
||||||
|
git
|
||||||
|
|
||||||
|
RUN git clone --depth='1' --branch='v23.05.0-rc4' https://git.openwrt.org/openwrt/openwrt.git /root/OpenWRT
|
||||||
|
WORKDIR /root/OpenWRT
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/var/cache/apt/archives apt-get install --no-install-recommends -y \
|
||||||
|
asciidoc \
|
||||||
|
autoconf \
|
||||||
|
automake \
|
||||||
|
bash \
|
||||||
|
bc \
|
||||||
|
bzip2 \
|
||||||
|
ccache \
|
||||||
|
coreutils \
|
||||||
|
diffutils \
|
||||||
|
file \
|
||||||
|
findutils \
|
||||||
|
flex \
|
||||||
|
g++ \
|
||||||
|
gawk \
|
||||||
|
gcc \
|
||||||
|
gettext \
|
||||||
|
grep \
|
||||||
|
gzip \
|
||||||
|
help2man \
|
||||||
|
intltool \
|
||||||
|
libelf-dev \
|
||||||
|
libssl-dev \
|
||||||
|
xsltproc \
|
||||||
|
linux-headers-amd64 \
|
||||||
|
make \
|
||||||
|
libncurses-dev \
|
||||||
|
patch \
|
||||||
|
perl-modules \
|
||||||
|
pkgconf \
|
||||||
|
python3-dev \
|
||||||
|
rsync \
|
||||||
|
tar \
|
||||||
|
time \
|
||||||
|
unzip \
|
||||||
|
util-linux \
|
||||||
|
wget \
|
||||||
|
zlib1g-dev
|
||||||
|
|
||||||
|
ENV FORCE_UNSAFE_CONFIGURE=1
|
||||||
|
|
||||||
|
RUN ./scripts/feeds update -a
|
||||||
|
RUN ./scripts/feeds install -a
|
|
@ -0,0 +1,55 @@
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/etc/apk/cache apk add git
|
||||||
|
|
||||||
|
RUN git clone --depth='1' --branch='v23.05.0-rc4' https://git.openwrt.org/openwrt/openwrt.git /root/OpenWRT
|
||||||
|
WORKDIR /root/OpenWRT
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/etc/apk/cache apk add \
|
||||||
|
argp-standalone \
|
||||||
|
asciidoc \
|
||||||
|
autoconf \
|
||||||
|
automake \
|
||||||
|
bash \
|
||||||
|
bc \
|
||||||
|
bzip2 \
|
||||||
|
cdrkit \
|
||||||
|
coreutils \
|
||||||
|
ccache \
|
||||||
|
diffutils \
|
||||||
|
elfutils-dev \
|
||||||
|
file \
|
||||||
|
findutils \
|
||||||
|
flex \
|
||||||
|
g++ \
|
||||||
|
gawk \
|
||||||
|
gcc \
|
||||||
|
gettext \
|
||||||
|
grep \
|
||||||
|
gzip \
|
||||||
|
intltool \
|
||||||
|
libxslt \
|
||||||
|
linux-headers \
|
||||||
|
make \
|
||||||
|
musl-fts-dev \
|
||||||
|
musl-libintl \
|
||||||
|
musl-obstack-dev \
|
||||||
|
musl-utils \
|
||||||
|
ncurses-dev \
|
||||||
|
openssl-dev \
|
||||||
|
openssl \
|
||||||
|
patch \
|
||||||
|
perl \
|
||||||
|
pkgconf \
|
||||||
|
python3-dev \
|
||||||
|
rsync \
|
||||||
|
tar \
|
||||||
|
unzip \
|
||||||
|
util-linux \
|
||||||
|
wget \
|
||||||
|
zlib-dev
|
||||||
|
|
||||||
|
ENV FORCE_UNSAFE_CONFIGURE=1
|
||||||
|
|
||||||
|
RUN ./scripts/feeds update -a
|
||||||
|
RUN ./scripts/feeds install -a
|
|
@ -0,0 +1,27 @@
|
||||||
|
# WPAD
|
||||||
|
CONFIG_PACKAGE_wpad-openssl=y
|
||||||
|
|
||||||
|
# LuCI
|
||||||
|
CONFIG_PACKAGE_luci=y
|
||||||
|
CONFIG_LUCI_LANG_de=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-dashboard=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-network=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-status=y
|
||||||
|
CONFIG_PACKAGE_luci-theme-openwrt-2020=y
|
||||||
|
|
||||||
|
# Protocol support
|
||||||
|
CONFIG_PACKAGE_luci-proto-ipv6=y
|
||||||
|
CONFIG_PACKAGE_luci-proto-bonding=y
|
||||||
|
CONFIG_PACKAGE_luci-proto-relay=y
|
||||||
|
|
||||||
|
# Application support
|
||||||
|
CONFIG_PACKAGE_luci-app-wireguard=y
|
||||||
|
CONFIG_PACKAGE_luci-app-firewall=y
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
CONFIG_PACKAGE_zabbix-agentd=y
|
||||||
|
|
||||||
|
# ZRAM
|
||||||
|
CONFIG_PROCD_ZRAM_TMPFS=y
|
||||||
|
CONFIG_PACKAGE_kmod-zram=m
|
||||||
|
CONFIG_PACKAGE_zram-swap=m
|
|
@ -0,0 +1,49 @@
|
||||||
|
FROM localhost/openwrt-base:debian AS builder
|
||||||
|
# Use debian to prevent arm-tf-fiptool ioctl misuse for now, patching openwrt might be more resourceful
|
||||||
|
# See: https://github.com/ARM-software/arm-trusted-firmware/blob/4d4fec281861066ab2249bc3db7c2decdd176f34/tools/fiptool/fiptool.c#L317
|
||||||
|
|
||||||
|
ADD target.config /run/target.config
|
||||||
|
RUN cat /run/target.config > .config
|
||||||
|
RUN make defconfig
|
||||||
|
|
||||||
|
RUN make -j$(nproc) V=w download
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=w \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
tools/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=w \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
toolchain/compile
|
||||||
|
|
||||||
|
ADD config /run/config
|
||||||
|
RUN cat /run/config /run/target.config >> .config
|
||||||
|
RUN make defconfig
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
target/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
package/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
world
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache ccache -s
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
|
||||||
|
COPY --from=builder /root/OpenWRT/bin/ /
|
|
@ -0,0 +1,27 @@
|
||||||
|
# WPAD
|
||||||
|
CONFIG_PACKAGE_wpad-openssl=y
|
||||||
|
|
||||||
|
# LuCI
|
||||||
|
CONFIG_PACKAGE_luci=y
|
||||||
|
CONFIG_LUCI_LANG_de=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-dashboard=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-network=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-status=y
|
||||||
|
CONFIG_PACKAGE_luci-theme-openwrt-2020=y
|
||||||
|
|
||||||
|
# Protocol support
|
||||||
|
CONFIG_PACKAGE_luci-proto-ipv6=y
|
||||||
|
CONFIG_PACKAGE_luci-proto-bonding=y
|
||||||
|
CONFIG_PACKAGE_luci-proto-relay=y
|
||||||
|
|
||||||
|
# Application support
|
||||||
|
CONFIG_PACKAGE_luci-app-wireguard=y
|
||||||
|
CONFIG_PACKAGE_luci-app-firewall=y
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
CONFIG_PACKAGE_zabbix-agentd=y
|
||||||
|
|
||||||
|
# ZRAM
|
||||||
|
CONFIG_PROCD_ZRAM_TMPFS=y
|
||||||
|
CONFIG_PACKAGE_kmod-zram=m
|
||||||
|
CONFIG_PACKAGE_zram-swap=m
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Target
|
||||||
|
CONFIG_TARGET_mediatek=y
|
||||||
|
CONFIG_TARGET_mediatek_filogic=y
|
||||||
|
CONFIG_TARGET_mediatek_filogic_DEVICE_bananapi_bpi-r3=y
|
|
@ -0,0 +1,47 @@
|
||||||
|
FROM localhost/openwrt-base:debian AS builder
|
||||||
|
|
||||||
|
ADD target.config /run/target.config
|
||||||
|
RUN cat /run/target.config > .config
|
||||||
|
RUN make defconfig
|
||||||
|
|
||||||
|
RUN make -j$(nproc) V=w download
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=w \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
tools/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=w \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
toolchain/compile
|
||||||
|
|
||||||
|
ADD config /run/config
|
||||||
|
RUN cat /run/target.config /run/config >> .config
|
||||||
|
RUN make defconfig
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
target/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
package/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
world
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache ccache -s
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
|
||||||
|
COPY --from=builder /root/OpenWRT/bin/ /
|
|
@ -0,0 +1,27 @@
|
||||||
|
# WPAD
|
||||||
|
CONFIG_PACKAGE_wpad-openssl=y
|
||||||
|
|
||||||
|
# LuCI
|
||||||
|
CONFIG_PACKAGE_luci=y
|
||||||
|
CONFIG_LUCI_LANG_de=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-dashboard=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-network=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-status=y
|
||||||
|
CONFIG_PACKAGE_luci-theme-openwrt-2020=y
|
||||||
|
|
||||||
|
# Protocol support
|
||||||
|
CONFIG_PACKAGE_luci-proto-ipv6=y
|
||||||
|
CONFIG_PACKAGE_luci-proto-bonding=y
|
||||||
|
CONFIG_PACKAGE_luci-proto-relay=y
|
||||||
|
|
||||||
|
# Application support
|
||||||
|
CONFIG_PACKAGE_luci-app-wireguard=y
|
||||||
|
CONFIG_PACKAGE_luci-app-firewall=y
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
CONFIG_PACKAGE_zabbix-agentd=y
|
||||||
|
|
||||||
|
# ZRAM
|
||||||
|
CONFIG_PROCD_ZRAM_TMPFS=y
|
||||||
|
CONFIG_PACKAGE_kmod-zram=m
|
||||||
|
CONFIG_PACKAGE_zram-swap=m
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Target
|
||||||
|
CONFIG_TARGET_mediatek=y
|
||||||
|
CONFIG_TARGET_mediatek_mt7622=y
|
||||||
|
CONFIG_TARGET_mediatek_mt7622_DEVICE_ubnt_unifi-6-lr-v1=y
|
|
@ -0,0 +1,47 @@
|
||||||
|
FROM localhost/openwrt-base:debian AS builder
|
||||||
|
|
||||||
|
ADD target.config /run/target.config
|
||||||
|
RUN cat /run/target.config > .config
|
||||||
|
RUN make defconfig
|
||||||
|
|
||||||
|
RUN make -j$(nproc) V=w download
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=w \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
tools/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=w \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
toolchain/compile
|
||||||
|
|
||||||
|
ADD config /run/config
|
||||||
|
RUN cat /run/target.config /run/config >> .config
|
||||||
|
RUN make defconfig
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
target/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
package/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
world
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache ccache -s
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
|
||||||
|
COPY --from=builder /root/OpenWRT/bin/ /
|
|
@ -0,0 +1,27 @@
|
||||||
|
# WPAD
|
||||||
|
CONFIG_PACKAGE_wpad-openssl=y
|
||||||
|
|
||||||
|
# LuCI
|
||||||
|
CONFIG_PACKAGE_luci=y
|
||||||
|
CONFIG_LUCI_LANG_de=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-dashboard=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-network=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-status=y
|
||||||
|
CONFIG_PACKAGE_luci-theme-openwrt-2020=y
|
||||||
|
|
||||||
|
# Protocol support
|
||||||
|
CONFIG_PACKAGE_luci-proto-ipv6=y
|
||||||
|
CONFIG_PACKAGE_luci-proto-bonding=y
|
||||||
|
CONFIG_PACKAGE_luci-proto-relay=y
|
||||||
|
|
||||||
|
# Application support
|
||||||
|
CONFIG_PACKAGE_luci-app-wireguard=y
|
||||||
|
CONFIG_PACKAGE_luci-app-firewall=y
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
CONFIG_PACKAGE_zabbix-agentd=y
|
||||||
|
|
||||||
|
# ZRAM
|
||||||
|
CONFIG_PROCD_ZRAM_TMPFS=y
|
||||||
|
CONFIG_PACKAGE_kmod-zram=m
|
||||||
|
CONFIG_PACKAGE_zram-swap=m
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Target
|
||||||
|
CONFIG_TARGET_mediatek=y
|
||||||
|
CONFIG_TARGET_mediatek_mt7622=y
|
||||||
|
CONFIG_TARGET_mediatek_mt7622_DEVICE_ubnt_unifi-6-lr-v2=y
|
|
@ -0,0 +1,47 @@
|
||||||
|
FROM localhost/openwrt-base:debian AS builder
|
||||||
|
|
||||||
|
ADD target.config /run/target.config
|
||||||
|
RUN cat /run/target.config > .config
|
||||||
|
RUN make defconfig
|
||||||
|
|
||||||
|
RUN make -j$(nproc) V=w download
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=w \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
tools/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=w \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
toolchain/compile
|
||||||
|
|
||||||
|
ADD config /run/config
|
||||||
|
RUN cat /run/target.config /run/config >> .config
|
||||||
|
RUN make defconfig
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
target/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
package/compile
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache make -j$(nproc) \
|
||||||
|
V=wc \
|
||||||
|
CONFIG_CCACHE=y \
|
||||||
|
CONFIG_CCACHE_DIR=/root/.ccache \
|
||||||
|
world
|
||||||
|
|
||||||
|
RUN --mount=type=cache,dst=/root/.ccache ccache -s
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
|
||||||
|
COPY --from=builder /root/OpenWRT/bin/ /
|
|
@ -0,0 +1,27 @@
|
||||||
|
# WPAD
|
||||||
|
CONFIG_PACKAGE_wpad-openssl=y
|
||||||
|
|
||||||
|
# LuCI
|
||||||
|
CONFIG_PACKAGE_luci=y
|
||||||
|
CONFIG_LUCI_LANG_de=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-dashboard=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-network=y
|
||||||
|
CONFIG_PACKAGE_luci-mod-status=y
|
||||||
|
CONFIG_PACKAGE_luci-theme-openwrt-2020=y
|
||||||
|
|
||||||
|
# Protocol support
|
||||||
|
CONFIG_PACKAGE_luci-proto-ipv6=y
|
||||||
|
CONFIG_PACKAGE_luci-proto-bonding=y
|
||||||
|
CONFIG_PACKAGE_luci-proto-relay=y
|
||||||
|
|
||||||
|
# Application support
|
||||||
|
CONFIG_PACKAGE_luci-app-wireguard=y
|
||||||
|
CONFIG_PACKAGE_luci-app-firewall=y
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
CONFIG_PACKAGE_zabbix-agentd=y
|
||||||
|
|
||||||
|
# ZRAM
|
||||||
|
CONFIG_PROCD_ZRAM_TMPFS=y
|
||||||
|
CONFIG_PACKAGE_kmod-zram=m
|
||||||
|
CONFIG_PACKAGE_zram-swap=m
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Target
|
||||||
|
CONFIG_TARGET_x86=y
|
||||||
|
CONFIG_TARGET_x86_64=y
|
||||||
|
CONFIG_TARGET_x86_64_DEVICE_generic=y
|
Loading…
Reference in New Issue