fix bug in initial db creation caused by prometheus lib rtying to access tables at load time
All checks were successful
/ test (push) Successful in 2m27s
/ deploy (push) Successful in 3m22s

This commit is contained in:
j3d1 2025-03-09 18:47:59 +01:00
parent 6b0def543c
commit d80fb60afd
8 changed files with 41 additions and 33 deletions

View file

@ -1,13 +1,8 @@
FROM python:3.11-bookworm
FROM python:3.11-slim-bookworm
LABEL authors="lagertonne"
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
COPY requirements.dev.txt /code/
COPY requirements.prod.txt /code/
RUN apt update && apt install -y mariadb-client
RUN pip install -r requirements.dev.txt
RUN pip install -r requirements.prod.txt
RUN pip install mysqlclient
COPY .. /code/
RUN pip install -r requirements.dev.txt

View file

@ -1,4 +1,4 @@
FROM docker.io/node:22
FROM node:22-alpine
RUN mkdir /web
WORKDIR /web

View file

@ -1,3 +1,4 @@
name: c3lf-sys3-dev
services:
core:
build:
@ -6,11 +7,12 @@ services:
command: bash -c 'python manage.py migrate && python testdata.py && python manage.py runserver 0.0.0.0:8000'
environment:
- HTTP_HOST=core
- DB_FILE=dev.db
- DB_FILE=.local/dev.db
- DEBUG_MODE_ACTIVE=true
volumes:
- ../../core:/code
- ../testdata.py:/code/testdata.py
- ../../core:/code:ro
- ../testdata.py:/code/testdata.py:ro
- backend_context:/code/.local
ports:
- "8000:8000"
@ -20,10 +22,12 @@ services:
dockerfile: ../deploy/dev/Dockerfile.frontend
command: npm run serve
volumes:
- ../../web:/web:ro
- /web/node_modules
- ../../web/src:/web/src
- ./vue.config.js:/web/vue.config.js
ports:
- "8080:8080"
depends_on:
- core
volumes:
backend_context: