Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into ucv
Browse files Browse the repository at this point in the history
# Conflicts:
#	anubis-eval/.env.template
#	docker-compose.yaml
#	enki-problems/.env.template
#	enki-problems/src/EnkiProblems.Application/Problems/ProblemAppService.cs
#	enki-problems/src/EnkiProblems.HttpApi.Host/EnkiProblemsHttpApiHostModule.cs
#	odin-gateway/envoy.yaml
#	quetzalcoatl-auth/Api/Features/Auth/Login/Endpoint.cs
#	quetzalcoatl-auth/Api/Features/Auth/RefreshToken/Models.cs
#	quetzalcoatl-auth/Api/Features/Auth/Register/Endpoint.cs
#	quetzalcoatl-auth/Api/Features/Core/ApplicationUserExtensions.cs
#	quetzalcoatl-auth/Api/Features/Core/LinqExtensions.cs
#	quetzalcoatl-auth/Api/Features/Users/Core/UserDto.cs
#	quetzalcoatl-auth/Api/Features/Users/Get/Models.cs
#	quetzalcoatl-auth/Api/Features/Users/GetAll/Endpoint.cs
#	quetzalcoatl-auth/Api/Features/Users/GetAll/Models.cs
#	quetzalcoatl-auth/Api/Features/Users/Update/Models.cs
#	quetzalcoatl-auth/Api/Usings.cs
#	quetzalcoatl-auth/Infrastructure/ApplicationDbContext.cs
#	quetzalcoatl-auth/Tests.Integration/Api/Features/Users/GetAllEndpointTests.cs
  • Loading branch information
WarriorsSami committed Jun 6, 2024
2 parents 68b64b7 + 565d21a commit ca4b3e2
Show file tree
Hide file tree
Showing 112 changed files with 3,072 additions and 1,254 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/eval-lb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Eval Nginx Load Balancer - Build Docker image and publish to GitHub Packages

on:
push:
branches:
- develop

paths:
- "anubis-eval/eval-lb/**"
- ".github/workflows/eval-lb.yaml"

pull_request:
branches:
- develop

paths:
- "anubis-eval/eval-lb/**"
- ".github/workflows/eval-lb.yaml"

env:
REGISTRY: ghcr.io
IMAGE_NAME: asgard-eval-lb

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: anubis-eval/eval-lb
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
9 changes: 5 additions & 4 deletions anubis-eval/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ ROCKET_DATABASES={anubis-submissions={url="postgres://postgres:2002@anubis-psql-
CONFIG_JWT_SECRET_KEY=z7F+ut_aphaxeja0&ba*p9spew!4fe0rAFRO5HestitIKOv5nistlz3b=+edu1aP
CONFIG_DAPR_HTTP_PORT=3503
CONFIG_DAPR_EVAL_METADATA_ENDPOINT=http://dapr-app-id:[email protected]:3503/api/enki/problem/{problem_id}/eval-metadata
CONFIG_DAPR_JUDGE_ENDPOINT=http://dapr-app-id:[email protected]:3503/submissions/batch
CONFIG_DAPR_GET_SUBMISSION_BATCH_ENDPOINT=http://dapr-app-id:[email protected]:3503/submissions/batch?tokens={tokens}
CONFIG_DAPR_JUDGE_SUBMISSION_BATCH_ENDPOINT=http://judge0-lb:4000/submissions/batch
CONFIG_DAPR_JUDGE_SUBMISSION_ENDPOINT=http://judge0-lb:4000/submissions
CONFIG_DAPR_GET_SUBMISSION_BATCH_ENDPOINT=http://judge0-lb:4000/submissions/batch?tokens={tokens}
CONFIG_DAPR_GET_SUBMISSION_ENDPOINT=http://judge0-lb:4000/submissions/{token}
CONFIG_DAPR_STATE_STORE_POST_ENDPOINT=http://127.0.0.1:3503/v1.0/state/statestore
CONFIG_DAPR_STATE_STORE_GET_ENDPOINT=http://127.0.0.1:3503/v1.0/state/statestore/{key}
CONFIG_EVAL_CRON_SCHEDULE='1/5 * * * * *'
CONFIG_DEFAULT_NO_SUBMISSIONS_PER_PAGE=10
CONFIG_DEFAULT_CACHE_TTL_SECONDS=120
CONFIG_EVAL_BATCH_SIZE=4
CONFIG_ALLOWED_ORIGINS="http://localhost:10000;https://pantheonix.live;https://pantheonix-midgard.web.app;https://pantheonix-midgard.firebaseapp.com"
CONFIG_ALLOWED_ORIGINS="https://localhost:10000;http://localhost:10000;https://pantheonix.live;https://pantheonix-midgard.web.app;https://pantheonix-midgard.firebaseapp.com"

#DATABASE_URL=postgres://postgres:2002@localhost:5435/anubis-submissions
DATABASE_URL=postgres://postgres:2002@anubis-psql-db:5432/anubis-submissions
Expand Down
Loading

0 comments on commit ca4b3e2

Please sign in to comment.