microsoft / ALAppExtensions

Repository for collaboration on Microsoft AL application add-on and localization extensions for Microsoft Dynamics 365 Business Central.
MIT License
748 stars 600 forks source link

[Bug]: BCPT did not find any Docker Container #26596

Open m3koenig opened 1 month ago

m3koenig commented 1 month ago

Describe the issue

I want to use the Business Central Performance Toolkit VSCode Extension with a docker container but it did not find any container. This will fetch forever and to type it in, will also not work. image

Expected behavior

List my Container.

Steps to reproduce

  1. Create a Docker Container with Performance Toolkit in it
  2. run "BCPT: Setup new Business Central Performance Tooolkit project" command in VS Code: image
  3. Select "Docker" and wait....

Additional context

Did I miss some needed setup? I tries serveral container parameters:

I will provide a fix for a bug

ChethanT commented 1 month ago

@m3koenig, can you give full details about the steps you followed, like how you got the docker image, version, parameters used to create a docker instance, etc, to help me repro the issue? There are also few blogs that I hope you have already visited, if not please consider doing so. Fx. https://www.bertverbeek.nl/blog/2022/12/01/visual-studio-code-and-the-performance-toolkit/ https://demiliani.com/2023/09/05/dynamics-365-business-central-using-the-performance-toolkit-to-discover-performance-regressions/

m3koenig commented 1 month ago

First, with this container creation script, I create the container:

$containerName = 'MyBCPT'
$credential = Get-Credential -Message 'Using UserPassword authentication. Please enter credentials for the container.'
$auth = 'UserPassword'
$artifactUrl = Get-BcArtifactUrl -type 'Sandbox' -country 'de' -select 'Latest'

New-BcContainer `
    -accept_eula `
    -containerName $containerName `
    -credential $credential `
    -auth $auth `
    -artifactUrl $artifactUrl `
    -memoryLimit 8G `
    -includeTestToolkit `
    -includePerformanceToolkit -updateHosts

Then I open a VSCode BC Project (the code of an app) and run "BCPT: Setup new Business Central Performance Tooolkit project" command in VS Code: image

Select "Docker" and then I waited: Waiting for the container