Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shfshanyue committed Dec 15, 2019
1 parent 491b38e commit 2e89cd6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 15 deletions.
19 changes: 10 additions & 9 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,33 @@
1. [服务器初始登录:ssh-config](https://shanyue.tech/op/init.html)
1. [服务器ssh key 以及 git 配置](https://shanyue.tech/op/ssh-setting.html)
1. [系统信息查看相关命令](https://shanyue.tech/op/system-info.html)
1. [vim 基本操作及其配置](https://shanyue.tech/op/vim-setting.html)
1. [tmux 安装,基本操作及其配置](https://shanyue.tech/op/tmux-vim-setting.html)
1. [vim 基本操作及配置](https://shanyue.tech/op/vim-setting.html)
1. [tmux 与窗口管理](https://shanyue.tech/op/tmux-vim-setting.html)
1. 自动化运维
1. [ansible 简易入门](https://shanyue.tech/op/ansible-guide.html)
1. [ansible 必知必会](https://shanyue.tech/op/ansible-problem.html) - TODO
1. 了解 docker
1. [docker 简易入门](https://shanyue.tech/op/docker.html)
1. [Dockerfile 最佳实践](https://shanyue.tech/op/dockerfile-practice.html)
1. [使用 docker 高效部署前端应用](https://shanyue.tech/op/deploy-fe-with-docker.html)
1. 使用 docker compose 编排应用
1. [简介](https://shanyue.tech/op/docker-compose-arch.html)
1. [案例: 使用 docker 高效部署前端应用](https://shanyue.tech/op/deploy-fe-with-docker.html)
1. 使用 docker compose 编排容器
1. [compose 编排架构简介](https://shanyue.tech/op/docker-compose-arch.html)
1. [docker-compose 简易入门](https://shanyue.tech/op/docker-compose.html)
1. [使用 traefik 做反向代理](https://shanyue.tech/op/traefik.html)
1. [使用 traefik 自动生成 https 的证书]() - TODO
1. [异常监控服务 Sentry 部署](https://shanyue.tech/op/deploy-sentry.html)
1. 使用 kubernetes 编排应用
1. [使用 openvpn 访问内部集群私有服务](https://shanyue.tech/op/openvpn.html)
1. [使用 sentry 做异常监控](https://shanyue.tech/op/deploy-sentry.html)
1. 使用 kubernetes 编排容器
1. [搭建一个 k8s 集群](https://github.com/shfshanyue/learn-k8s)
1. [部署你的第一个应用](https://github.com/shfshanyue/learn-k8s/blob/master/pod.html)
1. [通过外部域名访问你的应用: Ingress](https://github.com/shfshanyue/learn-k8s/blob/master/ingress.html)
1. [自动为你的域名添加 https](https://github.com/shfshanyue/learn-k8s/blob/master/https.html)
1. [Helm 安装及简介](https://github.com/shfshanyue/learn-k8s/blob/master/helm.html)
1. [持续集成 drone.ci 简介及部署](https://shanyue.tech/op/deploy-drone.html)
1. [前端部署发展史](https://shanyue.tech/op/deploy-fe.html)
1. [案例:前端部署发展史](https://shanyue.tech/op/deploy-fe.html)
1. 监控
1. [linux 各项监控指标](https://shanyue.tech/op/linux-monitor.html)
1. [linux 监控与报警]() - TODO
1. [使用 ctop 监控容器指标]() - TODO
1. 高频 linux 命令
1. [sed 命令详解及示例](https://shanyue.tech/op/linux-sed.html)
1. [awk 命令详解及示例](https://shanyue.tech/op/linux-awk.html)
Expand Down
10 changes: 5 additions & 5 deletions deploy-fe-with-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ CMD http-server ./public -p 80

一般情况下,以下就成了运维的工作了,不过,拓展自己的知识边界总是没错的。其它阶段介绍如下

+ 使用 `nginx` 或者 `traefik` 做反向代理
+ 使用 `kubernetes` 或者 `docker compose` 做容器编排
+ 使用 `gitlab ci``drone ci` 或者 `github actions` 等做 CI/CD
+ 使用 `nginx` 或者 `traefik` 做反向代理。在我内部集群中使用了 `traefik`,详见 [traefik 简易入门](https://github.com/shfshanyue/op-note/blob/master/traefik.md)
+ 使用 `kubernetes` 或者 `docker compose` 做容器编排。在我内部集群中使用了 `compose`,详见 [docker compose 简易入门](https://github.com/shfshanyue/op-note/blob/master/traefik-compose.md)
+ 使用 `gitlab ci``drone ci` 或者 `github actions` 等做 CI/CD。在我内部集群中使用了 `github actions`,详见 [github actions 简易入门](https://github.com/shfshanyue/op-note/blob/master/github-action-guide.md)

这时镜像存在两个问题,导致每次部署时间过长,不利于产品的快速交付,没有快速交付,也就没有敏捷开发 (Agile)

Expand Down Expand Up @@ -189,8 +189,8 @@ RUN npm install --production
ADD . /code
# npm run uploadCdn 是把静态资源上传至 cdn 上的脚本文件
RUN npm run build && npm run uploadCdn
# npm run uploadOss 是把静态资源上传至 oss 上的脚本文件
RUN npm run build && npm run uploadOss
# 选择更小体积的基础镜像
FROM nginx:10-alpine
Expand Down
1 change: 1 addition & 0 deletions docker-compose-arch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# docker compose 编排容器架构简介
2 changes: 1 addition & 1 deletion docker-compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ $ docker-compose rm

关于 `compose` 的所有的配置请参考官方文档 [compose file](https://docs.docker.com/compose/compose-file/),大部分配置与 `dockerfile` 配置相类似

配置文件管理三种资源,`services`,`networks` 以及 `volumes`,我们可以结合 `docker-compose` 与 `traefik` 来管理应用。如以下配置文件将可以以域名 `whiami.docker.localhost` 来访问应用,详情可参考 [traefik 简单介绍](https://github.com/shfshanyue/op-note/blob/master/traefik.md)
配置文件管理三种资源,`services`,`networks` 以及 `volumes`,我们可以结合 `docker-compose` 与 `traefik` 来管理应用。如以下配置文件将可以以域名 `whiami.docker.localhost` 来访问应用,详情可参考 [traefik 简易入门](https://github.com/shfshanyue/op-note/blob/master/traefik.md)

``` yaml
version: '3'
Expand Down
2 changes: 2 additions & 0 deletions traefik.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ tags:
- devops
---

# Traefik 简易入门

`traefik``nginx` 一样,是一款优秀的反向代理工具,或者叫 `Edge Router`。至于使用它的原因则基于以下几点

+ 无须重启即可更新配置
Expand Down

0 comments on commit 2e89cd6

Please sign in to comment.