Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This puts the ground of the main tee-worker component.
It is composed of a simple http server which acts as a job server, a
client to interact with it, and the scaffolding required to run tests
and build signed binaries in container images.
Also adds CI jobs to generate container images and release these in hub.docker.com.
It does not implement scrapers used in the oracle.
This pull request introduces significant changes to the project, including new workflows for CI/CD, Dockerfile updates, and the addition of a job server and API. Below are the most important changes grouped by their themes.
CI/CD and Docker Improvements:
.github/workflows/images.yml
: Added a new GitHub Actions workflow to build and push Docker images on pushes tomaster
,main
, and tags..github/workflows/tests.yml
: Added a new GitHub Actions workflow to run Go tests and upload coverage reports to Codecov.Dockerfile
: Introduced a multi-stage Dockerfile to build and bundle the Go binary, sign it, and set up the final image with the necessary environment..dockerignore
: Updated to ignore sensitive files and unnecessary directories.API and Job Server:
internal/api/start.go
: Implemented the API server with endpoints to submit jobs, check job status, and decrypt results.internal/jobserver/jobserver.go
: Added a job server to manage job submissions and results, including worker logic to process jobs. [1] [2]Code and Tests:
cmd/tee-worker/main.go
: Added the main entry point to start the API server.internal/api/api_suite_test.go
,internal/api/api_test.go
: Added integration tests for the API server. [1] [2]internal/jobs/webscraper.go
,internal/jobs/webscraper_test.go
: Introduced a basic web scraper job type and corresponding tests. [1] [2]Configuration and Dependencies:
go.mod
: Added module definition and dependencies for the project, including Echo for the web framework and UUID for job IDs.These changes collectively enhance the project's CI/CD pipeline, introduce a robust job server and API, and add necessary configurations and dependencies.