Skip to content

Commit 6512920

Browse files
author
Pranjul Shukla
committed
Minor simantic fix
1 parent 4bc2f05 commit 6512920

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

commands/management/commands/build.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,11 @@ def add_arguments(self, parser):
4545
def container_tag_exists(self, tag):
4646
tags = str(sp.check_output(["docker ps -a --format '{{.Names}}'"], shell=True)
4747
.decode('utf-8')).split("\n")
48-
print(tags, tag)
4948
return tag in tags
5049

5150
def container_port_occupied(self):
5251
ports = str(sp.check_output(["docker ps -a --format '{{.Ports}}'"], shell=True)
5352
.decode('utf-8')).split("\n")
54-
print(ports)
5553
return "0.0.0.0:8000->8000/tcp" in ports
5654

5755
def export_container_env(self, tag, env_file):
@@ -120,15 +118,15 @@ def handle(self, *args, **kwargs):
120118
step = 1
121119
if (not prod) and file_path == './Dockerfile':
122120
file_path += ".dev"
123-
print(f'{str(step)}: Building {tag} with {file_path}...')
121+
print(f'\n{str(step)}: Building {tag} with {file_path}...')
124122
step += 1
125123
self._build_image(tag, file_path)
126124
if run:
127-
print(f"{str(step)}: Running {tag} image...")
125+
print(f'\n{str(step)}: Running {tag} image...')
128126
self._run_image(tag)
129127
step += 1
130128
if push:
131-
print(f'{str(step)}: Pushing {tag} to docker repository...')
129+
print(f'\n{str(step)}: Pushing {tag} to docker repository...')
132130
self._push_image(tag)
133131
step += 1
134132

0 commit comments

Comments
 (0)