Dockerfile
-
使用dockerfile部署springboot应用
本章简单展示如何最短时间 把springboot应用打包成镜像并创建成容器。 准备工作: 1.安装docker ,保证执行docker version没有问题…
-
dockerfile多阶段构建的优缺点
一直以来,公司的CI/CD环境都是在Jenkins的工作节点中编译,再将编译打包好的目标程序直接使用dockerfile构建镜像。 以.NET程序来做例子,其dockerfile是…
-
Error processing tar file(exit status 1): unexpected EOF 的排查分析
1、在 Jenkins 中构建镜像,报错:Error processing tar file(exit status 1): unexpected EOF。如图1 图1 Step …
-
在 jenkins 中构建镜像时,报错:fatal Could not read from remote repository 的解决
1、在 jenkins 中构建镜像时,报错:fatal: Could not read from remote repository.。虽然 Packagist 镜像地址已经切换为…
-
在容器中删除文件夹:/sobey,基于 Dockerfile 的实现
1、Dockerfile 的内容如下 FROM registry-vpc.cn-beijing.aliyuncs.com/cmc/centos-nginx:2.2.20 MAINT…
-
基于 Jenkins 构建时,报错:’composer install’ returned a non-zero code: 255 的解决
1、Dockerfile 的代码如下: FROM registry-vpc.cn-beijing.aliyuncs.com/cmc/centos-nginx112-php71:0.…
-
执行命令:docker exec -t wshop-fpm composer install -vvv,报错:[RuntimeException] git was not found in your PATH, skipping source download
1、执行命令:docker exec -t wshop-fpm composer install -vvv,报错:[RuntimeException] git was not fo…
-
CakePHP 2.x 版本的部署,Warning: SplFileInfo::openFile(/app/tmp/cache/persistent/myapp_cake_core_file_map): failed to open stream: Permission denied in /lib/Cake/Cache/Engine/FileEngine.php on line 356
1、CakePHP 2.x 版本的部署,Warning: SplFileInfo::openFile(/mcloud/creditshop_back/creditshopback/…
-
执行命令:docker-compose -f docker-compose.yml up –build –force-recreate 时,报错:ERROR [startup_wshop-fpm internal] load metadata for docker.io/library/php:7.4-fpm-alpine
1、执行命令:docker-compose -f docker-compose.yml up –build –force-recreate 时,报错:ERR…
-
容器的基础镜像更换后,PHP Core Warning ‘yii/base/ErrorException’ with message ‘Module ‘gd’ already loaded’
1、容器的基础镜像更换后,当 Rancher 环境变量,CHANNEL_PUB_API_CFG_MIGRATE=true 时,容器启动失败。报错:PHP Core Warning …