An open API service indexing awesome lists of open source software.

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

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;
```