|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/building-and-dockerizing-a-nodejs-web-application/
课程评论:没有评论
课程名称:构建和 Docker 化 Node.js Web 应用程序 课程概述:Docker 是一个开源项目,旨在自动化应用程序在隔离容器内的开发、部署和运行。容器可以让开发者将应用程序与所需的所有部分打包在一起,包括库和其他依赖项,作为一个整体进行交付。Docker 既是一个守护进程(在后台运行的进程),也是一个客户端命令。它类似于虚拟机,但在重要方面有所不同:首先,重复性更少。每增加一个虚拟机,都会重复虚拟化 CPU 和内存,在本地运行时容易耗尽资源。Docker 非常适合设置本地开发环境,因为它可以轻松添加运行过程,而不必重复虚拟化资源。其次,Docker 更加模块化。Docker 使得运行同一程序的多个版本或实例变得简单,无需配置麻烦和端口冲突。 本课程的目标是展示如何将 Node.js 应用程序放入 Docker 容器中。此课程主要面向开发人员,而非生产部署,并假设您已经安装了 Docker,并对 Node.js 应用程序的结构有基本了解。课程还将涵盖 Docker Desktop 的安装,以防您需要帮助。 在本课程的第一部分,我们将创建一个简单的 Node.js Web 应用程序,然后为该应用程序构建一个 Docker 镜像,最后从该镜像实例化一个容器。
Docker is an open-source project that automates the development, deployment and running of applications inside isolated containers. Containers allow developers to bundle up an application with all of the parts it needs, such as libraries and other dependencies, and ship it as one package.Docker is both a daemon (a process running in the background) and a client command. It's like a virtual machine but it's different in important ways. First, there's less duplication. With each extra VM you run, you duplicate the virtualization of CPU and memory and quickly run out resources when running locally. Docker is great at setting up a local development environment because it easily adds the running process without duplicating the virtualized resource. Second, it's more modular. Docker makes it easy to run multiple versions or instances of the same program without configuration headaches and port collisions. The goal of this course is to show you how to get a Node.js application into a Docker container. This course is intended for development, and not for a production deployment. The guide also assumes you have a working Docker installation and a basic understanding of how a Node.js application is structured. The course covers installation of Docker Desktop just in case you need help.In the first section of this course we will create a simple web application in Node.js, then we will build a Docker image for that application, and lastly we will instantiate a container from that image.