Skip to content

Commit

Permalink
Merge pull request #22 from cloud66/dev
Browse files Browse the repository at this point in the history
update dockerclient to work with docker 1.12
  • Loading branch information
khash authored Aug 5, 2016
2 parents 6a6d25c + 921819e commit 0a075d6
Show file tree
Hide file tree
Showing 334 changed files with 16,498 additions and 4,887 deletions.
112 changes: 63 additions & 49 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions build/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,17 +148,18 @@ func (b *Builder) StartBuild() error {

// provides a name for the image
// it always adds the UID (if provided) to the end of the name
// so it either be a tag or part of the provided tag
// keeping the tag intact if it exists
func (b *Builder) uniqueStepName(step *Step) string {
if b.UniqueID == "" {
return step.Name
}

newName := step.Name
if strings.Contains(step.Name, ":") {
newName = step.Name + "-" + b.UniqueID
parts := strings.Split(step.Name, ":")
newName = parts[0] + "-" + b.UniqueID + ":" + parts[1]
} else {
newName = step.Name + ":" + b.UniqueID
newName = step.Name + "-" + b.UniqueID
}

return strings.ToLower(newName)
Expand All @@ -178,7 +179,7 @@ func (b *Builder) BuildStep(step *Step) error {
buildArgs = append(buildArgs, docker.BuildArg{Name: s.Key, Value: s.Value})
}
// call Docker to build the Dockerfile (from the parsed file)
b.Conf.Logger.Debugf("Building the image from %s", filepath.Base(b.uniqueDockerfile(step)))
b.Conf.Logger.Infof("Building the %s image from %s", b.uniqueStepName(step), filepath.Base(b.uniqueDockerfile(step)))
opts := docker.BuildImageOptions{
Name: b.uniqueStepName(step),
Dockerfile: filepath.Base(b.uniqueDockerfile(step)),
Expand Down
1 change: 1 addition & 0 deletions vendor/github.com/Sirupsen/logrus/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vendor/github.com/Sirupsen/logrus/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 64 additions & 0 deletions vendor/github.com/Sirupsen/logrus/alt_exit.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
Loading

0 comments on commit 0a075d6

Please sign in to comment.