This commit is contained in:
Miguel Fuertes committed 2025-09-18 16:35:14 +02:00
1 parent 561ffab86c
commit c9ba8c0bbd
5 files changed
+8 -8

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
FROM ubuntu:22.04 AS base
LABEL maintainer="OpenWrt Builder"
# Install required dependencies
COPY ./dependencies.sh /install_dependencies
RUN chmod +x /install_dependencies && \
/install_dependencies && \
rm -rf /install_dependencies
# Create a non-root user for building
RUN useradd -G sudo -m -u 1000 builder
USER builder
WORKDIR /home/builder
FROM base
# ENV BRANCH openwrt-24.10
ENV BRANCH main
RUN git clone --depth=1 -b ${BRANCH} https://git.openwrt.org/openwrt/openwrt.git openwrt
COPY ../enable_wcn36xx_mac80211.patch .
RUN git apply enable_wcn36xx_mac80211.patch
RUN openwrt/scripts/feeds update -a && \
openwrt/scripts/feeds install -a && \
rm -rf openwrt/tmp
CMD ["/bin/bash"]
+43
View File
@@ -0,0 +1,43 @@
#!/bin/sh
export DEBIAN_FRONTEND=noninteractive
apt-get update && apt-get install -y --no-install-recommends \
xz-utils \
asciidoc \
bash \
bc \
binutils \
bzip2 \
flex \
git \
g++ \
gcc \
time \
util-linux \
gawk \
gzip \
help2man \
intltool \
libelf-dev \
zlib1g-dev \
make \
libncurses5-dev \
libssl-dev \
patch \
perl \
perl-modules \
python3-dev \
python3-setuptools \
rsync \
swig \
tar \
unzip \
wget \
gettext \
xsltproc \
sudo \
android-sdk-libsparse-utils \
mkbootimg \
zstd \
e2fsprogs \
&& rm -rf /var/lib/apt/lists/*
+34
View File
@@ -0,0 +1,34 @@
services:
chown-fix:
image: alpine:latest
command: >
sh -c "chown -R 1000:1000 /home/builder/openwrt/dl /home/builder/openwrt/bin /home/builder/openwrt/build_dir"
volumes:
- ../bin:/home/builder/openwrt/bin
- dl:/home/builder/openwrt/dl
- build_dir:/home/builder/openwrt/build_dir
user: root
restart: "no"
builder:
build: .
container_name: openwrt-builder
working_dir: /home/builder/openwrt
stdin_open: true
tty: true
volumes:
- ..:/repo
- ../packages:/home/builder/openwrt/package/uz801
- ../msm89xx:/home/builder/openwrt/target/linux/msm89xx
- ../bin:/home/builder/openwrt/bin
# - ./files:/home/builder/openwrt/files
- dl:/home/builder/openwrt/dl
- build_dir:/home/builder/openwrt/build_dir
command: ["/bin/bash"]
depends_on:
chown-fix:
condition: service_completed_successfully
volumes:
dl:
build_dir: