-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDocker-compose.yml
More file actions
60 lines (59 loc) · 3.52 KB
/
Docker-compose.yml
File metadata and controls
60 lines (59 loc) · 3.52 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
services:
ipk-builder:
image: openwrt/sdk:x86-64-24.10.0
container_name: ipk-builder
volumes:
- ./justclash:/src/justclash:ro
- ./luci-app-justclash:/src/luci-app-justclash:ro
- ./output/ipk:/output
working_dir: /builder
command: >
/bin/bash -c "
./scripts/feeds update -a &&
./scripts/feeds install luci-base nftables coreutils jq curl &&
mkdir -p package/feeds/utilities/ package/feeds/luci/ &&
rm -rf package/feeds/utilities/justclash && cp -r /src/justclash package/feeds/utilities/justclash &&
rm -rf package/feeds/luci/luci-app-justclash && cp -r /src/luci-app-justclash package/feeds/luci/luci-app-justclash &&
sed -i 's/^[[:space:]]*DEPENDS:=.*/ EXTRA_DEPENDS:=nftables (>=0), coreutils-base64 (>=0), jq-full (>=0), curl (>=0), kmod-nft-tproxy (>=0), kmod-nf-tproxy (>=0)\\n DEPENDS:=/' package/feeds/utilities/justclash/Makefile &&
sed -i 's/^[[:space:]]*LUCI_DEPENDS:=.*/ EXTRA_DEPENDS:=luci-base (>=0), justclash (>=0)\\nLUCI_DEPENDS:=/' package/feeds/luci/luci-app-justclash/Makefile &&
rm -f bin/packages/x86_64/utilities/justclash*.ipk &&
rm -f bin/packages/x86_64/luci/luci-app-justclash*.ipk &&
rm -f bin/packages/x86_64/luci/luci-i18n-justclash*.ipk &&
make defconfig &&
make package/justclash/compile package/luci-app-justclash/compile -j1 &&
for f in bin/packages/x86_64/utilities/justclash_*.ipk bin/packages/x86_64/luci/luci-app-justclash_*.ipk bin/packages/x86_64/luci/luci-i18n-justclash-ru_*.ipk bin/packages/x86_64/luci/luci-i18n-justclash-zh-cn_*.ipk; do \
[ -e \"$$f\" ] || continue; \
base=$$(basename \"$$f\"); \
newname=\"$${base/_/-}\"; \
cp \"$$f\" \"/output/$$newname\"; \
done
"
apk-builder:
image: openwrt/sdk:x86-64-25.12.4
container_name: apk-builder
volumes:
- ./justclash:/src/justclash:ro
- ./luci-app-justclash:/src/luci-app-justclash:ro
- ./output/apk:/output
working_dir: /builder
environment:
- APK_APKGEN=1
command: >
/bin/bash -c "
./scripts/feeds update -a &&
./scripts/feeds install luci-base nftables coreutils jq curl &&
mkdir -p package/feeds/utilities/ package/feeds/luci/ &&
rm -rf package/feeds/utilities/justclash && cp -r /src/justclash package/feeds/utilities/justclash &&
rm -rf package/feeds/luci/luci-app-justclash && cp -r /src/luci-app-justclash package/feeds/luci/luci-app-justclash &&
sed -i 's/^[[:space:]]*DEPENDS:=.*/ EXTRA_DEPENDS:=nftables (>=0), coreutils-base64 (>=0), jq-full (>=0), curl (>=0), kmod-nft-tproxy (>=0), kmod-nf-tproxy (>=0)\\n DEPENDS:=/' package/feeds/utilities/justclash/Makefile &&
sed -i 's/^[[:space:]]*LUCI_DEPENDS:=.*/ EXTRA_DEPENDS:=luci-base (>=0), justclash (>=0)\\nLUCI_DEPENDS:=/' package/feeds/luci/luci-app-justclash/Makefile &&
rm -f bin/packages/x86_64/utilities/justclash*.apk &&
rm -f bin/packages/x86_64/luci/luci-app-justclash*.apk &&
rm -f bin/packages/x86_64/luci/luci-i18n-justclash*.apk &&
make defconfig &&
make package/justclash/compile package/luci-app-justclash/compile -j1 &&
for f in bin/packages/x86_64/utilities/justclash-*.apk bin/packages/x86_64/luci/luci-app-justclash-*.apk bin/packages/x86_64/luci/luci-i18n-justclash-ru-*.apk bin/packages/x86_64/luci/luci-i18n-justclash-zh-cn-*.apk; do \
[ -e "$$f" ] || continue; \
cp "$$f" /output/; \
done
"