Merge pull request 'fix: update UVICORN_PORT and UVICORN_WORKERS in Dockerfile for consistency' (#10) from feat/ci-overhaul-20251029 into main
Some checks failed
CI / test (push) Failing after 4m22s
Some checks failed
CI / test (push) Failing after 4m22s
Reviewed-on: #10
This commit was merged in pull request #10.
This commit is contained in:
@@ -12,7 +12,6 @@ jobs:
|
|||||||
APT_CACHER_NG: http://192.168.88.14:3142
|
APT_CACHER_NG: http://192.168.88.14:3142
|
||||||
DB_DRIVER: postgresql
|
DB_DRIVER: postgresql
|
||||||
DB_HOST: postgres
|
DB_HOST: postgres
|
||||||
DB_PORT: '5432'
|
|
||||||
DB_NAME: calminer_test
|
DB_NAME: calminer_test
|
||||||
DB_USER: calminer
|
DB_USER: calminer
|
||||||
DB_PASSWORD: calminer_password
|
DB_PASSWORD: calminer_password
|
||||||
@@ -62,11 +61,11 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
env:
|
||||||
DATABASE_DRIVER: postgresql+psycopg2
|
DATABASE_DRIVER: postgresql+psycopg2
|
||||||
DATABASE_HOST: ${ { env.DB_HOST } }
|
DATABASE_HOST: postgres
|
||||||
DATABASE_PORT: ${ { env.DB_PORT } }
|
DATABASE_PORT: 5432
|
||||||
DATABASE_USER: ${ { env.DB_USER } }
|
DATABASE_USER: calminer
|
||||||
DATABASE_PASSWORD: ${ { env.DB_PASSWORD } }
|
DATABASE_PASSWORD: calminer_password
|
||||||
DATABASE_NAME: ${ { env.DB_NAME } }
|
DATABASE_NAME: calminer_test
|
||||||
run: |
|
run: |
|
||||||
pytest tests/ --cov=.
|
pytest tests/ --cov=.
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
ARG PYTHON_VERSION=3.11-slim
|
ARG PYTHON_VERSION=3.11-slim
|
||||||
ARG APT_CACHE_URL=http://192.168.88.14:3142
|
ARG APT_CACHE_URL=http://192.168.88.14:3142
|
||||||
ARG UVICORN_WORKERS=4
|
|
||||||
ARG UVICORN_PORT=8003
|
|
||||||
|
|
||||||
FROM python:${PYTHON_VERSION} AS builder
|
FROM python:${PYTHON_VERSION} AS builder
|
||||||
ARG APT_CACHE_URL
|
ARG APT_CACHE_URL
|
||||||
@@ -108,6 +106,6 @@ RUN chown -R appuser:app /app
|
|||||||
|
|
||||||
USER appuser
|
USER appuser
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8003
|
||||||
|
|
||||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "${UVICORN_PORT}", "--workers", "${UVICORN_WORKERS}"]
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8003", "--workers", "4"]
|
||||||
|
|||||||
Reference in New Issue
Block a user