👋 You're exploring a live Store Console demo — nothing here is real data

การใช้งาน Build Server

ตัว build server ที่ขับเคลื่อน release อัตโนมัติมาพร้อมกับตัวผลิตภัณฑ์เอง — ไม่ต้องติดตั้งหรือซื้อ license เพิ่มเติม

การเริ่มทำงาน

cd docker
cp build.env.example build.env
docker compose --profile build up -d build-agent build-dind
./build/bootstrap-sandbox-image.sh

bootstrap script จะ build sandbox image และโหลดเข้าไปใน build daemon ที่แยกออกมา — ให้เรียกใช้หนึ่งครั้งหลังเริ่ม containers และทุกครั้งที่ sandbox image เปลี่ยนแปลง

การตั้งค่า Keys

ตั้งค่า keys สองรายการใน docker/build.env:

  • RELEASE_RUNNER_KEY
  • RELEASE_RUNNER_CALLBACK_KEY

ทั้งสองรายการต้องตรงกับ RELEASE_RUNNER_* environment variables ของแอปอย่างชัดเจน build agent จะโหลดเฉพาะไฟล์นี้ — ไม่เข้าถึง database, cache หรือ license signing credentials ของแอป แต่มีเพียงสอง keys นี้เท่านั้น

สอง Containers, สอง Networks

  • build-agent — รับ build requests ที่ลงลายเซ็นแล้วจากแอป และควบคุม isolated Docker daemon ตัวนี้เชื่อมต่อทั้ง network ของแอปและ build network
  • build-dind — isolated Docker-in-Docker daemon ที่ใช้จริงในการรัน sandbox ทุกตัว โดยไม่เข้าร่วม network ของแอปและไม่ publish ports ใด ๆ

การทำงานบน Host แยก

build server ไม่จำเป็นต้องใช้เครื่องเดียวกับ platform ส่วนที่เหลือ นำ docker/ compose ไป deploy บน host แยก โดยเปิดใช้งานเฉพาะ build profile เท่านั้น จากนั้นชี้ RELEASE_RUNNER_URL ของแอปไปยัง host นั้น — ไม่ต้องแก้ไข code

อัปเดตล่าสุด: 11/21/2026