This tutorial follows on from Building an Image from a Dockerfile (and adding to the DkIT Registry) and is part of a series. If this is your first time here, maybe start at the beginning.
Up until now, students have had access to creating Virtual Machines (VMs) on the Dundalk Institute of Technology network via our Xen Orchestra Appliance (XOA) at http://xoa.comp.dkit.ie. But VMs in the real world are rapidly being replaced by “containers”, so it’s time to take things to a whole new level.
It’s possible to pass variables from your server into Pug for dynamic content or script generation. Pug templates can access variables passed to the
res.renderfunction in Express (or
pug.renderFile if you are not using Express, the arguments are identical).