Skip to content

Standard Structure of Files and Directories of Source Code Repository on Opstella

Standard Structure ของ Source Code Repository ที่ควรทำ เพื่อนำมา Deploy บน Opstella จะต้องมีดังนี้

  • source/ จะเก็บไฟล์ Source Code ของแอปพลิเคชัน ซึ่งจะใช้สำหรับการ Build บน Pipeline
  • README.md จะใช้สำหรับการ Short Note เกี่ยวกับตัว Project (แนะนำให้ควรมี แต่ถ้าหากไม่มี ไม่มีผลต่อการทำงานในขั้นตอนอื่นๆ)
  • Dockerfile จะใช้สำหรับการ Build Container Image เพื่อใช้งานบน Kubernetes
  • .gitlab-ci.yaml จะใช้สำหรับ เพิ่ม CI/CD Pipeline ให้กับ Project
  • Directorysource/
    • <your-source-code>
  • README.md
  • Dockerfile
  • .gitlab-ci.yaml

Finished?

Use the below navigation to proceed