There is a new kid in town. Â His name is Docker.
Microsoft is saying:
We are currently investigating how we can use Docker for deploying NAV. For test purposes we have created a Docker Container Image with the NAV Developer Preview, which you can try out.
Docker Containers is a technology where you, instead of virtualizing the entire machine, only virtualize the services and share resources from the host computer. Read more about it here: https://www.docker.com/what-docker
Read more about how to get started with Docker here: https://docs.docker.com/docker-for-windows/install/
So what does this mean?
We can install NAV environments as container both in Azure and on premise. Â We can have multiple NAV versions to work with without having to install, so there is no conflict. Â We can also get access to container images that are still in preview.
Note what Microsoft says, they are investigating. Â The NAV Container Image service is not public yet. Â You need authentication to get access. Â This project has a place on GitHub. Â To get access please contact Microsoft or send me a line and I will point you in the right direction.
The easiest way to get started is to try the NAV Developer Preview template on Azure, Â http://aka.ms/navdeveloperpreview. Â This will give you a full development environment for NAV Extension2.0 using VS Code.
It should be straight forward to install AdvaniaGIT on top of the NAV Developer Preview and start from there. Â We can also start from Azure template called “Windows Server 2016 Datacenter – with Containers”.
The local option is to install Docker on our Windows laptop. Â If you would like to use Docker on your laptop you need to change one setting after installation. Â You need to switch to Windows containers. Â Your laptop will most likely restart during installation and configuration of Docker so make sure to have your work saved.
If you are planning to run a Docker-Only environment you don’t need to install NAV. Â Still there are prerequisite components that you must install. Â These components can be found on the NAV DVD folder “Prerequisite Components”. Â From the “Microsoft SQL Server” folder install sqlncli64.msi and ReportBuilder3.msi. Â From the “Microsoft Visual C++ 2013” folder install vcredist_x64.exe. Â From the “Microsoft Visual Studio 2010 Tools for Office Redist” install vstor_redist.exe. Â From the “Microsoft Report Viewer” folder install both SQLSysClrTypes.msi and ReportViewer.msi. Â You should now be ready for the next step.
So, let’s get started
In your C:\AdvaniaGIT\Data folder open DockerSettings.json
{ "RepositoryPath": "navdocker.azurecr.io", "RepositoryUserName": "7cc3c660-fc3d-41c6-b7dd-dd260148fff7", "RepositoryPassword": "access_key_for_the_repository" }
That’s all. Â Your are now ready to use Docker with AdvaniaGIT. Â Make sure to always have the latest version of AdvaniaGIT installed.
You can even use the “devpreview” build of NAV TENERIFE to do vNext development both in C/AL and AL.
Stay tuned, the AdvaniaGIT journey will continue…