mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 21:27:10 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
+5
-1
@@ -88,7 +88,7 @@ services:
|
|||||||
image: gitlab.prodcontest.ru:5050/team-15/project/backend:latest
|
image: gitlab.prodcontest.ru:5050/team-15/project/backend:latest
|
||||||
build:
|
build:
|
||||||
context: ./services/backend
|
context: ./services/backend
|
||||||
command: celery -A config worker -l INFO
|
entrypoint: ["/app/scripts/celery-worker-entrypoint.sh"]
|
||||||
depends_on:
|
depends_on:
|
||||||
redis:
|
redis:
|
||||||
restart: false
|
restart: false
|
||||||
@@ -106,6 +106,10 @@ services:
|
|||||||
retries: 3
|
retries: 3
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
start_interval: 2s
|
start_interval: 2s
|
||||||
|
volumes:
|
||||||
|
- type: bind
|
||||||
|
source: ./infrastructure/backend/scripts
|
||||||
|
target: /app/scripts
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
celery-exporter:
|
celery-exporter:
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "Installing required libs..."
|
||||||
|
pip install -r checker_requirements.txt
|
||||||
|
|
||||||
|
echo "Starting Celery worker..."
|
||||||
|
celery -A config worker -l INFO
|
||||||
@@ -24,4 +24,6 @@ FROM docker.io/nginx:latest
|
|||||||
|
|
||||||
COPY --from=builder /app/static /usr/share/nginx/html
|
COPY --from=builder /app/static /usr/share/nginx/html
|
||||||
|
|
||||||
|
COPY checker_requirements.txt /usr/share/nginx/html
|
||||||
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 5.1.6 on 2025-03-02 00:09
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('competition', '0001_initial'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='state',
|
||||||
|
name='state',
|
||||||
|
field=models.CharField(choices=[('not_started', 'Not Started'), ('started', 'Started'), ('finished', 'Finished')], default='not_started', max_length=11),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
pandas==2.2.3
|
||||||
|
numpy==2.2.3
|
||||||
|
matplotlib==3.10.1
|
||||||
|
scipy==1.15.2
|
||||||
|
scikit-learn==1.6.1
|
||||||
|
seaborn==0.13.2
|
||||||
|
statsmodels==0.14.4
|
||||||
Reference in New Issue
Block a user