1
1

Enable multicore image

This commit is contained in:
2026-04-17 22:35:36 +02:00
parent dce125f37b
commit 0076670415
+4 -4
View File
@@ -10,18 +10,18 @@ echo "Building Docker image ${IMAGE_NAME}..."
docker build -t ${IMAGE_NAME} . docker build -t ${IMAGE_NAME} .
echo "Starting container..." echo "Starting container..."
docker run -it --name ${CONTAINER_NAME} \ docker run --cpus="8" -it --name ${CONTAINER_NAME} \
-e TERM=vt100 \ -e TERM=vt100 \
${IMAGE_NAME} \ ${IMAGE_NAME} \
/bin/bash -c "cd /home/builder/openwrt && bash" /bin/bash -c "cd /home/builder/openwrt && bash"
docker cp ${CONTAINER_NAME}:.config ./.config-build docker cp ${CONTAINER_NAME}:.config ./.config-build
docker cp ${CONTAINER_NAME}:defconfig.log ./defconfig.log docker cp ${CONTAINER_NAME}:defconfig.log ./defconfig-build.log
docker cp ${CONTAINER_NAME}:${FIRMWARE_PATH} ./ras.bin 2>/dev/null || { docker cp ${CONTAINER_NAME}:${FIRMWARE_PATH} ./build/ras.bin 2>/dev/null || {
echo "ERROR: Firmware not found at ${FIRMWARE_PATH}" echo "ERROR: Firmware not found at ${FIRMWARE_PATH}"
echo "The build may have failed or the output path is not ${FIRMWARE_PATH}" echo "The build may have failed or the output path is not ${FIRMWARE_PATH}"
echo "You can inspect the container manually: docker start -ai ${CONTAINER_NAME}" echo "You can inspect the container manually: docker start -ai ${CONTAINER_NAME}"
exit 1 exit 1
} }
echo "Firmware copied to ./ras.bin" echo "Firmware copied to ./build/ras.bin"