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

Commit

Permalink
Handle images without an explicit tag
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
  • Loading branch information
ndeloof committed Oct 29, 2019
1 parent c1175c4 commit d8e7129
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion e2e/testdata/app-inspect.golden
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
{
"Name": "web",
"Image": "nginx:latest",
"Image": "nginx",
"Replicas": 1,
"Ports": "8082"
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/testdata/expected-json-render.golden
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"resources": {},
"placement": {}
},
"image": "nginx:latest",
"image": "nginx",
"networks": {
"front": null
},
Expand Down
2 changes: 1 addition & 1 deletion e2e/testdata/expected-yaml-render.golden
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
networks:
back: null
web:
image: nginx:latest
image: nginx
networks:
front: null
ports:
Expand Down
2 changes: 1 addition & 1 deletion e2e/testdata/simple/simple.dockerapp/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
- api.example.com
- ${api_host}
web:
image: nginx:latest
image: nginx
networks:
- front
volumes:
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func fixServiceImageReferences(ctx context.Context, dockerCli command.Cli, bundl
resolver := remotes.CreateResolver(dockerCli.ConfigFile(), insecureRegistries...)
for _, service := range pulledServices {
image := bundle.Images[service.Name]
ref, err := reference.ParseNormalizedNamed(*service.Image)
ref, err := reference.ParseDockerRef(*service.Image)
if err != nil {
return errors.Wrapf(err, "could not resolve image %s", *service.Image)
}
Expand Down

0 comments on commit d8e7129

Please sign in to comment.