File tree 4 files changed +5
-17
lines changed
4 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,4 @@ WORKDIR /StepDetectionProject
12
12
COPY ./requirements.txt .
13
13
RUN pip install -r requirements.txt
14
14
15
- VOLUME /StepDetectionProject
16
15
EXPOSE 5000 5001
17
-
18
- CMD ["bash" ]
Original file line number Diff line number Diff line change 71
71
72
72
# Configuration variables
73
73
# Set to "True" for development
74
- DEBUGGER = True
74
+ DEBUGGER = False
75
75
# Set to "True" for verbose status messages
76
76
FILE_STATUS_MESSAGES = False
77
77
# Allows forcing user input to 'y'
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: "3"
2
2
services :
3
3
application :
4
4
build : .
5
- image : step-detection
5
+ image : hameem/ step-detection:dev
6
6
ports :
7
7
- 5000:5000
8
8
- 5001:5001
Original file line number Diff line number Diff line change 3
3
import os , subprocess
4
4
from pathlib import Path
5
5
container_dir = Path ("/StepDetectionProject" )
6
- host_dir = Path (os .getcwd ())
7
6
8
- BUILD = False
9
- COMMAND = "bash"
10
7
subprocess .call ("clear" )
11
8
12
- if BUILD :
13
- # Building the image
14
- subprocess .call ("docker build -t step-detection:latest ." , shell = True )
15
- print (f"The Image has been created/pulled!\n " )
9
+ subprocess .call ("docker pull hameem/step-detection:dev" , shell = True )
10
+ # print(f"The Image has been created/pulled!\n")
16
11
17
12
# Running the container from the image
18
13
print (f"Running the container with this image...\n " )
19
- subprocess .call (f"docker run -it --rm --name app "
20
- f"-p 5000-5001:5000-5001 "
21
- f"-v /.:{ container_dir } "
22
- f"step-detection:latest "
23
- f"{ COMMAND } " , shell = True )
14
+ subprocess .call ("docker-compose run --rm --service-ports application" , shell = True )
24
15
25
16
print (f"\n The container has been exited!\n " )
26
17
You can’t perform that action at this time.
0 commit comments