Complete Ghaymah SRE Technical Assessment
هذا الالتزام موجود في:
37
q3-cicd/ghaymah-cli.md
Normal file
37
q3-cicd/ghaymah-cli.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# Ghaymah CLI Integration
|
||||
|
||||
## Install Ghaymah CLI
|
||||
|
||||
```bash
|
||||
curl -sSl https://cli.ghaymah.systems/install.sh | bash
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Initialize an Application
|
||||
|
||||
```bash
|
||||
gy resource app init -p <project_id>
|
||||
```
|
||||
|
||||
This command initializes a new application inside an existing Ghaymah project.
|
||||
|
||||
---
|
||||
|
||||
## Deploy the Application
|
||||
|
||||
Ensure a Dockerfile exists in the project directory, then run:
|
||||
|
||||
```bash
|
||||
gy resource app launch
|
||||
```
|
||||
|
||||
The CLI builds the Docker image and deploys the application to Ghaymah Cloud.
|
||||
|
||||
---
|
||||
|
||||
## Notes
|
||||
|
||||
- A Project must be created before initializing an application.
|
||||
- The Dockerfile must exist in the project directory.
|
||||
- Application settings are stored in `.ghaymah.json`..
|
||||
المرجع في مشكلة جديدة
حظر مستخدم