메소드 | 설명 | |
---|---|---|
__construct ( Docker\Docker $docker, Joli\JoliCi\Naming $naming, Joli\JoliCi\BuildStrategy\BuildStrategyInterface $strategy, Joli\JoliCi\Filesystem\Filesystem $filesystem, string $buildPath ) | ||
clean ( string $projectPath, integer $keep = 1, boolean $force = false ) | Clean containers, images and directory from a project | |
cleanContainers ( Joli\JoliCi\Job[] $jobs = [] ) | Clean images for given builds | |
cleanDirectories ( Joli\JoliCi\Job[] $jobs = [] ) | Clean directories for given builds | |
cleanImages ( Joli\JoliCi\Job[] $jobs = [], boolean $force = false ) | Clean images for given builds | |
getJobsToRemove ( string $projectPath, integer $keep = 1 ) : Joli\JoliCi\Job[] | Get all jobs to remove given a project and how many versions to keep |
메소드 | 설명 | |
---|---|---|
getJobFromImage ( Docker\API\Model\ImageItem $image, $imageName, string $strategy, string $project ) : Joli\JoliCi\Job | Create a job from a docker image | |
getJobs ( string $projectPath ) : Joli\JoliCi\Job[] | Get all jobs related to a project |
public __construct ( Docker\Docker $docker, Joli\JoliCi\Naming $naming, Joli\JoliCi\BuildStrategy\BuildStrategyInterface $strategy, Joli\JoliCi\Filesystem\Filesystem $filesystem, string $buildPath ) | ||
$docker | Docker\Docker | Docker API Client |
$naming | Joli\JoliCi\Naming | Naming service |
$strategy | Joli\JoliCi\BuildStrategy\BuildStrategyInterface | Strategy used to create builds |
$filesystem | Joli\JoliCi\Filesystem\Filesystem | Filesystem service |
$buildPath | string | Directory where builds are created |
public cleanContainers ( Joli\JoliCi\Job[] $jobs = [] ) | ||
$jobs | Joli\JoliCi\Job[] | A list of jobs to remove images from |
public cleanDirectories ( Joli\JoliCi\Job[] $jobs = [] ) | ||
$jobs | Joli\JoliCi\Job[] | A list of jobs to remove images from |
public cleanImages ( Joli\JoliCi\Job[] $jobs = [], boolean $force = false ) | ||
$jobs | Joli\JoliCi\Job[] | A list of jobs to remove images from |
$force | boolean | Force removal for images |
protected getJobFromImage ( Docker\API\Model\ImageItem $image, $imageName, string $strategy, string $project ) : Joli\JoliCi\Job | ||
$image | Docker\API\Model\ImageItem | |
$strategy | string | |
$project | string | |
리턴 | Joli\JoliCi\Job |
public getJobsToRemove ( string $projectPath, integer $keep = 1 ) : Joli\JoliCi\Job[] | ||
$projectPath | string | The project path |
$keep | integer | Number of project to keep |
리턴 | Joli\JoliCi\Job[] | A list of jobs to remove |