README

Riser Server

GitHub Actions status

This is the server for the Riser Platform. Releases are pushed to Docker Hub

Development

This section will be improved as we're closer to accepting PRs from the community.

DB Migrations

Migration Tool: go get -u -d github.com/golang-migrate/migrate/cmd/migrate

Create a new migration

migrate create -dir migrations -format unix -ext sql addstuff

Note that this creates both an up and a down script. You should delete the down script. The philosophy is that migrations should be should always "roll forward".

Applying migrations

By default the riser server will apply database migrations if needed during startup. You may disable this behavior by setting the environment variable RISER_POSTGRES_MIGRATE_ON_STARTUP=false. To manually migrate, modify the connection string below and run:

migrate -source=file://migrations -database="postgres://user:password@postgreshost/riserdb" up

See the migrate documentation for more details.

Expand ▾ Collapse ▴

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Directories

Path Synopsis
api Package api contains routes, client models, and API related utilities.
api/v1 Package v1 contains the v1 api and client models.
pkg
pkg/app
pkg/core
pkg/deployment
pkg/deploymentreservation
pkg/deploymentstatus
pkg/environment
pkg/git
pkg/login
pkg/namespace
pkg/postgres
pkg/rollout
pkg/secret
pkg/state
pkg/state/resources KNative is not yet consumable using Go Modules (https://github.com/knative/serving/issues/3368).
pkg/util
MODULE api/v1/model
MODULE pkg/sdk