Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
Remove useless check
Browse files Browse the repository at this point in the history
This check is done by the packager now

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
  • Loading branch information
rumpl committed Nov 22, 2019
1 parent fae5df6 commit 0be3c16
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions internal/commands/build/compose.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package build

import (
"fmt"
"path"
"path/filepath"
"strings"

"github.com/docker/app/render"
Expand All @@ -26,13 +24,6 @@ func parseCompose(app *types.App, contextPath string, options buildOptions) (map
pulledServices := []compose.ServiceConfig{}
opts := map[string]build.Options{}
for _, service := range comp.Services {
// Sanity check
for _, vol := range service.Volumes {
if vol.Type == "bind" && !filepath.IsAbs(vol.Source) {
return nil, nil, fmt.Errorf("invalid service %q: can't use relative path as volume source", service.Name)
}
}

if service.Build.Context == "" {
pulledServices = append(pulledServices, service)
continue
Expand Down

0 comments on commit 0be3c16

Please sign in to comment.