distro: add custom image size

When creating a pipeline the assembler includes an image size. This
image size can be set when creating the pipeline but if it is 0 then a
default image size will be used. The default is 2 GB except for ami
images which are 6 GB.
This commit is contained in:
Jacob Kozol 2019-12-08 14:10:39 +01:00 committed by Tom Gundersen
parent 481c1dd048
commit a86e697171
27 changed files with 113 additions and 62 deletions

View file

@ -463,7 +463,7 @@ func (s *Store) PushCompose(composeID uuid.UUID, bp *blueprint.Blueprint, checks
repos = append(repos, source.RepoConfig())
}
pipeline, err := s.distro.Pipeline(bp, repos, checksums, arch, composeType)
pipeline, err := s.distro.Pipeline(bp, repos, checksums, arch, composeType, 0)
if err != nil {
return err
}