Docker

Docker is a software platform that allows you to build, test, deploy and share applications quickly.

It reduces the time spent on complex setups. Combining Docker with the power of MDriven, app development is faster and more focused on the important parts of your application which is the business logic or system gist.

Docker reduces deployment time, increasing productivity and efficiency.

Apps are packaged into standardized units called containers that have everything the app needs to run, including libraries, system tools, code and runtime. It is faster to test, deploy and scale applications into any environment.

Docker Desktop

Docker Desktop enhances your development experience by offering a powerful user friendly platform that lets you manage your containers, applications and images directly from your machine.

Install Docker Desktop from here. Versions are available for both Windows and Linux.

Docker Compose

Docker Compose simplifies the process of managing multi-container applications. You can define and run complex setups with a single configuration file, making it easier to deploy and scale applications.

Deployment

Docker makes it easy to build and run distributed microservices' architectures with standardized continuous integration and delivery pipelines.

Different flavours of the Windows and Linux operating systems are available for use in Docker containers.

  1. Linux containers are more lightweight than Windows containers.
  2. Linux containers are free and opensource compared to Windows containers that require licenses.
  3. Linux containers are widely supported and compatible with various tools and platforms.

MDriven Turnkey and MDriven Server have Linux distributions and can be run in Linux containers - making them more portable, easy to share and run. Deploying MDriven apps is faster and less complex.

Choose one of the Linux distributions to deploy with:

  • Alpine - Extremely light weight with a minimalist approach. It is ideal for light-weight apps, microservices and environments where efficient resource utilization is critical.
  • Ubuntu - Has a larger footprint with more preinstalled packages and tools, ideal for an environment where a wide range of tools and libraries are needed.

Docker Deployments

Important to Know

  • Alpine Linux only comes with essential packages which attribute to its light weight. Install locale packages and set language to prevent locale errors. The MDriven Turnkey uses the Operating System locale settings to determine which locale file to use.


Setup for Docker file

RUN apk add musl-locales

ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
  • Perform healthchecks on the MDriven Server to prevent the Server from being unavailable when VistaDB locks itself . A health check restarts the MDriven Server each time it is in an unhealthy state and not available.
  • For local deployment, the MDriven Server and MDriven Turnkey have to be on the same network to communicate.


This page was edited 6 days ago on 11/15/2024. What links here