1
0

DockerInit.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/sh
  2. case $1 in
  3. amd64)
  4. ARCH="64"
  5. FNAME="amd64"
  6. ;;
  7. i386)
  8. ARCH="32"
  9. FNAME="i386"
  10. ;;
  11. armv8 | arm64 | aarch64)
  12. ARCH="arm64-v8a"
  13. FNAME="arm64"
  14. ;;
  15. armv7 | arm | arm32)
  16. ARCH="arm32-v7a"
  17. FNAME="arm32"
  18. ;;
  19. armv6)
  20. ARCH="arm32-v6"
  21. FNAME="armv6"
  22. ;;
  23. *)
  24. ARCH="64"
  25. FNAME="amd64"
  26. ;;
  27. esac
  28. mkdir -p build/bin
  29. cd build/bin
  30. wget "https://github.com/XTLS/Xray-core/releases/download/v24.10.31/Xray-linux-${ARCH}.zip"
  31. unzip "Xray-linux-${ARCH}.zip"
  32. rm -f "Xray-linux-${ARCH}.zip" geoip.dat geosite.dat
  33. mv xray "xray-linux-${FNAME}"
  34. wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat
  35. wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat
  36. wget -O geoip_IR.dat https://github.com/chocolate4u/Iran-v2ray-rules/releases/latest/download/geoip.dat
  37. wget -O geosite_IR.dat https://github.com/chocolate4u/Iran-v2ray-rules/releases/latest/download/geosite.dat
  38. wget -O geoip_VN.dat https://github.com/vuong2023/vn-v2ray-rules/releases/latest/download/geoip.dat
  39. wget -O geosite_VN.dat https://github.com/vuong2023/vn-v2ray-rules/releases/latest/download/geosite.dat
  40. cd ../../