研发管理
-
两个项目,前后端合并至一个镜像、一个容器,以端口进行区分的实现流程
1、两个项目,前后端,两个镜像,两个容器。如图1 图1 2、前端构建目录结构。如图2 图2 3、接口构建目录结构。如图3 图3 4、前端构建的相关配置。如图4 图4 5、接口构建的相关配置。如图5 图5 6、调整前端的构建目…
-
在 Rancher 中通过 http://服务代号.命名空间:端口 内网调用各个容器的实现
1、新的部署规划,期望服务端的容器之间相互调用不再基于域名,而是基于服务名。如图1 图1 2、现有的规划。一个服务的容器中包含 3 个应用,其端口皆配置为 80 ,基于域名区分。调用:https://ccpapi.dev.chinamclo…
-
在 jenkins 中构建镜像时,报错:repository not found: does not exist or no pull access 的分析解决
1、在 jenkins 中构建镜像时,报错:repository registry-vpc.cn-beijing.aliyuncs.com/cmc/centos-nginx112-php72 not found: does not exist or no pull access。如图1 图1 RUN chown -R nginx:nginx /mcloud/www…
-
NAS 存储挂载失败的分析解决
1、在 Rancher 的卷中,添加:/webtv:/data。如图1 图1 2、查看容器的日志,报错:LOG_NAME: unbound variable。如图2 图2 2020/8/3 下午4:40:16/config/init/cronlog.sh: line 5: LOG_NAME: unbound variable 2020…
-
在 jenkins 中构建镜像时,报错:fatal Could not read from remote repository 的解决
1、在 jenkins 中构建镜像时,报错:fatal: Could not read from remote repository.。虽然 Packagist 镜像地址已经切换为阿里云:https://mirrors.aliyun.com/composer/ 。查看 Dockerfile。如图1 图1 RUN chown -…
-
在容器中删除文件夹:/sobey,基于 Dockerfile 的实现
1、Dockerfile 的内容如下 FROM registry-vpc.cn-beijing.aliyuncs.com/cmc/centos-nginx:2.2.20 MAINTAINER shuijingwanwq@163.com COPY code /mcloud/www/pcs COPY code/build_docker/c_files/ / RUN chown -R ng…
-
基于 TortoiseGit ,单向合并 feature-netease 分支上的单次提交(ee8290)至 develop 分支上的流程
1、在本地环境中的 develop 分支上,执行控制台命令报错:如图1 图1 2、由于此 Bug 已经在 feature-netease 分支上的单次提交(ee8290)中被修复,如图2 3、因此,决定基于 TortoiseGit ,单向合并 feature-netease …
-
在 Nginx 1.10 版本中,重新加载时报错:nginx: [warn] could not build optimal server_names_hash 的分析解决
1、在 Nginx 1.10 版本中,重新加载时报错:nginx: [warn] could not build optimal server_names_hash,如图1 图1 PS C:/nginx-1.10.1> ./nginx -s reload nginx: [warn] could not build optimal server_names…
-
基于 TortoiseGit 重置版本至最新的一次有效提交
1、在某位开发人员的提交中,存在了已经冲突的文件,且未手动解决冲突,就强制提交了代码,如图1 图1 2、决定将可能存在冲突文件的几次提交给删除,重置版本至最新的一次有效提交,如图2 图2 3、选择硬重置,所有之…
-
执行 ./nginx -s reload 时,提示:nginx: [emerg] host not found in upstream “api.aims-api.localhost” in C:/nginx-1.10.1/conf/vhosts/aims.conf:14 的分析解决
1、执行 ./nginx -s reload 时,提示:nginx: [emerg] host not found in upstream “api.aims-api.localhost” in C:/nginx-1.10.1/conf/vhosts/aims.conf:14,如图1 图1 2、查看 C:/nginx-1.10.1/conf/…