Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Bug - When using a - with Yo Docker as part of the project/composed app, Build/Debugging doesn't work #106

Open
CESARDELATORRE opened this issue Jul 22, 2016 · 1 comment
Assignees
Labels

Comments

@CESARDELATORRE
Copy link
Member

I made quite a few tests and conclude saying that When using a "-" with Yo Docker as part of the project/composed app, Build/Debugging doesn't work.

THIS DOESN’T WORK:
$imageName="cesardl/netcorewebapimicroservice25"
$projectName="docker-composed-app"  BUG
$serviceName="netcorewebapimicroservice25"

THIS WORKS:
$imageName="cesardl/netcore-webapi-microservice2"
$projectName="dockercomposedapp"
$serviceName="netcore-webapi-microservice2"

I think that the issue/bug with “-” happens only for the projectName (which is the ComposedAppName)

Thanks,
Cesar.

Sample error:
Starting: "C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe" .\dockerTask.ps1 -StartDebugging
Running on http://docker:5000
StartDebugging : Could not find a container named docker-composed-app_netcorewebapimicroservice25_1
At C:\Dev\BugCaseComposedApp\netcorewebapimicroservice25\dockerTask.ps1:156 char:5

  • StartDebugging
    
  • ~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,StartDebugging
      EOF
      "C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe" exited with code 0 (0x0).
NCarlsonMSFT added a commit that referenced this issue Jul 22, 2016
…estion. (#107)

Fix for #106: docker-compose does not support having a - in the project name, the generator has been updated to strip them from the string provided by the user (consistent with docker-compose’s behavior)
@NCarlsonMSFT NCarlsonMSFT self-assigned this Jul 22, 2016
@NCarlsonMSFT
Copy link
Member

This should now be fixed in master. The underlying issue is that docker-compose ignores -s in the project name for docker-compose. We have updated the generator to like-wise ignore -s (and other unsupported characters) in the project name for docker compose.

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

No branches or pull requests

2 participants