move build to buildscript since in docker build folders are not mapped

This commit is contained in:
Simon Zeyer
2026-08-25 14:56:45 +02:00
parent 267264d9bf
commit 2537dd1bc3
3 changed files with 38 additions and 16 deletions
+16 -16
View File
@@ -49,23 +49,23 @@ RUN git clone --depth 1 -b ${OPENWRT_BRANCH} https://git.openwrt.org/openwrt/ope
WORKDIR /home/builduser/openwrt
RUN echo "src-git ha_cluster https://github.com/pgaufillet/openwrt-ha-feed.git" >> feeds.conf.default
#RUN echo "src-git ha_cluster https://github.com/pgaufillet/openwrt-ha-feed.git" >> feeds.conf.default
# Update and install default package feeds
RUN ./scripts/feeds update -a && \
./scripts/feeds install -a
## Update and install default package feeds
#RUN ./scripts/feeds update -a && \
# ./scripts/feeds install -a
RUN echo "CONFIG_TARGET_x86=y" > .config && \
echo "CONFIG_TARGET_x86_64=y" >> .config && \
echo "CONFIG_PACKAGE_dnsmasq-ha=y" >> .config && \
echo "CONFIG_PACKAGE_lease-sync=y" >> .config && \
echo "CONFIG_PACKAGE_owsync=y" >> .config && \
echo "CONFIG_PACKAGE_ha-cluster=y" >> .config && \
echo "CONFIG_PACKAGE_luci-app-ha-cluster=y" >> .config && \
sed -i 's/CONFIG_PACKAGE_dnsmasq=y/# CONFIG_PACKAGE_dnsmasq is not set/' .config && \
make defconfig
#RUN echo "CONFIG_TARGET_x86=y" > .config && \
# echo "CONFIG_TARGET_x86_64=y" >> .config && \
# echo "CONFIG_PACKAGE_dnsmasq-ha=y" >> .config && \
# echo "CONFIG_PACKAGE_lease-sync=y" >> .config && \
# echo "CONFIG_PACKAGE_owsync=y" >> .config && \
# echo "CONFIG_PACKAGE_ha-cluster=y" >> .config && \
# echo "CONFIG_PACKAGE_luci-app-ha-cluster=y" >> .config && \
# sed -i 's/CONFIG_PACKAGE_dnsmasq=y/# CONFIG_PACKAGE_dnsmasq is not set/' .config && \
# make defconfig
RUN make -j$(nproc) download
RUN make -j$(nproc) V=s
#RUN make -j$(nproc) download
#RUN make -j$(nproc) V=s
CMD ["/bin/bash"]
#CMD ["/bin/bash"]