docker-dna library is a collection of utilities that together simplify the process
of deploying webapps inside containers, all the while making sure the process is efficient,
customizable, and extensible.
The standard procedure for accomplishing the task of deploying webapps inside containers may look something like this:
Copy the relevant files to your webserver
Build and tag the container image
Find an open port on your machine to use in the next step
Run the container image you just built, exposing whatever port the front-end runs on
Write the webserver configuration to proxy your domain endpoint to the port you just exposed
Reload the webserver to host your front-end
Run certbot to get an SSL certificate for your domain endpoint
This sounds tedious, and even if you were to script it, it’d be a lot of scripting to do and chances are it’d be hard to maintain if something goes wrong in the future (which, you know it will in this field of work).
The process boils down to the following:
Receive a git webhook, and checkout the referenced commit
Figure out what domain(s) you want to deploy this app to
That’s it! That handles your first deploy, second deploy, one hundredth deploy… you get the idea.