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

add a message in install cmd when trying to pull from registry #687

Merged

Conversation

glours
Copy link
Contributor

@glours glours commented Oct 11, 2019

- What I did
Add a message saying we're pulling from the registry when an app isn't find in the local bundle store

- How I did it
Print the message in the standard output of the CLI

- How to verify it
try to pull an unknown image & check the output is like that

> docker app install unknown
Unable to find application image "unknown:latest" locally
Pulling from registry…
Unable to find application "unknown": failed to resolve bundle manifest "docker.io/library/unknown:latest": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

- A picture of a cute animal (not mandatory but encouraged)
image

Copy link
Contributor

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@glours glours force-pushed the add_message_pulling_from_registry branch from f66eabf to e6b4d85 Compare October 11, 2019 14:25
@codecov
Copy link

codecov bot commented Oct 11, 2019

Codecov Report

Merging #687 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #687   +/-   ##
=======================================
  Coverage   71.82%   71.82%           
=======================================
  Files          56       56           
  Lines        2889     2889           
=======================================
  Hits         2075     2075           
  Misses        550      550           
  Partials      264      264

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8fa4476...f4dfec5. Read the comment docs.

@@ -293,6 +293,7 @@ func getBundle(dockerCli command.Cli, bundleStore appstore.BundleStore, name str
if err != nil {
fmt.Fprintf(dockerCli.Err(), "Unable to find application image %q locally\n", reference.FamiliarString(ref))

fmt.Fprintf(dockerCli.Out(), "Pulling from registry…\n")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we output ... and not ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
@glours glours force-pushed the add_message_pulling_from_registry branch from e6b4d85 to f4dfec5 Compare October 14, 2019 09:09
@silvin-lubecki silvin-lubecki merged commit 35fdf49 into docker:master Oct 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants