skoruba / Duende.IdentityServer.Admin

The administration for the Duende IdentityServer and Asp.Net Core Identity ⚡
Apache License 2.0
556 stars 194 forks source link

Running In Docker using koruba.duende.isadmin Template breaks the container #75

Closed swmolen closed 2 years ago

swmolen commented 2 years ago

Running the Template koruba.duende.isadmin breaks the container because the template writes out a docker-compose debug with .net 5.0 in it instead of .net 6.

bruceharrison1984 commented 2 years ago

Ran into this today. If anyone else hits this, just modify the docker-compose.vs.debug.yml into:

version: '3.4'

services:
  myproject.admin:
    volumes:
      - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
    labels:
      com.microsoft.visualstudio.debuggee.arguments: ' --additionalProbingPath /root/.nuget/packages --additionalProbingPath /root/.nuget/fallbackpackages  "bin/Debug/net6.0/MyProject.Admin.dll" /seed'

  myproject.admin.api:
    volumes:
      - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro

  myproject.sts.identity:
    volumes:
      - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro

It just changes net5.0 into net6.0