Skip to content

Commit

Permalink
update docker docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzhao committed Nov 25, 2020
1 parent 6f24b9a commit f730910
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
10 changes: 8 additions & 2 deletions DevOps/GitHub-Actions-CICD教程.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,24 @@ actions 是 GitHub Actions 的核心,简单来说,它其实就是一段可


```yaml
# 工作流名称
name: Docker Image CI

# on设置触发工作流的事件:当有pull到master,pr到master,每隔十五分钟运行一次
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '*/15 * * * *'

# 工作流的作业
jobs:

# 第一个job是构建
build:

name: build a test image
runs-on: ubuntu-latest

steps:
Expand Down
6 changes: 6 additions & 0 deletions docker/1、docker系列之docker容器入门.md
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,12 @@ WORKDIR指令设置 Dockerfile 中的任何 RUN,CMD,ENTRPOINT,COPY 和 ADD



#### dockerfile多阶段构建







## docker 文件系统
Expand Down
3 changes: 2 additions & 1 deletion mysql/14、深入理解InnoDB存储引擎.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ MySQL默认在InnoDB缓冲池(而不是整个缓冲池)中仅保留最频繁
innodb_buffer_pool_instances=1
# 缓冲池总大小,默认是128MB,一般设置为物理内存的70%左右。MySQL5.7.5之后可以动态调整,不要在业务繁忙的时候进行动态调整。
innodb_buffer_pool_size=134217728
# 缓冲池配置时的基本单位,以块的形式配置,指明块大小,innodb_buffer_pool_size=innodb_buffer_pool_chunk_size * innodb_buffer_pool_instances * n
# 缓冲池配置时的基本单位,以块的形式配置,指明块大小。
# innodb_buffer_pool_size=innodb_buffer_pool_chunk_size * innodb_buffer_pool_instances * n
innodb_buffer_pool_chunk_size=128M # 默认内存块是128M,可以以1MB为单位(1048576 字节)增加或减少


Expand Down
6 changes: 5 additions & 1 deletion mysql/mysql-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ mysql>

### 用户管理

我们在创建数据库用户的时候都会指定host,即一个完整的用户可描述为 'username'@'host' 。
我们在创建数据库用户的时候都会指定host,即一个完整的用户可描述为 'username'@'host' 。(即 username@host 是唯一确定一个用户)

创建用户时不显式指定host则默认为%,%代表所有 ip 段都可以使用这个用户,我们也可以指定host为某个ip或ip段,这样会仅允许在指定的ip主机使用该数据库用户。

Expand Down Expand Up @@ -199,6 +199,10 @@ collation-server = utf8mb4_unicode_ci
skip_name_resolve = 1
open_files_limit = 65535
back_log = 1024




```

#### 下载
Expand Down
Empty file.

0 comments on commit f730910

Please sign in to comment.