Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WebToolsE2E] With no Docker or Podman installed, create Aspire Starter App with redis cache option and run, the error message calls out Docker not found but doesn't mention Podman #3190

Closed
balachir opened this issue Mar 26, 2024 · 16 comments
Assignees

Comments

@balachir
Copy link

balachir commented Mar 26, 2024

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU
  2. Install Dev17.10.0 Preview 3.0 [main-34726.61] (Includes Aspire 8.0.0-preview.4.24156.9)
  3. Install Aspire 8.0 P5 version 8.0.0-preview.5.24175.10 + Apply feeds
  4. No Docker or Podman installed

REPRO STEPS

  1. Create Aspire Starter App using command-line with redis cache option

    dotnet new aspire-starter -o AspireStarterApp03withRedis --use-redis-cache

  2. Navigate to AppHost folder and run the app

    dotnet run

ACTUAL
You get the following error, which is expected. But the error is specific about Docker not being installed.

Question: Should the error be more general to indicate that either Docker or Podman needs to be installed.

image

Notes
With VS New Project dialog (NPD) too, the checkbox in NPD is specific about recommending Docker. See AzDO 2004980

image

@balachir
Copy link
Author

@DamianEdwards @davidfowl for scenarios like these, are we fine with recommending Docker or should the messaging be more general and recommend either Docker or Podman?

cc: @karolz-ms

@DamianEdwards
Copy link
Member

It should be generalized to something like "a supported container runtime"

@timheuer
Copy link
Member

It should be generalized to something like "a supported container runtime"

David Pine just updated the doc point here about supported container runtime as well -- but I think the tool tip in VS doesn't allow hyperlink directly but we should put a readable aka.ms link (instead of FWLink)

@v-cazhang
Copy link

In AzDO bug 2004980, Vijay mentioned that:

This is in the templates:

"displayName": "_Use Redis for caching (requires Docker)",
"description": "Configures whether to setup the application to use Redis for caching. Requires Docker to run locally."

@DamianEdwards
Copy link
Member

Yep I'm fixing this

github-actions bot pushed a commit that referenced this issue Mar 27, 2024
DamianEdwards added a commit that referenced this issue Mar 27, 2024
DamianEdwards added a commit that referenced this issue Mar 27, 2024
@DamianEdwards
Copy link
Member

Fixed

@phenning
Copy link
Contributor

phenning commented Apr 1, 2024

@DamianEdwards , you missed updating the templatestrings.en.json, so this still has the old value:

"symbols/UseRedisCache/displayName": "_Use Redis for caching (requires Docker)",

@DamianEdwards
Copy link
Member

Grrrr, I apologize but will take this opportunity to vent and say this is one of the areas that is too finicky with template authoring. We need to either, a) automate these steps, or b) make the build fail if the required steps aren't performed, /Cc @joperezr

I don't think this is a ship-blocker for preview. 5 but we should get this fixed for preview.6

@joperezr
Copy link
Member

joperezr commented Apr 1, 2024

cc @radical regarding the above point from @DamianEdwards about adding a build test to detect this moving forward. This doesn't take precedence over the existing testing work you are doing, but let's just keep it on the radar so we get to it eventually.

@radical
Copy link
Member

radical commented Apr 2, 2024

cc @radical regarding the above point from @DamianEdwards about adding a build test to detect this moving forward. This doesn't take precedence over the existing testing work you are doing, but let's just keep it on the radar so we get to it eventually.

What would such a test do? Part of my current branch are tests that exercise some of the templates - IOW - dotnet new .. dotnet run. Is that the kind of thing expected or some other kind of template validation?

@DamianEdwards
Copy link
Member

Ideally for this I think we'd have something as part of the templates project build, rather than a test. I guess it would verify that the keys in all the language templatestrings.*.json files match those in the template.json file, and that the values in the templatestrings.en.json file match those in the template.json file.

@phenning
Copy link
Contributor

phenning commented Apr 3, 2024

@baronfel @sayedihashimi is this something that could be baked into the template authoring validation tool?

(see @DamianEdwards issue in comment above.)

@baronfel
Copy link
Member

baronfel commented Apr 3, 2024

Created a tracking issue on our end for the request.

@balachir
Copy link
Author

balachir commented Apr 8, 2024

@DamianEdwards FYI, I moved the status back to Ready for P6 so that we can track the additional change.

@balachir
Copy link
Author

@DamianEdwards this seems to be fixed now with the latest Aspire P6 builds. Did you already make the additional change we discussed here and can we close this issue?

@DamianEdwards
Copy link
Member

Yes I think it can be closed now.

@github-actions github-actions bot locked and limited conversation to collaborators May 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants