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

[Question]: The script localDevEnv stops when is pulling the image #1345

Open
antoniojrsilva opened this issue Dec 2, 2024 · 3 comments
Open
Labels
question Further information is requested

Comments

@antoniojrsilva
Copy link

antoniojrsilva commented Dec 2, 2024

Question

Hi all,

I'm completely new in AL-Go and I'm stuck with my first script localDevEnv.ps1 as you can see bellow, can someone help me?

Thanks in advance.

  _                     _   _____             ______
 | |                   | | |  __ \           |  ____|
 | |     ___   ___ __ _| | | |  | | _____   __ |__   _ ____   __
 | |    / _ \ / __/ _` | | | |  | |/ _ \ \ / /  __| | '_ \ \ / /
 | |____ (_) | (__ (_| | | | |__| |  __/\ V /| |____| | | \ V /
 |______\___/ \___\__,_|_| |_____/ \___| \_/ |______|_| |_|\_/

Downloading Github-Helper.psm1 from https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/Github-Helper.psm1
Downloading AL-Go-Helper.ps1 from https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/AL-Go-Helper.ps1
Downloading Packages.json from https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.1/Packages.json
C:\Users\anton\AppData\Local\Temp\f4ef4506-7b74-4a8e-b901-01495c88f8aa\Packages.json

This script will create a docker based local development environment for your project.

NOTE: You need to have Docker installed, configured and be able to create Business Central containers for this to work.
If this fails, you can setup a cloud based development environment by running cloudDevEnv.ps1

All apps and test apps will be compiled and published to the environment in the development scope.
The script will also modify launch.json to have a Local Sandbox configuration point to your environment.

Applying settings from C:\Users\anton\OneDrive\Documents\Training\letsgo\.github\AL-Go-Settings.json
Applying settings from C:\Users\anton\OneDrive\Documents\Training\letsgo\.AL-Go\settings.json
No settings found in C:\Users\anton\OneDrive\Documents\Training\letsgo\.github\localDevEnv.settings.json
No settings found in C:\Users\anton\OneDrive\Documents\Training\letsgo\.AL-Go\localDevEnv.settings.json
No settings found in C:\Users\anton\OneDrive\Documents\Training\letsgo\.AL-Go\anton.settings.json
Checking System Requirements

Container name
--------------
Please enter the name of the container to create (default bcserver)
bcserver selected

Authentication mechanism for container
--------------------------------------
a Windows Authentication
b Username/Password authentication

Select authentication mechanism for container (default b)
Username/Password authentication selected

LicenseFileUrl
--------------
When developing PTEs, you can optionally specify a developer licensefile with permissions to object IDs of your dependant apps

Local path or a secure download URL to license file  (default none)
none selected

Import from C:\ProgramData\BcContainerHelper\6.0.28\BcContainerHelper\BcContainerHelper.ps1
BcContainerHelper version 6.0.28
WinRM service is not running, will not try to use WinRM sessions
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Running on Windows, PowerShell 5.1.22621.4391
LatestGenericTagVersion is 1.0.2.51
Applying settings from C:\Users\anton\OneDrive\Documents\Training\letsgo\.github\AL-Go-Settings.json
Applying settings from C:\Users\anton\OneDrive\Documents\Training\letsgo\.AL-Go\settings.json
No settings found in C:\Users\anton\OneDrive\Documents\Training\letsgo\.github\localDevEnv.settings.json
No settings found in C:\Users\anton\OneDrive\Documents\Training\letsgo\.AL-Go\localDevEnv.settings.json
No settings found in C:\Users\anton\OneDrive\Documents\Training\letsgo\.AL-Go\anton.settings.json
Checking type
Checking appFolders, testFolders and bcptTestFolders
Application Dependency 18.0.0.0
Checking artifact setting for project
Downloading artifacts from https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/25.1.25873.27496/us
Updating app- and test Dependencies
Analyzing Test App Dependencies
No performance test apps found in bcptTestFolders in .AL-Go\settings.json
WARNING: No test apps found in testFolders in .AL-Go\settings.json
WARNING: No apps found in appFolders in .AL-Go\settings.json
Checking appDependencyProbingPaths
Repository is empty
WARNING: No app folders found
Parameters
  _____                               _
 |  __ \                             | |
 | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___
 |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
 | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
 |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/

Pipeline name                   localDevEnv
Container name                  bcserver
Image name
ArtifactUrl                     https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/25.1.25873.27496/us
BcAuthContext                   Not Specified
Environment
ReUseContainer                  False
KeepContainer                   True
useCompilerFolder               False
artifactCachePath
useDevEndpoint                  True
Auth                            UserPassword
CompanyName
MemoryLimit                     8G
FailOn                          error
TreatTestFailuresAsWarnings     False
Enable Task Scheduler           False
Assign Premium Plan             False
Install Test Runner             False
Install Test Framework          False
Install Test Libraries          False
Install Perf. Toolkit           False
InstallOnlyReferencedApps       True
generateDependencyArtifact      False
CopySymbolsFromContainer        False
enableCodeCop                   False
enableAppSourceCop              False
enableUICop                     False
enablePerTenantExtensionCop     True
enableCodeAnalyzersOnTestApps   False
doNotPerformUpgrade             False
doNotPublishApps                False
uninstallRemovedApps            False
escapeFromCops                  False
doNotBuildTests                 False
doNotRunTests                   True
doNotRunBcptTests               True
doNotRunPageScriptingTests      False
useDefaultAppSourceRuleSet      False
rulesetFile
generateErrorLog                False
enableExternalRulesets          False
azureDevOps                     False
gitLab                          False
gitHubActions                   False
vsixFile
License file                    Not specified
CodeSignCertPfxFile             Not specified
CodeSignCertPfxPassword         Not specified
CodeSignCertIsSelfSigned        False
KeyVaultCertPfxFile             Not specified
KeyVaultCertPfxPassword         Not specified
KeyVaultClientId
BuildOutputFile
ContainerEventLogFile
TestResultsFile                 C:\Users\anton\OneDrive\Documents\Training\letsgo\TestResults.xml
BcptTestResultsFile             C:\Users\anton\OneDrive\Documents\Training\letsgo\bcptTestResults.json
TestResultsFormat               JUnit
AdditionalCountries
PackagesFolder                  .packages
OutputFolder
BuildArtifactFolder
CreateRuntimePackages           False
AppVersion
AppBuild                        0
AppRevision                     0
SourceRepositoryUrl
SourceCommit
BuildBy                         BcContainerHelper,6.0.28
BuildUrl
Install Apps
- None
Install Test Apps
- None
Previous Apps
- None
Application folders
- None
Test application folders
- None
BCPT Test application folders
- None
BCPT Test suites
- None
Page Scripting Tests
- None
Custom CodeCops
- None
Pulling generic image

  _____       _ _ _                                          _        _
 |  __ \     | | (_)                                        (_)      (_)
 | |__) |   _| | |_ _ __   __ _    __ _  ___ _ __   ___ _ __ _  ___   _ _ __ ___   __ _  __ _  ___
 |  ___/ | | | | | | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \
 | |   | |_| | | | | | | | (_| | | (_| |  __/ | | |  __/ |  | | (__  | | | | | | | (_| | (_| |  __/
 |_|    \__,_|_|_|_|_| |_|\__, |  \__, |\___|_| |_|\___|_|  |_|\___| |_|_| |_| |_|\__,_|\__, |\___|
                           __/ |   __/ |                                                 __/ |
                          |___/   |___/                                                 |___/

Pulling mcr.microsoft.com/businesscentral:ltsc2022
@antoniojrsilva antoniojrsilva added the question Further information is requested label Dec 2, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@jonaswre
Copy link
Contributor

jonaswre commented Dec 2, 2024

Hi try to hit enter or space few times this solves it most of the time.

@freddydk
Copy link
Contributor

freddydk commented Dec 3, 2024

Pulling the generic image can take a very long time - especially if you are on a slow internet connection.
You can try in a CMD prompt to write:

docker pull mcr.microsoft.com/businesscentral:ltsc2022

Then it will display information about status during pull.
When this is done - your script might run faster

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

No branches or pull requests

3 participants