root@golan-hey-5f55dcc898-fl7bx:/go# go env -w GO111MODULE=on root@golan-hey-5f55dcc898-fl7bx:/go# go env -w GOPROXY=https://goproxy.cn,direct root@golan-hey-5f55dcc898-fl7bx:/go# go get -u githu...
Linux
docker build –build-arg 环境变量不生效的坑
A镜像使用了ARG,B镜像FROM A镜像的前提条件下: A: cat Dockerfile FROM busybox FROM busybox:v12 ARG APP_ENV ENV APP_ENVr=${APP_ENV} docker build -t busybox:v1 --build-arg APP_agr=sit1 ...
Elasticsearch忘记密码重置
误删.sercurty索引 或者忘记密码 创建一个基于本地认证的超级管理员 以下示例将一个新用户添加my_user 。该用户的密码为my_user ,并且该用户与superuserg角色 bin/elasticsearch-users useradd my_...
使用 reindex 来修改 elasticsearch 索引mapping
elasticsearch 在创建好index之后mapping是不能动态修改,如果需要改动只能通过新增字段或者reindex api 来迁移数据,创建新的索引 。 没有通过动态模板来为这个字段指定类型, elasticsearch 默认将这种结构的数...
jenkins pipeline通过Image Tag Parameter插件获取Harbor镜像作为参数
插件 Image Tag Parameter 通过docker镜像实现pipeline回滚 node{ ..... if ("${env.DEPLOY_FLAG}" == 'Deploy'){ ........ } if ("${DEPLOY_FLAG}" == 'Rollback'){ withKubeCo...
GitLab 配置 Let’s Encrypt 颁发的 SSL免费证书
参考: https://certbot.eff.org/docs/ h 安装 Let's Encrypt 客户端 root@iZbp1gzimbaykc3ahbss48Z:~# git clone https://github.com/certbot/certbot 申请ssl证书 root@iZbp1gzimbaykc3ahbss48Z:~...
kubernetes 自定义ingres-nginx日志添加cookie Header字段
配置ingress uuid字段 需要把cookie字段添加到日志中方便业务分析,方法和nginx配置差不多 修改ingres configmap文件 json日志格式添加自定义的cookie字段"user_id": "$affefdgx_id"} apiVersion: v1 ...
代码分支管理指南
规范明确,清晰,一致性 Git 分支管理,帮助多人协作时更加和谐。 每个人对工具的使用往往各有偏好,各种方法各有利弊,无所谓对错。但涉及团队协作的方面需要有一些一致的规范,遵守一致的规范也能提...