当前位置: 首页 > news >正文

Docker 笔记(七)--打包软件生成镜像

目录

  • 1. 背景
  • 2. 参考
  • 3. 文档
    • 3.1 使用docker container commit命令构建镜像
      • 3.1.1 [Docker官方文档-docker container commit](https://docs.docker.com/reference/cli/docker/container/commit/)
        • Description(概述)
        • Options(选项)
        • Examples(示例)
    • 3.2 使用Dockerfile 构建镜像
      • 3.2.1 [Docker官方文档-Dockerfile](https://docs.docker.com/build/building/packaging/#dockerfile)
        • Dockerfile
        • Docker images(镜像)
        • Building(构建)
        • Other resources(其他资源)
  • 4. 实践
    • 4.1 docker container commit
    • 4.2 dockerfile

1. 背景

记录了Docker 的制作镜像知识。

2. 参考

  • 链接: docker官方文档
  • 链接: 关于制作Docker镜像?| Dockerfile快速开始

3. 文档

3.1 使用docker container commit命令构建镜像

使用docker commit命令,基于已存在的容器构建出新镜像。

3.1.1 Docker官方文档-docker container commit

docker container commit

在这里插入图片描述

Description(概述)

It can be useful to commit a container’s file changes or settings into a new image. This lets you debug a container by running an interactive shell, or export a working dataset to another server.

将容器的文件更改或设置提交到新镜像中非常有用。这使您可以通过运行交互式shell调试容器,或者将工作数据集导出到另一台服务器。

Commits do not include any data contained in mounted volumes.

提交不包括挂载卷中的任何数据。

By default, the container being committed and its processes will be paused while the image is committed. This reduces the likelihood of encountering data corruption during the process of creating the commit. If this behavior is undesired, set the --pause option to false.

默认情况下,在提交镜像时,正在提交的容器和它的进程将暂停。这降低了在创建提交过程中遇到数据损坏的可能性。如果不希望出现这种行为,请将–pause选项设置为false。

The --change option will apply Dockerfile instructions to the image that’s created. Supported Dockerfile instructions: CMD|ENTRYPOINT|ENV|EXPOSE|LABEL|ONBUILD|USER|VOLUME|WORKDIR

–change选项将Dockerfile指令应用于创建的镜像。支持的Dockerfile指令:CMD|ENTRYPOINT|ENV|EXPOSE|LABEL|ONBUILD|USER|VOLUME|WORKDIR

Options(选项)

在这里插入图片描述

Examples(示例)
  • Commit a container
    • 提交容器ID:c3f279d17e0a,
    • 仓库/镜像名:svendowideit/testimage
    • TAG:version3

在这里插入图片描述

  • Commit a container with new configurations (–change)
    • 提交容器ID:c3f279d17e0a,
    • 仓库/镜像名:svendowideit/testimage
    • TAG:version3
    • 修改配置:–change “ENV DEBUG=true”

在这里插入图片描述

  • Commit a container with new CMD and EXPOSE instructions
    • 提交容器ID:c3f279d17e0a,
    • 仓库/镜像名:svendowideit/testimage
    • TAG:version4
    • 修改配置: --change=‘CMD [“apachectl”, “-DFOREGROUND”]’
    • 修改配置:-c “EXPOSE 80”

在这里插入图片描述

3.2 使用Dockerfile 构建镜像

编写 Dockerfile 文件,使用docker build命令来构建镜像。

3.2.1 Docker官方文档-Dockerfile

Dockerfile

It all starts with a Dockerfile.

这一切都是从Dockerfile开始的。

Docker builds images by reading the instructions from a Dockerfile. A Dockerfile is a text file containing instructions for building your source code. The Dockerfile instruction syntax is defined by the specification reference in the Dockerfile reference.

Docker通过从Dockerfile中读取指令来构建镜像。Dockerfile是一个文本文件,包含构建源代码的指令。Dockerfile指令语法在参考规范中定义,详见Dockerfile reference。

Here are the most common types of instructions:

以下是最常见的指令类型:

在这里插入图片描述

  • FROM :定义镜像的基础镜像。
  • RUN :在当前镜像顶部的新层中执行命令并提交结果。RUN还有一个shell形式,用于运行命令。
  • WORKDIR :为Dockerfile中的任何RUN、CMD、ENTRYPOINT、COPY和ADD指令设置工作目录。
  • COPY <src> <dest>:从<src>复制新文件或目录,并将它们添加到容器文件系统的<dest>路径中。
  • CMD :用于定义使用镜像启动容器后运行的默认程序。每个Dockerfile应该只有一个CMD,如果存在多个CMD时,只有最后一个生效。

Dockerfiles are crucial inputs for image builds and can facilitate automated, multi-layer image builds based on your unique configurations. Dockerfiles can start simple and grow with your needs to support more complex scenarios.

Dockerfiles是镜像构建的关键输入,它可以根据您特定配置,自动化构建多层镜像。Dockerfiles可以从简单开始,并随着您的需求而增长,以支持更复杂的场景。

Filename

The default filename to use for a Dockerfile is Dockerfile, without a file extension. Using the default name allows you to run the docker build command without having to specify additional command flags.

Dockerfile使用的默认文件名是Dockerfile,没有文件扩展名。使用默认名称可以运行docker构建命令,而无需指定其他命令标志。

Some projects may need distinct Dockerfiles for specific purposes. A common convention is to name these <something>.Dockerfile. You can specify the Dockerfile filename using the --file flag for the docker build command. Refer to the docker build CLI reference to learn about the --file flag.

某些项目可能需要不同的Dockerfile来实现特定目的。一个通常的约定是使用<something>.Dockerfile形式命名。您可以使用docker构建命令的–file标志来指定Dockerfile文件名。请参阅docker build CLI参考,了解–file标志。

Note

We recommend using the default (Dockerfile) for your project’s primary Dockerfile.

注意
我们推荐使用默认(Dockerfile)作为您项目的主Dockerfile。

Docker images(镜像)

Docker镜像

Docker images consist of layers. Each layer is the result of a build instruction in the Dockerfile. Layers are stacked sequentially, and each one is a delta representing the changes applied to the previous layer.

Docker镜像由层组成。每一层都是Dockerfile中构建指令的结果。层按顺序堆叠,每个层都是一个三角形,表示应用于前一层的更改。

Example

Here’s what a typical workflow for building applications with Docker looks like.

以下是使用Docker构建应用程序的典型工作流。

The following example code shows a small “Hello World” application written in Python, using the Flask framework.

下面的示例代码显示了一个使用Flask框架,用Python编写的小型“Hello World”应用程序。

在这里插入图片描述

In order to ship and deploy this application without Docker Build, you would need to make sure that:

为了交付和部署此应用程序,在Docker Build前,您需要确保:

  • The required runtime dependencies are installed on the server
  • The Python code gets uploaded to the server’s filesystem
  • The server starts your application, using the necessary parameters
  • 所需的运行时依赖项已安装在服务器上
  • Python代码被上传到服务器的文件系统
  • 服务器启动应用程序,需要使用必要的参数

The following Dockerfile creates a container image, which has all the dependencies installed and that automatically starts your application.

以下Dockerfile创建了一个容器镜像,该镜像安装了所有依赖项,并自动启动应用程序。

在这里插入图片描述

Here’s a breakdown of what this Dockerfile does:

以下是这个Dockerfile的功能明细:

  • Dockerfile syntax ( Dockerfile语法 )
  • Base image ( 基本镜像 )
  • Environment setup ( 环境设置 )
  • Comments ( 注释 )
  • Installing dependencies ( 安装依赖 )
  • Copying files ( 拷贝文件 )
  • Setting environment variables ( 设置环境变量 )
  • Exposed ports ( 暴露端口 )
  • Starting the application ( 启动应用 )

Dockerfile syntax ( Dockerfile语法 )

The first line to add to a Dockerfile is a # syntax parser directive. While optional, this directive instructs the Docker builder what syntax to use when parsing the Dockerfile, and allows older Docker versions with BuildKit enabled to use a specific Dockerfile frontend before starting the build. Parser directives must appear before any other comment, whitespace, or Dockerfile instruction in your Dockerfile, and should be the first line in Dockerfiles.

Dockerfile的第一行是#语法解析器命令。虽然是可选的,但该命令指示Docker构建器在解析Dockerfile时使用什么语法,并允许带BuildKit的旧Docker版本在开始构建之前使用特定的Dockerfile前端(需要Docker CE 版本 > 18.09)。Parser命令必须出现在Dockerfile中的任何其他注释、空格或Dockerfile指令之前,并且应该是Dockerfile的第一行。

在这里插入图片描述

Tip

We recommend using docker/dockerfile:1, which always points to the latest release of the version 1 syntax. BuildKit automatically checks for updates of the syntax before building, making sure you are using the most current version.

我们建议使用docker/dokerfile:1,它总是指向版本1语法的最新版本。BuildKit在生成之前会自动检查语法的更新,确保您使用的是最新版本。

注意:在公有云上使用前,请先检查Docker的版本

Base image( 基本镜像 )

The line following the syntax directive defines what base image to use:

syntax命令后面的行,定义了要使用基础镜像

在这里插入图片描述
The FROM instruction sets your base image to the 22.04 release of Ubuntu. All instructions that follow are executed in this base image: an Ubuntu environment. The notation ubuntu:22.04, follows the name:tag standard for naming Docker images. When you build images, you use this notation to name your images. There are many public images you can leverage in your projects, by importing them into your build steps using the Dockerfile FROM instruction.

FROM指令将您的基础镜像设置为Ubuntu的22.04版本。下面的所有指令都在这个基础镜像中执行:Ubuntu环境。符号ubuntu:22.04遵循命名Docker镜像的标准,名称:标签。当你构建镜像时,您可以使用这个符号来命名您的镜像。通过使用Dockerfile FROM指令,可以将许多公共镜像导入到构建步骤中,这样就可以在项目中利用它们。

Docker Hub contains a large set of official images that you can use for this purpose.

Docker Hub包含大量官方镜像,您可以将其用于此目的。

Environment setup ( 环境设置 )

The following line executes a build command inside the base image.

以下行在基础镜像中执行一个构建命令。

在这里插入图片描述This RUN instruction executes a shell in Ubuntu that updates the APT package index and installs Python tools in the container.

这个RUN指令在Ubuntu中执行一个shell,更新APT包的索引,并在容器中安装Python工具。

Comments ( 注释 )

Note the # install app dependencies line. This is a comment. Comments in Dockerfiles begin with the # symbol. As your Dockerfile evolves, comments can be instrumental to document how your Dockerfile works for any future readers and editors of the file, including your future self!

请注意 “# install app dependencies”。这是一条注释。Dockerfiles中的注释以 # 符号开头。随着Dockerfile的发展,注释可以记录您的Dockerfile是如何工作的,这有助于这今后的文件读者和编辑者,包括今后的您自己!

Note

You might’ve noticed that comments are denoted using the same symbol as the syntax directive on the first line of the file. The symbol is only interpreted as a directive if the pattern matches a directive and appears at the beginning of the Dockerfile. Otherwise, it’s treated as a comment.

您可能已经注意到,注释使用与文件第一行的syntax指令相同的符号(#)表示。只有 # 匹配并出现在Dockerfile的开头时,才会被解释为指令。否则,它将被视为注释。

Installing dependencies ( 安装依赖 )

The second RUN instruction installs the flask dependency required by the Python application.

第二条RUN指令安装Python应用程序所需的flask依赖项。

在这里插入图片描述
A prerequisite for this instruction is that pip is installed into the build container. The first RUN command installs pip, which ensures that we can use the command to install the flask web framework.

此指令的先决条件是将pip安装到构建的容器中。第一个RUN命令安装了pip,这确保了我们可以使用该命令安装flask web框架。

Copying files ( 拷贝文件 )

The next instruction uses the COPY instruction to copy the hello.py file from the local build context into the root directory of our image.

下一条指令使用COPY指令将hello.py文件从本地构建上下文环境中复制到镜像的根目录中。

在这里插入图片描述

A build context is the set of files that you can access in Dockerfile instructions such as COPY and ADD.
After the COPY instruction, the hello.py file is added to the filesystem of the build container.

构建上下文环境是您可以在Dockerfile指令(如COPY和ADD)中访问的一组文件。在COPY指令之后,hello.py文件被添加到构建容器的文件系统中。

Setting environment variables ( 设置环境变量 )

If your application uses environment variables, you can set environment variables in your Docker build using the ENV instruction.

如果您的应用程序使用环境变量,则可以使用ENV指令在Docker构建中设置环境变量。

在这里插入图片描述
This sets a Linux environment variable we’ll need later. Flask, the framework used in this example, uses this variable to start the application. Without this, flask wouldn’t know where to find our application to be able to run it.

这将设置我们稍后需要的Linux环境变量。本例中使用的框架Flask使用此变量启动应用程序。如果没有这个,flask就不知道在哪里可以找到我们的应用程序来运行它。

Exposed ports ( 暴露端口 )

The EXPOSE instruction marks that our final image has a service listening on port 8000.

EXPOSE指令标志着我们的最终镜像有一个侦听端口8000的服务。

在这里插入图片描述
This instruction isn’t required, but it is a good practice and helps tools and team members understand what this application is doing.

此指令不是必需的,但它是一种很好的做法,有助于工具和团队成员了解此应用程序的功能。

Starting the application ( 启动应用 )

Finally, CMD instruction sets the command that is run when the user starts a container based on this image.

最后,CMD指令设置当用户基于此镜像启动容器时运行的命令。

在这里插入图片描述
This command starts the flask development server listening on all addresses on port 8000. The example here uses the “exec form” version of CMD. It’s also possible to use the “shell form”:

这个命令启动flask开发服务器,侦听所有地址上的8000端口。这里的示例使用CMD的“exec-form”版本。也可以使用“shell形式”:

在这里插入图片描述
There are subtle differences between these two versions, for example in how they trap signals like SIGTERM and SIGKILL. For more information about these differences, see Shell and exec form.

这两个版本之间有细微的区别,例如它们如何捕获SIGTERM和SIGKILL等信号。有关这些差异的更多信息,请参阅Shell和exec表单

Building(构建)

To build a container image using the Dockerfile example from the previous section, you use the docker build command:

要使用上一节中的Dockerfile示例构建容器镜像,请使用docker build命令:

在这里插入图片描述
The -t test:latest option specifies the name and tag of the image.

-t test:latest选项指定镜像的名称和标记(TAG)。

The single dot (.) at the end of the command sets the build context to the current directory. This means that the build expects to find the Dockerfile and the hello.py file in the directory where the command is invoked. If those files aren’t there, the build fails.

命令末尾的点(.)将构建上下文设置为当前目录。这意味着构建期望在调用命令的目录中找到Dockerfile和hello.py文件。如果这些文件不存在,则构建失败。

After the image has been built, you can run the application as a container with docker run, specifying the image name:

构建镜像后,您可以用docker run命令,指定镜像名称将应用程序作为容器运行

在这里插入图片描述
This publishes the container’s port 8000 to http://localhost:8000 on the Docker host.

这将容器的8000端口发布到Docker主机上的http://localhost:8000

Other resources(其他资源)

If you are interested in examples in other languages, such as Go, check out our language-specific guides in the Guides section.

如果您对Go等其他语言的示例感兴趣,请查看指南部分中的特定语言指南。

For more information about building, including advanced use cases and patterns, refer to the Build with Docker guide.

有关构建的更多信息,包括高级用例和模式,请参阅《使用Docker构建指南》。

4. 实践

4.1 docker container commit

docker container commit和docker build命令的基本使用详见《docker 容器内服务随容器自动启动》中的方法三方法五

4.2 dockerfile

详见后续文档:
Docker 笔记(八)–Dockerfile

相关文章:

Docker 笔记(七)--打包软件生成镜像

目录 1. 背景2. 参考3. 文档3.1 使用docker container commit命令构建镜像3.1.1 [Docker官方文档-docker container commit](https://docs.docker.com/reference/cli/docker/container/commit/)Description&#xff08;概述&#xff09;Options&#xff08;选项&#xff09;Exa…...

图论06-飞地的数量(Java)

6.飞地的数量 题目描述 给你一个大小为 m x n 的二进制矩阵 grid &#xff0c;其中 0 表示一个海洋单元格、1 表示一个陆地单元格。 一次 移动 是指从一个陆地单元格走到另一个相邻&#xff08;上、下、左、右&#xff09;的陆地单元格或跨过 grid 的边界。 返回网格中 无法…...

Java设计模式之单例设计模式

单例设计模式就是保证整个软件系统中&#xff0c;某个类只能存在一个对象实例&#xff0c;并且该类只提供一个取得该对象的方法。 单例设计模式包括两种&#xff1a;饿汉式和懒汉式。 饿汉式&#xff1a; 含义&#xff1a; 在类加载时就创建并初始化单例对象。这种方式确保了…...

多维时序 | MATLAB实现BiTCN-selfAttention自注意力机制结合双向时间卷积神经网络多变量时间序列预测

多维时序 | MATLAB实现BiTCN-selfAttention自注意力机制结合双向时间卷积神经网络多变量时间序列预测 目录 多维时序 | MATLAB实现BiTCN-selfAttention自注意力机制结合双向时间卷积神经网络多变量时间序列预测预测效果基本介绍模型描述程序设计参考资料 预测效果 基本介绍 1.M…...

深入了解Android垃圾回收机制

文章目录 一、内存分配二、垃圾回收触发条件三、GC算法3.1 Dalvik虚拟机的GC算法3.2 ART的GC算法 四、优化GC性能五、监控GC耗时情况六、总结 在Android应用开发中&#xff0c;内存管理和垃圾回收&#xff08;GC&#xff09;对于应用性能和稳定性至关重要。理解GC机制有助于我们…...

如何学好Python语言

学习Python&#xff1a;一场充满探索与实践的编程之旅 Python&#xff0c;作为一种解释型、交互式和面向对象的编程语言&#xff0c;近年来在数据科学、人工智能、Web开发等多个领域得到了广泛的应用。掌握Python&#xff0c;不仅可以提升个人的编程技能&#xff0c;还能够为未…...

计算机408网课评测+资料分享

408当然有比较好的网课推荐&#xff0c;比如王道的视频课 现在大部分人备战408基本都用王道的讲义&#xff0c;然后再搭配王道408的课程来听&#xff0c;可以学的很好。 其中408视频课中&#xff0c;我认为讲的比较好的是数据结构&#xff0c;和操作系统&#xff0c;计算机组…...

使用 ZipArchiveInputStream 读取压缩包内文件总数

读取压缩包内文件总数 简介 ZipArchiveInputStream 是 Apache Commons Compress 库中的一个类&#xff0c;用于读取 ZIP 格式的压缩文件。在处理 ZIP 文件时&#xff0c;编码格式是一个重要的问题&#xff0c;因为它决定了如何解释文件中的字符数据。通常情况下&#xff0c;Z…...

JavaScript对象修饰教程

在JavaScript中&#xff0c;对象修饰是一种常见的编程模式&#xff0c;用于动态地向对象添加新的功能或修改现有功能&#xff0c;同时保持对象的原始结构不变。对象修饰可以帮助我们实现代码的复用、扩展和维护&#xff0c;让代码更加灵活和可扩展。本文将深入探讨JavaScript对…...

转置卷积(transposed-conv)

一、什么是转置卷积 1、转置卷积的背景 通常&#xff0c;对图像进行多次卷积运算后&#xff0c;特征图的尺寸会不断缩小。而对于某些特定任务 (如图像分割和图像生成等)&#xff0c;需将图像恢复到原尺寸再操作。这个将图像由小分辨率映射到大分辨率的尺寸恢复操作&#xff0c…...

P1481 魔族密码

P1481 魔族密码 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 字典树 在插入字符串 s s s时&#xff0c;不断记录 s 0... k s_{0...k} s0...k​的个数取最大即可。 #include <bits/stdc.h> using namespace std; const int N 1e5 21; int cnt[N], tr[N][30], idx,…...

无人机/飞控--ArduPilot、PX4学习记录(2)

这是一篇碎碎念&#xff0c;零零碎碎的记录了环境配置过程&#xff0c;仅供本人记录学习历程和参考。(记录的挺乱的&#xff0c;但是文章链接里的博客写的是真好) 本章主要完成的目标&#xff1a; 安装PX4 并 成功运行出3D无人机界面。 参考文章&#xff1a; 搭建PX4环境&…...

【Arxml专题】-29-使用Cantools将CAN Matrix Arxml自动生成C语言代码

目录 1 安装Python和Cantools 1.1 查看Python已安装的Package包 1.2 在Python中安装Cantools插件包 1.3 获取更多Cantools工具的更新动态 2 CAN Matrix Arxml自动生成C语言代码 2.1 批处理文件CAN_Matrix_Arxml_To_C.bat内容说明 2.2 CAN Matrix Arxml文件要求 2.3 如何…...

【id:21】【20分】E. 抄袭查找(结构体+指针+函数)

题目描述 已知一群学生的考试试卷&#xff0c;要求对试卷内容进行对比&#xff0c;查找是否有抄袭。 每张试卷包含&#xff1a;学号&#xff08;整数类型&#xff09;、题目1答案&#xff08;字符串类型&#xff09;、题目2答案&#xff08;字符串类型&#xff09;、题目3答案…...

ASP.NET-常用控件总结

一、ASP.NET基础控件 1、asp:TextBox (输入框) ASP.NET TextBox 控件用于接收用户输入。 <asp:TextBox ID"txtInput" runat"server"></asp:TextBox>2、asp:DropDownList (下拉框) ASP.NET DropDownList 控件用于提供一个下拉列表供用户选择…...

SpringBoot3整合Mybatis-Plus与PageHelper包冲突解决

&#x1f60a; 作者&#xff1a; 一恍过去 &#x1f496; 主页&#xff1a; https://blog.csdn.net/zhuocailing3390 &#x1f38a; 社区&#xff1a; Java技术栈交流 &#x1f389; 主题&#xff1a; SpringBoot3整合Mybatis-Plus与PageHelper包冲突解决 ⏱️ 创作时间&a…...

MQTT Keep Alive机制

MQTT 协议是承载于 TCP 协议之上的&#xff0c; 而 TCP 协议以连接为导向&#xff0c; 在连接双方之间&#xff0c; 提供稳定、 有序的字节流功能。 但是&#xff0c; 在部分情况下&#xff0c; TCP 可能出现半连接问题。 所谓半连接&#xff0c; 是指某一方的连接已经断开或者…...

基于springboot+vue的游戏交易系统

博主主页&#xff1a;猫头鹰源码 博主简介&#xff1a;Java领域优质创作者、CSDN博客专家、阿里云专家博主、公司架构师、全网粉丝5万、专注Java技术领域和毕业设计项目实战&#xff0c;欢迎高校老师\讲师\同行交流合作 ​主要内容&#xff1a;毕业设计(Javaweb项目|小程序|Pyt…...

高职(大专)结构化面试之答题思路

目录 一、岗位认知 二、职教热点 三、教育教学 四、人际关系 五、组织管理 六、应急应变 七、时政与教育 八、专业知识 一、岗位认知 考试方向&#xff1a;主要考察对岗位的全面认识、职业目标、职业规划、职业理想。 必背题目&#xff1a; 1.“你为什么要报考我们学校的教师岗…...

Python基础学习笔记(一)

Python简介 Python 语言是一种跨平台、开源、免费、解释型、面向对象、动态数据类型的高级程序设计语言。早期版本的 Python 被称作是 Python1&#xff1b;Python2 最后一个版本是 2.7&#xff1b;Python3 是目前最活跃的版 本&#xff0c;基本上新开发的 Python 代码都会支持…...

使用VSCode开发Django指南

使用VSCode开发Django指南 一、概述 Django 是一个高级 Python 框架&#xff0c;专为快速、安全和可扩展的 Web 开发而设计。Django 包含对 URL 路由、页面模板和数据处理的丰富支持。 本文将创建一个简单的 Django 应用&#xff0c;其中包含三个使用通用基本模板的页面。在此…...

基础测试工具使用经验

背景 vtune&#xff0c;perf, nsight system等基础测试工具&#xff0c;都是用过的&#xff0c;但是没有记录&#xff0c;都逐渐忘了。所以写这篇博客总结记录一下&#xff0c;只要以后发现新的用法&#xff0c;就记得来编辑补充一下 perf 比较基础的用法&#xff1a; 先改这…...

江苏艾立泰跨国资源接力:废料变黄金的绿色供应链革命

在华东塑料包装行业面临限塑令深度调整的背景下&#xff0c;江苏艾立泰以一场跨国资源接力的创新实践&#xff0c;重新定义了绿色供应链的边界。 跨国回收网络&#xff1a;废料变黄金的全球棋局 艾立泰在欧洲、东南亚建立再生塑料回收点&#xff0c;将海外废弃包装箱通过标准…...

Java面试专项一-准备篇

一、企业简历筛选规则 一般企业的简历筛选流程&#xff1a;首先由HR先筛选一部分简历后&#xff0c;在将简历给到对应的项目负责人后再进行下一步的操作。 HR如何筛选简历 例如&#xff1a;Boss直聘&#xff08;招聘方平台&#xff09; 直接按照条件进行筛选 例如&#xff1a…...

【Oracle】分区表

个人主页&#xff1a;Guiat 归属专栏&#xff1a;Oracle 文章目录 1. 分区表基础概述1.1 分区表的概念与优势1.2 分区类型概览1.3 分区表的工作原理 2. 范围分区 (RANGE Partitioning)2.1 基础范围分区2.1.1 按日期范围分区2.1.2 按数值范围分区 2.2 间隔分区 (INTERVAL Partit…...

GruntJS-前端自动化任务运行器从入门到实战

Grunt 完全指南&#xff1a;从入门到实战 一、Grunt 是什么&#xff1f; Grunt是一个基于 Node.js 的前端自动化任务运行器&#xff0c;主要用于自动化执行项目开发中重复性高的任务&#xff0c;例如文件压缩、代码编译、语法检查、单元测试、文件合并等。通过配置简洁的任务…...

【LeetCode】3309. 连接二进制表示可形成的最大数值(递归|回溯|位运算)

LeetCode 3309. 连接二进制表示可形成的最大数值&#xff08;中等&#xff09; 题目描述解题思路Java代码 题目描述 题目链接&#xff1a;LeetCode 3309. 连接二进制表示可形成的最大数值&#xff08;中等&#xff09; 给你一个长度为 3 的整数数组 nums。 现以某种顺序 连接…...

【从零开始学习JVM | 第四篇】类加载器和双亲委派机制(高频面试题)

前言&#xff1a; 双亲委派机制对于面试这块来说非常重要&#xff0c;在实际开发中也是经常遇见需要打破双亲委派的需求&#xff0c;今天我们一起来探索一下什么是双亲委派机制&#xff0c;在此之前我们先介绍一下类的加载器。 目录 ​编辑 前言&#xff1a; 类加载器 1. …...

第八部分:阶段项目 6:构建 React 前端应用

现在&#xff0c;是时候将你学到的 React 基础知识付诸实践&#xff0c;构建一个简单的前端应用来模拟与后端 API 的交互了。在这个阶段&#xff0c;你可以先使用模拟数据&#xff0c;或者如果你的后端 API&#xff08;阶段项目 5&#xff09;已经搭建好&#xff0c;可以直接连…...

RushDB开源程序 是现代应用程序和 AI 的即时数据库。建立在 Neo4j 之上

一、软件介绍 文末提供程序和源码下载 RushDB 改变了您处理图形数据的方式 — 不需要 Schema&#xff0c;不需要复杂的查询&#xff0c;只需推送数据即可。 二、Key Features ✨ 主要特点 Instant Setup: Be productive in seconds, not days 即时设置 &#xff1a;在几秒钟…...