forked from zongheng23333/IPQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_x86_64.dockerfile
40 lines (32 loc) · 1.29 KB
/
build_x86_64.dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM openwrt_builder:24.10
ENV REPO_URL=https://github.com/immortalwrt/immortalwrt.git \
REPO_BRANCH=master \
CONFIG_FILE=configs/x86_64.config \
DIY_SCRIPT=diy-script.sh \
CLASH_KERNEL=amd64 \
CACHE_TOOLCHAIN=true \
UPLOAD_BIN_DIR=false \
FIRMWARE_RELEASE=true \
FIRMWARE_TAG=X86_64 \
TZ=Asia/Shanghai
ENV OPENWRT_PATH=/home/user/builder/openwrt \
WORK_DIR=/home/user/builder
WORKDIR /home/user/builder
RUN pwd && ls -al && \
useradd work && (mkdir -p /home/work || true) && \
chown -R work:work /builder && chown -R work:work /home/work && \
chmod +x build_openwrt.sh && \
su -p work -c "export HOME=/home/work && cd /builder && ./build_openwrt.sh"
#COPY /builder/build.log ./bin_x64
#COPY /builder/openwrt/bin ./bin_x64
# docker build --rm -v $PWD:/builder -f build_x86_64.dockerfile .
# docker run --rm -it -v $PWD:/home/user/builder openwrt_builder:24.10 /bin/bash
#
# cp ../diy-script.sh ./diy.sh && ./diy.sh
# cp ../configs/x86_64.config ./.config && make defconfig && make -j8
# https://github.com/openwrt/openwrt/issues/12239
# make package/xdp-tools/compile V=s
# make package/network/utils/xdp-tools/compile V=s
# package/network/utils/xdp-tool
# make package/libpfring/compile V=s
# make package/libpfring/clean