Commit Graph

1047 Commits

Author SHA1 Message Date
2a4bf1c60f Toying around with GORM and PostgreSQL 2022-01-24 16:59:48 +01:00
b446b02739 Change package URL
Change package URL from `gitlab.com/blender/flamenco-goja-test` to
`gitlab.com/blender/flamenco-ng-poc` so that it matches the actual URL
on Gitlab.
2022-01-24 14:28:00 +01:00
e4be846de8 Add make with-deps target to install dependencies and build the apps 2022-01-24 14:27:25 +01:00
c36bc3ebbd JSXxxjsXxx functions 2022-01-13 16:35:31 +01:00
0629728ce9 Add frame chunker and make unit test for simple blender render succeed 2022-01-13 16:32:08 +01:00
6aed4e71ff Check for valid UUIDs; probably a good idea to write some validator for this 2022-01-11 18:45:09 +01:00
5af238eb21 Explicitly mention certain string fields are UUIDs 2022-01-11 18:39:53 +01:00
54933d0262 API: add Fetch Job endpoint
This is made with plain sqlite. It's probably a good idea to move to
something like GORM instead.
2022-01-11 18:38:14 +01:00
f0ae7d33e9 Connect API, job compiler, and persistence layer 2022-01-11 18:07:34 +01:00
0c9c99806b Start of database interface
Contains a dummy migration because the migrate package will error out if
it cannot find any migration files.
2022-01-11 18:07:34 +01:00
e971c4aaed Expand job settings definitions
Add `subtype` and `editable` fields:

- `subtype`: to distinguish between regular strings, file paths, dir paths,
  etc.
- `editable`: To indicate a setting should be editale after submitting the
  job. Editing will trigger re-compilation of the job.
2022-01-11 14:35:57 +01:00
Sybren A. Stüvel
d0fafb5063 Make the GET /api/jobs/types endpoint work 2022-01-10 17:45:20 +01:00
Sybren A. Stüvel
6520dc2d66 Fix some linter warnings
No functional changes.
2022-01-10 17:45:14 +01:00
Sybren A. Stüvel
289bcf6414 Move job compiler JS code into its own function
Each job compiler script now must define a `compileJob(job)` function,
which will be called by Flamenco when necessary.

This makes it possible to run the script without a job, and get other
exported symbols from it, such as metadata about which settings its job
type needs/exposes.
2022-01-10 17:45:14 +01:00
Sybren A. Stüvel
87826b5179 Update README with go env GOPATH 2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
a6aa3463ea Add LICENSE 2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
9b4aa11c82 Add README.md 2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
b605330c57 API for getting supported job types from the Manager
Not yet hooked up to the job compiler, only reports one hard-coded job
type.
2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
7728c072ae Add copyright notices
No functional changes.
2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
847fc918db Rename flamenco.go to generate.go
The only thing the file is for is to ensure `go generate` runs
`oapi-codegen`.

No functional changes.
2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
d6638ce114 Track generated files with Git
The OpenAPI-generated files can be used by 3rd parties as well. This
makes them available at `gitlab.com/blender/flamenco-goja-test/pkg/api`.
2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
3d2263c177 API: group worker-related endpoints 2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
f43673aaa7 Move the API implementation to the internal package
The server implementation is private, not something that's suitable for
reuse.
2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
30c04f4ddb Worker: set user agent string 2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
082e2e69d6 Add authentication to worker 2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
ad75b5c705 Cleanup: Move some files around
No functional changes
2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
b512b399d6 Cleanup: remove no longer valid comment 2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
3e771cb7b7 Basic HTTP auth for workers implemented
Still a dummy, but at least it works with the OpenAPI 3
auth specification.
2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
a8ada28a41 Hook up Zerolog to Echo 2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
949ff08b0e Switch from Gin to Echo framework 2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
fa6f2a90d3 Also delete generated files with 'make clean' 2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
f1399ca929 Move cmd/flamenco-poc to cmd/flamenco-manager-poc 2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
f2d289ef77 Remove OapiRequestValidator
It's not working properly.
2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
38a8943767 Add Flamenco Worker PoC 2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
af4304565a Lots of changes to merge the Gin/OpenAPI PoC 2022-01-10 17:45:13 +01:00
Sybren A. Stüvel
0e424d0a70 Move to more standard Go project structure 2022-01-10 17:45:12 +01:00
Sybren A. Stüvel
2f4c22bb39 Use UUID for job ID 2022-01-10 17:45:12 +01:00
Sybren A. Stüvel
24db04455c Add creation of 'create-video' task + setting dependencies 2022-01-10 17:45:12 +01:00
Sybren A. Stüvel
fa1c125109 Get rid of the JS path module and with that all node_modules 2022-01-10 17:45:12 +01:00
Sybren A. Stüvel
c37e56e4bf Got very™ rudimentary job compilation working 2022-01-10 17:45:11 +01:00
Sybren A. Stüvel
da845daaaf Support for NPM modules 2022-01-03 19:51:22 +01:00
Sybren A. Stüvel
96f2a6bb52 Allow importing stuff from JS 2022-01-03 19:51:22 +01:00
Sybren A. Stüvel
eaa693e35e ignore executable on Linux 2022-01-03 19:51:22 +01:00
Sybren A. Stüvel
ff63f8b6b0 Add standard Makefile 2022-01-03 19:51:22 +01:00
Sybren A. Stüvel
4e741d75f4 Correct logging colors on Windows 2022-01-03 19:51:22 +01:00
Sybren A. Stüvel
ae1ea0e2bc Initial checkin 2022-01-03 19:51:22 +01:00
Sybren A. Stüvel
1a09d8f591 Configure SAST in .gitlab-ci.yml, creating this file if it does not already exist 2022-01-03 18:50:58 +00:00