remove volumes, optimize build.sh
This commit is contained in:
+6
-6
@@ -10,20 +10,20 @@ services:
|
||||
user: "1000:1000"
|
||||
tty: true
|
||||
stdin_open: true
|
||||
command: bash /home/builduser/build.sh
|
||||
command: bash /home/builduser/openwrt/build.sh
|
||||
volumes:
|
||||
# Firmware outputs mapped directly to host filesystem
|
||||
- ./bin:/home/builduser/openwrt/bin
|
||||
# Source tarballs cached on host to avoid re-downloading across builds
|
||||
- ./dl:/home/builduser/openwrt/dl
|
||||
# Persistent build configuration file (.config)
|
||||
- ./.config:/home/builduser/openwrt/.config
|
||||
# - ./.config:/home/builduser/openwrt/.config
|
||||
# build script
|
||||
- ./build.sh:/home/builduser/build.sh
|
||||
- ./build.sh:/home/builduser/openwrt/build.sh
|
||||
# Named volumes for heavy build artifacts (maximizes I/O performance)
|
||||
- openwrt-build-dir:/home/builduser/openwrt/build_dir
|
||||
- openwrt-staging-dir:/home/builduser/openwrt/staging_dir
|
||||
- openwrt-ccache:/home/builduser/.ccache
|
||||
# - openwrt-build-dir:/home/builduser/openwrt/build_dir
|
||||
# - openwrt-staging-dir:/home/builduser/openwrt/staging_dir
|
||||
# - openwrt-ccache:/home/builduser/.ccache
|
||||
|
||||
volumes:
|
||||
openwrt-build-dir:
|
||||
|
||||
Reference in New Issue
Block a user