kine / navertical_tasks

GNU General Public License v3.0
9 stars 4 forks source link

Create container create a container with wrong image #6

Closed chavansachin20 closed 4 years ago

chavansachin20 commented 4 years ago

Hi @kine ,

I have created a task under my Agent pool, with image Name "mcr.microsoft.com/businesscentral/sandbox:us" but container was created with "mcr.microsoft.com/dynamicsnav:generic-1903" , see below attachment for reference.

Screen 1 : Task details image

Screen 2 : Task run details image

chavansachin20 commented 4 years ago

screen 3 : docker container details image

kine commented 4 years ago

Hi @chavansachin20 that's correct. It is working in this way when the used OS version is not compatible with the specific image. Please, read more about navcontainerhelper... https://blogs.msdn.microsoft.com/freddyk/tag/generic-image/

chavansachin20 commented 4 years ago

@kine : Can you please recommend which OS tag needs to add under Create container to resolve this OS issue.

image

kine commented 4 years ago

Question is what is your problem? what you want to solve? the BC running inside the generic image should be the correct one from the image you specified...

chavansachin20 commented 4 years ago

Actual: docker container is created with NAV image Expected: docker container should be created with BC image

kine commented 4 years ago

That's correct and expected behavior. Do not look at the image name, it is missleading. It is GENERIC image used for NAV AND BC, which have nothing inside by default, but navcontainerhelper scripts will take all what is needed from the selected image you want (NAV or BC, in your case BC). Just read the log when creating such a container, there are things like

Copying Service Tier Files
Copying Web Client Files
Copying Client Files
Copying ModernDev Files
Copying PowerShell Scripts
Copying ConfigurationPackages
Copying Test Assemblies
Copying Extensions
Copying Applications
Copying ReportBuilder

Those are the lines where the generic image will take the files from the specific image you selected and will use them to run BC/NAV.

chavansachin20 commented 4 years ago

@kine : if the image name is misleading and this is an expected behavior, then we can close the case.

Thanks Sachin Chavan