|
4 | 4 | import sys |
5 | 5 | import time |
6 | 6 |
|
| 7 | + |
| 8 | + |
7 | 9 | sys.path.append('/usr/local/CyberCP') |
8 | 10 | import django |
9 | 11 |
|
|
12 | 14 | from plogical.acl import ACLManager |
13 | 15 | except: |
14 | 16 | pass |
| 17 | +from dockerManager.dockerInstall import DockerInstall |
15 | 18 | from plogical.processUtilities import ProcessUtilities |
16 | 19 | from plogical.CyberCPLogFileWriter import CyberCPLogFileWriter as logging |
17 | 20 | import argparse |
@@ -174,10 +177,7 @@ def DeployWPContainer(self): |
174 | 177 | result = ProcessUtilities.outputExecutioner(command) |
175 | 178 | print(f'return code of docker install {result}') |
176 | 179 | if result.find("not found") > -1: |
177 | | - status, message = self.InstallDocker() |
178 | | - if status == 0: |
179 | | - logging.statusWriter(self.JobID, 'Failed to installed docker. [404]') |
180 | | - return 0, message |
| 180 | + DockerInstall.submitInstallDocker() |
181 | 181 |
|
182 | 182 | logging.statusWriter(self.JobID, 'Docker is ready to use..,10') |
183 | 183 |
|
@@ -662,10 +662,7 @@ def DeployN8NContainer(self): |
662 | 662 | result = ProcessUtilities.outputExecutioner(command) |
663 | 663 | print(f'return code of docker install {result}') |
664 | 664 | if result.find("not found") > -1: |
665 | | - status, message = self.InstallDocker() |
666 | | - if status == 0: |
667 | | - logging.statusWriter(self.JobID, 'Failed to installed docker. [404]') |
668 | | - return 0, message |
| 665 | + DockerInstall.submitInstallDocker() |
669 | 666 |
|
670 | 667 | logging.statusWriter(self.JobID, 'Docker is ready to use..,10') |
671 | 668 |
|
|
0 commit comments