https://github.com/serlo/infra
Terraform code for Serlo's infrastructure
https://github.com/serlo/infra
Last synced: 3 months ago
JSON representation
Terraform code for Serlo's infrastructure
- Host: GitHub
- URL: https://github.com/serlo/infra
- Owner: serlo
- License: apache-2.0
- Created: 2024-01-27T02:57:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-02T12:58:48.000Z (about 1 year ago)
- Last Synced: 2025-05-02T14:04:17.266Z (about 1 year ago)
- Language: HCL
- Size: 96.2 MB
- Stars: 2
- Watchers: 7
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Infrastructure for Serlo
Serlo Infrastructure currently runs on Google Cloud and Cloudflare.
## Environments
We support the following environments:
1. **https://serlo-staging.dev** (staging environment to test and integrate infrastructure and apps)
2. **https://serlo.org** (production environment)
### Requirements
Terraform and Kubernetes
### Deployment process
The infrastructure unit deploys the code. As open source contributor, please open a pull request.
## Images
- DBDump: a cronjob to save the serlo database as an anonymized dump.
- DBSetup: cronjob to import the serlo database from the dump.
### Requirements
Docker and Make
### Building and pushing images
If you want to test the image just locally, use `make docker_build`.
To publish an image just push to any branch after changing a version, and the CI is gone take care of it.
### Common problems
After upgrading kratos, there may be some changes in the database, like new tables.
You may need to grant privileges again to the postgres users.
```sql
GRANT ALL PRIVILEGES ON DATABASE kratos TO serlo;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO serlo_readonly;
```