-
Notifications
You must be signed in to change notification settings - Fork 14
Infra
Vagrant
You put code into environments
Run provisioning script onto VM =>
installs correct software (node.js version, user permissions, config)
Docker
You build your environment and can run it anywhere
Runs off of containers.
Dockerfile builds a docker image.
Docker image: complete app code that will sit on top of a machine (you don't store the machine on the image)
Run docker image in a container.
Push that image to Docker Hub (or others)
Any other machine can run your IMAGE. [docker run myProjectImage]
-> Since the image contains the entire image you don't need to install any software on that new machine
-> In other words, no need to install npm, node.js, etc.
-> Cloud Clusters: All the computers to act as one; share resources. Spin up containers all run in the cluster.
nginx: Can spin up an nginx container and load balance the containers and provide a port to allow one to
access the app.