Files

38 lines
717 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: docker-build
description: 根据dockerfile构建镜像
---
# Docker Build
## Overview
此技能用于协助完成 Docker 镜像的构建
## When to Use
根据docker file 构建镜像
## Core Workflow
### 1. 清理node1 服务器 ~/dockerbuild/ 目录下,对应项目的文件
### 2. 同步代码到node1 服务器 ~/dockerbuild/ 目录下,对应项目的文件
### 3. 执行docker build 构建镜像
### 4. 导出镜像,并下载到当前项目对应的把目录下
## node1服务器信息
ip 10.0.3.5
用户名 awei
已做ssh 互信
## 镜像命名
- 名字保持和对应目录名称一致
- 版本采用月日时分格式,如 041923344月19日23时34分