นำเข้าโปรเจกต์ Compose — API โน้ตพร้อม PostgreSQL และ Redis
ไฟล์ Compose ที่aggrega import — การ
นำ
| โฟลเดอร์ | สิ่ง |
|---|---|
source/ | โปรเจกต์ Compose คือ compose.yaml ไฟล์ .aggrega-config.yaml ที่import-answers.yaml ซึ่ง |
draft/ | ไฟล์aggrega import compose.yaml --target compose เขียน โดยrelease.lock และstdout.txt สำหรับimport.txt สำหรับ |
ใน checkout ของcheck.sh รันdraft/ เปรียบAGGREGA_CATALOG_DIRS
ร่างตัวอย่าง
คุณ
เขียน
aggrega draft --example import-composeจาก
cd import-composeบิลด์
การนำsource/ โดยAGGREGA_CATALOG_DIRS หรือworkspace.catalog_dirs — จะ
cd sourceaggrega import compose.yaml --target composeaggrega build --release release.yamlบิลด์dist/compose/docker-compose.yaml การ
กับผู้ช่วย AI
ผู้
ใช้เครื่องมือของ Aggrega เท่านั้น และอย่าสร้างโฟลเดอร์เอง หากโฟลเดอร์พื้นที่ทำงานยังไม่มีโฟลเดอร์ `import-compose` ให้เรียกเครื่องมือ `draft` หนึ่งครั้งโดยตั้ง `example` เป็น `import-compose` และไม่ระบุ `dir` เครื่องมือจะเขียนตัวอย่างลงในโฟลเดอร์ `import-compose` ใหม่ ซึ่งโฟลเดอร์ `source` ของโฟลเดอร์นั้นเก็บสิ่งที่ตัวอย่างนี้นำเข้า จากนั้นเรียกเครื่องมือ `import` โดยตั้ง `workspace_root` เป็น `import-compose/source` ตั้ง `source` เป็น `compose.yaml` และตั้ง `target` เป็น `compose` เครื่องมือจะอ่านคำตอบที่ต้องใช้จาก `import-answers.yaml` ที่อยู่ข้าง `compose.yaml` เขียนร่างลงใน `import-compose/source` และ pull สิ่งที่ร่างเหล่านั้นต้องใช้ จากนั้นเรียกเครื่องมือ `validate` โดยตั้ง `workspace_root` เป็น `import-compose/source` และตั้ง `release` เป็น `release.yaml` และเรียกเครื่องมือ `build` โดยตั้ง `workspace_root` เป็น `import-compose/source` ตั้ง `release` เป็น `release.yaml` และตั้ง `write` เป็น true แล้วบอกฉันว่าบิลด์เขียนไฟล์ใดบ้าง ไฟล์เหล่านั้นอยู่ใน `import-compose/source/dist/`ทดสอบ
เมื่อ
curl -sS http://127.0.0.1:8080/notesตัว
{ "path": "/notes", "headers": { "host": "127.0.0.1:8080", [… omitted: the user agent and the media types the client sent] }, "method": "GET", [… omitted: the rest of the request as the stand-in received it, the client's address and the container's host name]}เมื่อ--target helm และ
kubectl port-forward -n <namespace> svc/api-default 8080:8080