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

Problems with deploying #108

Open
coldrain96 opened this issue Jan 3, 2024 · 1 comment
Open

Problems with deploying #108

coldrain96 opened this issue Jan 3, 2024 · 1 comment

Comments

@coldrain96
Copy link

Hey there!

Thank you for this and other "realworld-example" series of apps.
It really helps me to discover how it may works on production.

I'm trying to build the application as it says in README.MD via docker build but I got an issues.

  1. When I execute make build
WARN[0000] The "ASPNETCORE_Conduit_DatabaseProvider" variable is not set. Defaulting to a blank string. 
WARN[0000] The "ASPNETCORE_Conduit_ConnectionString" variable is not set. Defaulting to a blank string. 
[+] Building 0.4s (7/7) FINISHED                                                                                docker:desktop-linux
 => [conduit internal] load build definition from Dockerfile                                                                    0.0s
 => => transferring dockerfile: 688B                                                                                            0.0s
 => [conduit internal] load .dockerignore                                                                                       0.0s
 => => transferring context: 4.78kB                                                                                             0.0s
 => [conduit internal] load metadata for mcr.microsoft.com/dotnet/runtime:7.0                                                   0.4s
 => [conduit base 1/2] FROM mcr.microsoft.com/dotnet/runtime:7.0@sha256:b41a241da8624e65544dd83cbcc642152f10a751082d1ea1a912e2  0.0s
 => CACHED [conduit base 2/2] WORKDIR /app                                                                                      0.0s
 => CACHED [conduit final 1/1] WORKDIR /app                                                                                     0.0s
 => [conduit] exporting to image                                                                                                0.0s
 => => exporting layers                                                                                                         0.0s
 => => writing image sha256:80d386cc567b8f19e4459f47196377f8bad107e2398677dd621e3344510e0152                                    0.0s
 => => naming to docker.io/library/aspnetcore-realworld-example-app-conduit                                                     0.0s

What does actually do this variables? Should I need put something to it?

  1. When I execute make run
WARN[0000] The "ASPNETCORE_Conduit_DatabaseProvider" variable is not set. Defaulting to a blank string. 
WARN[0000] The "ASPNETCORE_Conduit_ConnectionString" variable is not set. Defaulting to a blank string. 
[+] Building 0.0s (0/0)                                                                                         docker:desktop-linux
[+] Running 1/0
 ✔ Container aspnetcore-realworld-example-app-conduit-1  Created                                                                0.0s 
Attaching to aspnetcore-realworld-example-app-conduit-1
aspnetcore-realworld-example-app-conduit-1  | The command could not be loaded, possibly because:
aspnetcore-realworld-example-app-conduit-1  |   * You intended to execute a .NET application:
aspnetcore-realworld-example-app-conduit-1  |       The application 'Conduit.dll' does not exist.
aspnetcore-realworld-example-app-conduit-1  |   * You intended to execute a .NET SDK command:
aspnetcore-realworld-example-app-conduit-1  |       No .NET SDKs were found.
aspnetcore-realworld-example-app-conduit-1  | 
aspnetcore-realworld-example-app-conduit-1  | Download a .NET SDK:
aspnetcore-realworld-example-app-conduit-1  | https://aka.ms/dotnet/download
aspnetcore-realworld-example-app-conduit-1  | 
aspnetcore-realworld-example-app-conduit-1  | Learn about SDK resolution:
aspnetcore-realworld-example-app-conduit-1  | https://aka.ms/dotnet/sdk-not-found
aspnetcore-realworld-example-app-conduit-1 exited with code 145

As you can be seen from error "You intended to execute a .NET application: The application 'Conduit.dll' does not exist." and "You intended to execute a .NET SDK command: No .NET SDKs were found."

@adamhathcock
Copy link
Collaborator

I'll take a look while upgrading to .NET 8.

Shouldn't be required for those ENV VARs anymore. Looks old.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants