Compare commits
7 Commits
e254d50c0c
...
feat/ci-ov
| Author | SHA1 | Date | |
|---|---|---|---|
| df1c971354 | |||
| 3a8aef04b0 | |||
| 45d746d80a | |||
| f1bc7f06b9 | |||
| 82e98efb1b | |||
| f91349dedd | |||
| efee50fdc7 |
@@ -10,9 +10,8 @@ jobs:
|
||||
test:
|
||||
env:
|
||||
APT_CACHER_NG: http://192.168.88.14:3142
|
||||
DB_DRIVER: postgresql
|
||||
DB_HOST: postgres
|
||||
DB_PORT: '5432'
|
||||
DB_DRIVER: postgresql+psycopg2
|
||||
DB_HOST: 192.168.88.35
|
||||
DB_NAME: calminer_test
|
||||
DB_USER: calminer
|
||||
DB_PASSWORD: calminer_password
|
||||
@@ -61,9 +60,9 @@ jobs:
|
||||
|
||||
- name: Run tests
|
||||
env:
|
||||
DATABASE_DRIVER: postgresql+psycopg2
|
||||
DATABASE_DRIVER: ${ { env.DB_DRIVER } }
|
||||
DATABASE_HOST: ${ { env.DB_HOST } }
|
||||
DATABASE_PORT: ${ { env.DB_PORT } }
|
||||
DATABASE_PORT: 5432
|
||||
DATABASE_USER: ${ { env.DB_USER } }
|
||||
DATABASE_PASSWORD: ${ { env.DB_PASSWORD } }
|
||||
DATABASE_NAME: ${ { env.DB_NAME } }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
ARG PYTHON_VERSION=3.11-slim
|
||||
ARG APT_CACHE_URL=http://192.168.88.14:3142
|
||||
ARG UVICORN_WORKERS=4
|
||||
ARG UVICORN_PORT=8003
|
||||
|
||||
FROM python:${PYTHON_VERSION} AS builder
|
||||
ARG APT_CACHE_URL
|
||||
@@ -108,6 +106,6 @@ RUN chown -R appuser:app /app
|
||||
|
||||
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