37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
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:
|
|
context: .
|
|
dockerfile: Dockerfile.lkiuyu
|
|
container_name: lkiuyu-openwrt-builder
|
|
working_dir: /home/builder/openwrt
|
|
stdin_open: true
|
|
tty: true
|
|
volumes:
|
|
- .:/repo
|
|
- ./packages:/home/builder/openwrt/package/uz801
|
|
- ./msm8916:/home/builder/openwrt/target/linux/msm8916
|
|
- ./bin:/home/builder/openwrt/bin
|
|
# - ./files:/home/builder/openwrt/files
|
|
# - ./diffconfig:/home/builder/openwrt/.config
|
|
- 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: |