by mg · 4y ago · 0 comments
A single Docker container can be used like a fast, lightweight VM. And from there on it is just copy+paste.
So on a Linux machine the process would be:
1: docker run -v $(pwd):/var/www --rm -it -p 80:80 debian:11-slim
2: Copy+Paste the lines
3: Enjoy the running web appWhat I'm highlighting is:
* The knowledge depth and time required on your part to maintain the text such that it works on all supported systems
* The fact that you're depending on a number of tools that might become obsolete quite fast, which might throw a wrench into your text.
** For example, Docker stops supporting CLI due to licensing. Linux splinters off to podman, Windows creates its own tool, macOS users will generally continue working with Docker. You'll then be forced to migrate to a different tool, like Vagrant.
Rather than create a text that's a "bring your own developer workstation", create a webpage that I pay $15 for monthly, you record a video explaining a concept, and then you have a button that says "spin up a lab for X". This throws me to a controlled environment, e.g. in AWS, where you tell me the exact steps that will achieve what I want to achieve.
After a few years, the history if it would be very interesting. It would show how much maintenance a minimal web app based on the different approaches needed.