4 ms·
Why, a Docker container. Yes, even on Windows. Pack up everything into a single image, downloadable from nearly anywhere. Your web server (which likely also t
by nine_k 7y ago
Why, a Docker container. Yes, even on Windows. Pack up everything into a single image, downloadable from nearly anywhere.
Your web server (which likely also terminates TLS) has to have fastcgi support, you configure the fastcgi and database ports, maybe mount a directory with config files into the container, and that's it.
- nwsm 7y ago>Yes, even on Windows. This would require you to run your containers on Windows servers right? Not much reason to do that anymore. Instead should just containerize as part of deployment pipeline
- zaptheimpaler 7y agoDocker on Windows can run linux containers just the same as docker on linux.. it uses a virtualbox vm with linux and runs containers inside that
- no_wizard 7y agoThis is not the case. It uses Hyper-V (which is multitudes faster in every benchmark I’ve seen and much more stable) https://docs.docker.com/machine/get-started/ https://docs.docker.com/machine/get-started/
- crispinb 7y agoAnd WSL2 takes it a stage further, running linux-native docker on a linux kernel (albeit wsl2 is itself running in a specialised Hyper-V machine). I haven't used Docker with WSL2 yet, but in other uses I've found WSL2 extremely fast. As long as you stay within its vhd, file access is ext4-quick. And on my machine running the geekbench cli gave me almost identical results to a native linux install.
- rgblambda 7y agoNot with Home edition, though you'd be ill advised to use that in a production server
- nine_k 7y agoSometimes all you have is a Windows box. You can either run Linux in a VM on it, or use WSL, or run native Windows containers which are a thing. Imagine that you have a binary dependency which is Windows-specific.
- antupis 7y agoIf you are using azure. Container service is very good, at least small scale projects.
- anthony_barker 7y agoor you can run on google app engine seamlessly.