Initial demo setup for Komodo + Gitea integration
Added: - Simple Express.js app with health endpoint - Dockerfile for containerization - Docker Compose configuration - Komodo resource definitions (.komodo/resources.toml) - Comprehensive README with integration details This repo demonstrates Build, Stack, and Sync resources.
This commit is contained in:
45
README.md
45
README.md
@@ -1,3 +1,44 @@
|
||||
# komodo-demo
|
||||
# Komodo + Gitea Integration Demo
|
||||
|
||||
Demo repository for Komodo integration with Gitea
|
||||
This repository demonstrates the integration between Komodo and Gitea.
|
||||
|
||||
## What's Included
|
||||
|
||||
### Application
|
||||
- **app.js**: Simple Express.js web server
|
||||
- **package.json**: Node.js dependencies
|
||||
- **Dockerfile**: Container build configuration
|
||||
|
||||
### Docker Compose
|
||||
- **docker-compose.yml**: Stack deployment configuration
|
||||
|
||||
### Komodo Configuration
|
||||
- **.komodo/resources.toml**: Komodo resource definitions
|
||||
- **Build**: Builds Docker image from Dockerfile
|
||||
- **Stack**: Deploys app using docker-compose
|
||||
- **Sync**: Syncs Komodo resources from Git
|
||||
|
||||
## Integration Features
|
||||
|
||||
1. **Webhook-Driven Builds**: Push to `main` branch triggers automatic Docker image build
|
||||
2. **Automated Deployment**: Built images can be automatically deployed via Stack resource
|
||||
3. **GitOps Configuration**: Manage Komodo resources in Git using Resource Sync
|
||||
|
||||
## API Endpoints
|
||||
|
||||
- `GET /`: Returns app info and timestamp
|
||||
- `GET /health`: Health check endpoint
|
||||
|
||||
## Setup
|
||||
|
||||
1. Configure Gitea access token in Komodo
|
||||
2. Create Build, Stack, and Sync resources in Komodo
|
||||
3. Set up webhooks in Gitea pointing to Komodo
|
||||
4. Push changes to trigger automation
|
||||
|
||||
## Testing
|
||||
|
||||
Push changes to the repository and watch Komodo:
|
||||
- Build the Docker image
|
||||
- Deploy the updated stack
|
||||
- Sync configuration changes
|
||||
|
||||
Reference in New Issue
Block a user