Go to file
2022-01-24 16:59:48 +01:00
cmd Toying around with GORM and PostgreSQL 2022-01-24 16:59:48 +01:00
internal Change package URL 2022-01-24 14:28:00 +01:00
pkg/api Add frame chunker and make unit test for simple blender render succeed 2022-01-13 16:32:08 +01:00
.gitignore Toying around with GORM and PostgreSQL 2022-01-24 16:59:48 +01:00
.gitlab-ci.yml Configure SAST in .gitlab-ci.yml, creating this file if it does not already exist 2022-01-03 18:50:58 +00:00
go.mod Toying around with GORM and PostgreSQL 2022-01-24 16:59:48 +01:00
go.sum Toying around with GORM and PostgreSQL 2022-01-24 16:59:48 +01:00
LICENSE Add make with-deps target to install dependencies and build the apps 2022-01-24 14:27:25 +01:00
Makefile Toying around with GORM and PostgreSQL 2022-01-24 16:59:48 +01:00
README.md Add make with-deps target to install dependencies and build the apps 2022-01-24 14:27:25 +01:00

Flamenco PoC

This repository contains a proof of concept of a next-generation Flamenco implementation.

Building

  1. Install Go 1.17 or newer.
  2. Set the environment variable GOPATH to where you want Go to put its packages. Defaults to $HOME/go if not set. Run go env GOPATH if you're not sure.
  3. Ensure $GOPATH/bin is included in your $PATH environment variable.
  4. Run make with-deps to install build-time dependencies and build the application. Subsequent builds can just run make without arguments.

You should now have two executables: flamenco-manager-poc and flamenco-worker-poc.

Swagger UI

Flamenco Manager has a SwaggerUI interface at http://localhost:8080/api/swagger-ui/

Flamenco Manager DB migrations

First install the migrate tool:

go install -tags sqlite github.com/golang-migrate/migrate/v4/cmd/migrate

To create a migration called create_users_table, run:

migrate create -dir internal/manager/persistence/migrations -ext sql -seq create_users_table

Migrations are automatically run when Flamenco Manager starts. To run them manually, use:

migrate -database sqlite://flamenco-manager.sqlite -path internal/manager/persistence/migrations up