Skip to content

Commit 2714d2c

Browse files
committed
minor changes
1 parent 885c695 commit 2714d2c

File tree

4 files changed

+5
-17
lines changed

4 files changed

+5
-17
lines changed

Diff for: Dockerfile

-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,4 @@ WORKDIR /StepDetectionProject
1212
COPY ./requirements.txt .
1313
RUN pip install -r requirements.txt
1414

15-
VOLUME /StepDetectionProject
1615
EXPOSE 5000 5001
17-
18-
CMD ["bash"]

Diff for: config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171

7272
# Configuration variables
7373
# Set to "True" for development
74-
DEBUGGER = True
74+
DEBUGGER = False
7575
# Set to "True" for verbose status messages
7676
FILE_STATUS_MESSAGES = False
7777
# Allows forcing user input to 'y'

Diff for: docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3"
22
services:
33
application:
44
build: .
5-
image: step-detection
5+
image: hameem/step-detection:dev
66
ports:
77
- 5000:5000
88
- 5001:5001

Diff for: setup.py

+3-12
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,15 @@
33
import os, subprocess
44
from pathlib import Path
55
container_dir = Path("/StepDetectionProject")
6-
host_dir = Path(os.getcwd())
76

8-
BUILD = False
9-
COMMAND = "bash"
107
subprocess.call("clear")
118

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")
1611

1712
# Running the container from the image
1813
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)
2415

2516
print(f"\nThe container has been exited!\n")
2617

0 commit comments

Comments
 (0)