Reader small image

You're reading from  Implementing Microsoft Dynamics 365 Business Central On-Premise - Fourth Edition

Product typeBook
Published inDec 2018
Publisher
ISBN-139781789133936
Edition4th Edition
Right arrow
Authors (2):
Roberto Stefanetti
Roberto Stefanetti
author image
Roberto Stefanetti

Roberto Stefanetti is a functional and technical consultant, who has worked on education and training for companies, partners, and clients. He currently works on Microsoft systems, especially ERP and related environments. He started working on Navision in 2004, both as a developer and as a functional consultant, and he is now more involved in consulting and managing projects than in development. He has been an MVP in business application since 2016 and a Microsoft Education Influencer since 2017. Roberto's blog is one of the most widely read in the world (with more than 1 million page visits). He has also published articles on many digital publications (such as MSDynamicsWorld, NAVUG Magazine, and others) and reviewed a number of books.
Read more about Roberto Stefanetti

Alex Chow
Alex Chow
author image
Alex Chow

Alex Chow has been working with Microsoft Dynamics NAV, formerly Navision, since 1999. His customers range from $2 million a year small enterprises to $500 million a year multinational corporations. With a background in implementing all functions and modules inside and outside of Microsoft Dynamics NAV, Alex has encountered and resolved the most practical through to the most complex requirements and business rules. He founded AP Commerce, Inc. in 2005, a full-service Dynamics NAV service center. Alex has also written the books Getting Started with Dynamics NAV 2013 Application Development and Implementing Dynamics NAV, Third Edition, both by Packt. He lives in southern California with his wife and two lovely daughters.
Read more about Alex Chow

View More author details
Right arrow

Chapter 14. Working and Developing with Docker and Sandboxes

In the previous chapter,we discussed, in detail, Microsoft Dynamics 365 Business Central, illustrating its features and the principles for which it was introduced, as well as how it works. In this chapter, we will talk about sandboxes environments, we can use to do the following:

  • Develop and test  
  • Testing a demo company
  • Testing copies of production data

These environments are useful for both Microsoft Dynamics 365 Business Central on-premise and SaaS.

Introducing Docker, sandboxes, and their benefits


In this section, we will start our discussion on containers, Docker and sandboxes.

Containers and Docker

Containers are tools that are widely used today because they are based on virtualization that can be used for different purposes. Container provides operating-system-level virtualization, they shares the host system's kernel with other containers. The only limitation to the number of containers that can be used on a machine are memory, the processor, and disk limits.

Docker is a set of tools for creating containerized apps, Docker for Windows is the best way to get started with Docker on Windows systems.

Comparison between virtual machine and Docker technology

Note

Got Docker for Windows? If you have not yet installed Docker for Windows, see https://docs.docker.com/docker-for-windows/install/ for an explanation of stable and edge channels, system requirements, and download and install information. You can visit the page for Docker for Windows...

Using sandboxes for Microsoft Dynamics NAV and Microsoft Dynamics 365 Business Central


In this section, we will start by taking a look at sandboxes.

Sandbox types

There are two sandbox types that can be used for Microsoft Dynamics 365 Business Central—an online or on-premise sandbox that be managed locally or through Microsoft Azure. There are differences between the two types of sandbox and how they can be used, detailed in the following table.

The following table shows capability comparison:

SaaS sandbox

Local sandbox (container or Azure VM)

Managed by Microsoft

Managed by a partner

Uses VS Code only

Uses VS Code, C/AL, and SQL Server

The production and sandbox is in the same environment

Located in Docker container environments

Cost—subscription required

Costs—Charged on Azure; free on local

No database access (backups and load balancing is managed by Microsoft)

Full database access

Debugging

Debugging

Visual Studio Code and "In-client" Designer

Visual Studio Code, "In-client" Designer, C/SIDE, and SSMS

How...

Using Docker for Microsoft Dynamics NAV and Microsoft Dynamics 365 Business Central


In this section, we will discuss how to use Docker for Microsoft Dynamics NAV and Microsoft Dynamics 365 Business Central.

Working with Docker for Microsoft Dynamics NAV 2018 and Microsoft Dynamics 365 Business Central on-premises

As we've already mentioned, it is possible to use Docker to install local sandbox environments; in these environments, it is possible to develop, debug, and test procedures and apps without touching the production environment at all. Deployments in Docker can be created, deleted, and recreated in a short amount of time, so they are a very useful tool for all developers and consultants who use either Microsoft Dynamics NAV or Microsoft Dynamics 365 Business Central.

Docker's best commands

The following list features some of the most useful commands in Docker:

  • docker images: Shows the container list
  • docker pull: Downloads an image
  • docker rmi: Removes an image
  • docker run: Runs an image
  • docker...

Summary


In this chapter, we offered step-by-step instructions on how to install, configure, and activate Docker and sandbox environments for test data, setup, and development in Microsoft Dynamics 365 Business Central and Microsoft Dynamics NAV. Sandbox environments are very useful for developing and testing data and applications before uploading them in a Microsoft Dynamics 365 Business Central SaaS production environment.

Sandbox environments, whether online or in Docker containers, are useful for everyone—customers, developers, and consultants—when studying and testing new product releases. They enable you to create, delete, and recreate products in a very simple way. In addition to Microsoft Dynamics 365 Business Central, Docker and sandboxes are also very useful for older versions of Microsoft Dynamics NAV when simulating upgrades, trying out new product releases, testing new cumulative updates, and so on.

Further considerations


Although this book is now finished, I would like to offer some considerations.

Remember that Microsoft constantly updates and changes its products, so some images and screenshots may not be as up-to-date as possible at the time of reading. The writing mode for this book is in line with my blog posts.

Thank you for reading and enjoy! 'Til we meet next time.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Implementing Microsoft Dynamics 365 Business Central On-Premise - Fourth Edition
Published in: Dec 2018Publisher: ISBN-13: 9781789133936
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Authors (2)

author image
Roberto Stefanetti

Roberto Stefanetti is a functional and technical consultant, who has worked on education and training for companies, partners, and clients. He currently works on Microsoft systems, especially ERP and related environments. He started working on Navision in 2004, both as a developer and as a functional consultant, and he is now more involved in consulting and managing projects than in development. He has been an MVP in business application since 2016 and a Microsoft Education Influencer since 2017. Roberto's blog is one of the most widely read in the world (with more than 1 million page visits). He has also published articles on many digital publications (such as MSDynamicsWorld, NAVUG Magazine, and others) and reviewed a number of books.
Read more about Roberto Stefanetti

author image
Alex Chow

Alex Chow has been working with Microsoft Dynamics NAV, formerly Navision, since 1999. His customers range from $2 million a year small enterprises to $500 million a year multinational corporations. With a background in implementing all functions and modules inside and outside of Microsoft Dynamics NAV, Alex has encountered and resolved the most practical through to the most complex requirements and business rules. He founded AP Commerce, Inc. in 2005, a full-service Dynamics NAV service center. Alex has also written the books Getting Started with Dynamics NAV 2013 Application Development and Implementing Dynamics NAV, Third Edition, both by Packt. He lives in southern California with his wife and two lovely daughters.
Read more about Alex Chow