Standard Structure of Files and Directories of Source Code Repository on Opstella
Standard Structure ของ Source Code Repository ที่ควรทำ เพื่อนำมา Deploy บน Opstella จะต้องมีดังนี้
source/จะเก็บไฟล์ Source Code ของแอปพลิเคชัน ซึ่งจะใช้สำหรับการ Build บน PipelineREADME.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