2021年12月28日
摘要: https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html The buildspec.yaml synx version: 0.2 run-as: Linux-user-name env: shell: sh 阅读全文
posted @ 2021-12-28 16:23 吃鱼高手 阅读(525) 评论(0) 推荐(0)
  2021年12月27日
摘要: https://docs.aws.amazon.com/codecommit/latest/userguide/notification-rule-create.html 或者用命令行工具生成notificaiton rule aws codestar-notifications create-no 阅读全文
posted @ 2021-12-27 17:01 吃鱼高手 阅读(36) 评论(0) 推荐(0)
摘要: The way to secure repository and branches: create group and add policy for the permission of the group 1.Create a junior group 2.Under permissions tab 阅读全文
posted @ 2021-12-27 16:00 吃鱼高手 阅读(31) 评论(0) 推荐(0)
摘要: 如下图所示: 步骤1 在本地新建一个branch,名字为my-feature, 并且切换到这个branch 步骤2 查看my-feature 这个branch的状态 步骤3 新改动的文件批量加入本地staged 步骤4 commit新add的文件到本地仓库 步骤5 push commit的文件到远程 阅读全文
posted @ 2021-12-27 14:17 吃鱼高手 阅读(84) 评论(0) 推荐(0)
摘要: 1.Git clone 2.Git add(can be single file or git add . --all the files) 3.Git commit -m “message” 4.Git push 阅读全文
posted @ 2021-12-27 11:16 吃鱼高手 阅读(33) 评论(0) 推荐(0)
摘要: Codecommit is a way to create code repository and commit code like github The steps to create a CodeCommit 1. Create respository in Code commit servic 阅读全文
posted @ 2021-12-27 10:48 吃鱼高手 阅读(37) 评论(0) 推荐(0)
  2021年12月22日
摘要: 参考这篇博文: https://www.cnblogs.com/51kata/p/5265107.html 以下内容来自上面的博文: ONBUILD指令可以为镜像添加触发器。其参数是任意一个Dockerfile 指令。 当我们在一个Dockerfile文件中加上ONBUILD指令,该指令对利用该Do 阅读全文
posted @ 2021-12-22 10:32 吃鱼高手 阅读(103) 评论(0) 推荐(0)
  2021年12月21日
摘要: 步骤: 1.创建Dockerfile FROM node:10-alpine #基镜像 RUN mkdir -p /src/app #构建镜像的过程中run mkdir -p /src/app命令来创建/src/app文件夹 WORKDIR /src/app #将/src/app镜像设置为工作目录 阅读全文
posted @ 2021-12-21 17:35 吃鱼高手 阅读(1730) 评论(0) 推荐(0)
  2021年12月14日
摘要: 容器内的文件夹与外面的文件映射的方式有emptydir, hostpath, emptydir与pod的生命周期一样,pod重启后emptydir会消失 hostpath可以永久保存, 但一旦pod被调度到其他节点,hostpath也不可再用 持久性存储:NFS, PV, PVC 现在先来生成NFS 阅读全文
posted @ 2021-12-14 17:02 吃鱼高手 阅读(105) 评论(0) 推荐(0)
  2021年12月12日
摘要: ingress.yaml apiVersion: v1 kind: Namespace metadata: name: nginx-ingress apiVersion: v1 kind: Secret metadata: name: default-server-secret namespace: 阅读全文
posted @ 2021-12-12 19:04 吃鱼高手 阅读(322) 评论(0) 推荐(0)