Refactor E2E tests and Docker configuration

This commit is contained in:
Simon Larsen 2024-04-25 12:58:39 +01:00
parent 894d15918b
commit 5d9a11fb48
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
7 changed files with 22 additions and 1 deletions

View File

@ -45,5 +45,7 @@ RUN npm install
# Copy app source
COPY ./E2E /usr/src/app
RUN npm run compile
#Run the app
CMD [ "npm", "test" ]

View File

@ -337,7 +337,16 @@ services:
max-size: "1000m"
e2e:
networks:
- oneuptime
restart: no
environment:
<<: *common-server-variables
logging:
driver: "local"
options:
max-size: "1000m"
ingress:
restart: always

View File

@ -323,6 +323,16 @@ services:
file: ./docker-compose.base.yml
service: ingress
# e2e tests
e2e:
extends:
file: ./docker-compose.base.yml
service: e2e
build:
network: host
context: .
dockerfile: ./E2E/Dockerfile
volumes:
postgres:
clickhouse: