![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CI/CD
文章平均质量分 50
LeoSong121
知识来源于分享
展开
-
[Dokcer] 给已有镜像打补丁(更新已有镜像)
开发中,有时候不想通过Dockerfile重新构建镜像(如:构建所需文件暂时找不到;又或者制造开发基础镜像减少打包时间),想直接通过修改原有镜像来完成更新;这时候给镜像打补丁就很重要了。例如:我想更新init.sql脚本到基础镜像my-app:latest这里我通过docker cp命令来操作:这样,当下次运行myapp:latest镜像的时候,你会发现里边init.sql已经更改;docker run --name myapp -d my-app:latestdocker exec -it myapp /原创 2022-06-02 15:53:33 · 1310 阅读 · 0 评论 -
【笔记】Jenkins- 解决 “Error 403 No valid crumb was included in the request“
目录问题解决办法(亲测)问题HTTP ERROR 403 No valid crumb was included in the request解决办法(亲测)Dashboard->Configure Global Security->CSRF Protection ->Enable proxy compatibility配置完成后,刷新一下页面就搞定。...原创 2021-04-29 14:53:04 · 5483 阅读 · 1 评论 -
Jenkins 执行Docker build错误:Got permission denied while trying to connect to the Docker daemon...
背景最近使用Jenkins + Docker做自动化部署,由于安全原因没有使用mvn + docker plugin生成并推送镜像(这种方式会暴露2375端口漏洞,但可以自己使用证书解决),我采用的是在Jenkins执行shell脚本:docker build -t freeshop/freeshop-sms .发现报错:+ docker build -t xxx/xxx-user .Got permission denied while trying to connect to th原创 2020-12-02 15:17:09 · 4043 阅读 · 4 评论 -
Linux- 安装Jenkins 超细讲解
1. 安装SUN JDK参见我的博客:Linux CentOS- 安装Java2.添加Jenkins库到yum库,添加完成后将从这里下载安装。rpm安装参考Jenkins官方说明:https://pkg.jenkins.io/redhat-stable/sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.reposudo rpm --import https.原创 2020-11-23 16:45:34 · 253 阅读 · 0 评论 -
Jenkins- 构建失败:FATAL: Java heap space
Jenkins- 构建的出现:java.lang.OutOfMemoryError: Java heap space解决办法:找到Jenkins安装目录的jenkins.xml文件,在<arguments>增加Jenkins启动参数配置:<arguments>-Xrs -Xmx1024m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --http原创 2020-11-06 14:44:02 · 1663 阅读 · 0 评论 -
Jenkins + Gihub Webhooks实现自动化部署
自动化部署原理:本地代码push到Github webhook检测到Github的push事件 触发Jenkins进行一次build 自动化部署完成配置步骤:1.Github生成Personal Access Token1.1登录到Github –>Settings –> Developer settings –> Personal access tokens –> Generate new token1.2.勾选如下图所示权限,最后点击 generate原创 2020-09-28 11:29:40 · 758 阅读 · 1 评论