macrdel commited on
Commit
19f4044
β€’
1 Parent(s): b0f1e17

update workflow

Browse files
tests/Dockerfile β†’ Dockerfile.Test RENAMED
@@ -13,6 +13,6 @@ ENV HOME=/home/user \
13
 
14
  WORKDIR $HOME/app
15
 
16
- COPY --chown=user .. $HOME/app
17
 
18
- CMD ["pytest", "."]
 
13
 
14
  WORKDIR $HOME/app
15
 
16
+ COPY --chown=user . $HOME/app
17
 
18
+ CMD ["pytest", "tests"]
docker-compose.yml CHANGED
@@ -2,24 +2,20 @@ version: '3.7'
2
 
3
  services:
4
  app:
5
- build: app
6
  container_name: sentiment-summarize-youtube-comments-1
7
  ports:
8
  - "8001:8000"
9
- volumes:
10
- - ./app:/home/user/app
11
  depends_on:
12
  - prometheus
13
  networks:
14
  - custom
15
 
16
- app2:
17
- build: app
18
  container_name: sentiment-summarize-youtube-comments-2
19
  ports:
20
  - "8002:8000"
21
- volumes:
22
- - ./app:/home/user/app
23
  depends_on:
24
  - prometheus
25
  networks:
@@ -61,10 +57,10 @@ services:
61
 
62
  tests:
63
  build:
64
- context: ./tests
65
- dockerfile: Dockerfile
66
  volumes:
67
- - ./app:/home/user/app
68
  depends_on:
69
  - app
70
  command: pytest tests
 
2
 
3
  services:
4
  app:
5
+ build: .
6
  container_name: sentiment-summarize-youtube-comments-1
7
  ports:
8
  - "8001:8000"
 
 
9
  depends_on:
10
  - prometheus
11
  networks:
12
  - custom
13
 
14
+ app1:
15
+ build: .
16
  container_name: sentiment-summarize-youtube-comments-2
17
  ports:
18
  - "8002:8000"
 
 
19
  depends_on:
20
  - prometheus
21
  networks:
 
57
 
58
  tests:
59
  build:
60
+ context: .
61
+ dockerfile: Dockerfile.Test
62
  volumes:
63
+ - .:/home/user/app
64
  depends_on:
65
  - app
66
  command: pytest tests