Part I: Running DADI Web in a container
This is the first article in a series of articles which will take you through the containerization of three core DADI web services: Web, API, and CDN.
The first service we'll containerize is DADI Web, our schemaless templating layer. First we'll create a standard Web project, and then we'll containerize it. We'll go through some of the basics of Docker, and how we can use them alongside DADI Web.
Docker
Docker is an open container platform providing developers and sysadmins with a lightweight method of process & resource isolation, the ability to package an application and all it's dependencies into a single image, allowing greater levels of automation and portability.
The DADI suite runs on Node.js and works perfectly fine without containers, but by utilising containers, we can gain greater isolation, scalability, and enhance our automation ability as well.
If you haven't used Docker before, then I'd recommend reading through the Docker getting started guide.
Requirements
For this article I'll be working with Docker 17.06.2-ce-mac27 and macOS Sierra . If you don't have Docker installed, you can get it from the Docker Community Edition website.
I'll also be installing DADI applications with the DADI command line interface, to install that run npm install @dadi/cli -g.
Getting started
We'll begin by creating a directory for our project and installing DADI Web using the DADI command-line interface tool. When asked to pick a template engine, select .
Tutorials
Last Updated:
September 2019

