Skip to content

Problems with deploying #108

Open
Open
@coldrain96

Description

@coldrain96

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."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions