You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Chen He (JIRA)" <ji...@apache.org> on 2015/07/22 19:22:04 UTC
[jira] [Updated] (SLIDER-919) Slider DockerManager should check
whether image is available locally before pull from repository
[ https://issues.apache.org/jira/browse/SLIDER-919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chen He updated SLIDER-919:
---------------------------
Description:
if command['roleCommand'] == 'INSTALL':
returncode, out, err = self.pull_image(command)
logger.info("docker pull result: " + str(returncode) + ";")
if command['roleCommand'] == 'START':
returncode, out, err = self.start_container(command)
return {Constants.EXIT_CODE:returncode, 'stdout':out, 'stderr':err}
If user load image through tar file, it is available in local disk but not in remote repository or private repository. Slider agent should do a check before pulling
was:
if command['roleCommand'] == 'INSTALL':
returncode, out, err = self.pull_image(command)
logger.info("docker pull result: " + str(returncode) + ";")
if command['roleCommand'] == 'START':
returncode, out, err = self.start_container(command)
# need check
return {Constants.EXIT_CODE:returncode, 'stdout':out, 'stderr':err}
If user load image through tar file, it is available in local disk but not in remote repository or private repository. Slider agent should do a check before pulling
> Slider DockerManager should check whether image is available locally before pull from repository
> ------------------------------------------------------------------------------------------------
>
> Key: SLIDER-919
> URL: https://issues.apache.org/jira/browse/SLIDER-919
> Project: Slider
> Issue Type: Improvement
> Components: agent
> Affects Versions: Slider 0.80
> Reporter: Chen He
>
> if command['roleCommand'] == 'INSTALL':
> returncode, out, err = self.pull_image(command)
> logger.info("docker pull result: " + str(returncode) + ";")
> if command['roleCommand'] == 'START':
> returncode, out, err = self.start_container(command)
> return {Constants.EXIT_CODE:returncode, 'stdout':out, 'stderr':err}
> If user load image through tar file, it is available in local disk but not in remote repository or private repository. Slider agent should do a check before pulling
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)