惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MyScale Blog
MyScale Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
人人都是产品经理
人人都是产品经理
V
Visual Studio Blog
博客园 - 叶小钗
A
About on SuperTechFans
Last Week in AI
Last Week in AI
量子位
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
MongoDB | Blog
MongoDB | Blog
T
The Blog of Author Tim Ferriss
Vercel News
Vercel News
博客园 - 司徒正美
博客园 - Franky
博客园 - 【当耐特】
月光博客
月光博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
J
Java Code Geeks

GitLab

基于 Claude Code 的 GitLab CI 代码评审 求助,怎么恢复 Gitlab 账户 登梯子访问 Gitlab 怎么也会被删除账户吗? 一觉醒来, GitLab 账户被删除了 gitlab 停止中国区服务是真的吗?我没有收到通知 gitlab.com 上的账户被禁用了,有没有办法申述? 问题求助: Gitlab 如何触发分支自动合并 GitLab 可以装在 windows 上吗? 如何实现百分比的阶梯递进式发布? 求助, gitlab pipeline 同时推了三个,服务器干爆了 极狐要收费了 本地部署的 gitlab,系统源代码文件出现异常字符 gitlab ce 为什么需要如此高的配置 小伙伴把我们的 homelab 服务器误格式化了,自建 gitlab 服务仅 git-data 仓库逃过一劫,不知道是否有办法恢复? GitLab 一键自动化完整数据的备份 用 Gitlab-ci 配置 testcontainers 进行自动单元测试,流水线脚本到底怎么写啊…… Gitlab 社区版定制化开发,有做过的 V 友吗,一般是通过什么方式进行二次开发? 添加 ssh key 时被提示“Fingerprint has already been taken” GitLab Docker 升级问题 求助: gitlab 的工程怎么按分支给开发人员分配权限呢 Gitlab 专业版与旗舰版的区别 请教如何保护.gitlab-ci.yaml 不会被其他人修改和 cicd 流程安全 国内极狐 Gitlab 代理 自建 GitLab,用 Docker CE 还是 EE 版本? 为什么 gitlab.new 重定向到 gitee V2EX 思细级恐啊,我们自己搭的 gitlab 的都被黑了! gitlab/gitee 等平台有办法设置自动拉取 github 仓库内容并同步吗? 请教一下, Gitlab 删除项目问题 在群晖上搭建 GitLab 的可行性和潜在风险
在 gitlab-runner 中进行 electron 应用打包时发生 RequestEr...
gadfly3173 · 2022-02-25 · via GitLab

docker 部署的 gitlab/gitlab-ce:14.8.1-ce.0 、gitlab/gitlab-runner:ubuntu-v14.8.0 ,docker-compose.yml 如下

 version: '2'
 services:
     gitlab:
       image: 'gitlab/gitlab-ce:14.8.1-ce.0'
       container_name: "gitlab"
       restart: unless-stopped
       hostname: 'docker-gitlab-01'
       environment:
         TZ: 'Asia/Shanghai'
         # 这里的配置其实就是 /etc/gitlab/gitlab.rb 中的配置,按自己的实际需求增减
         GITLAB_OMNIBUS_CONFIG: |
           external_url 'xxx'
           gitlab_rails['time_zone'] = 'Asia/Shanghai'
           prometheus['enable'] = false
           gitlab_rails['gitlab_shell_ssh_port'] = xxx
           nginx['listen_port'] = 80
           nginx['listen_https'] = false
       ports:
         - 'xxx:80'
         - 'xxx:22'
       volumes:
         - /opt/gitlab/config:/etc/gitlab
         - /opt/gitlab/data:/var/opt/gitlab
         - /opt/gitlab/logs:/var/log/gitlab
       networks:
         - gitlab
 
     gitlab-runner:
       image: gitlab/gitlab-runner:ubuntu-v14.8.0
       container_name: "gitlab-runner"
       restart: unless-stopped
       depends_on:
         - gitlab
       volumes:
         - ./opt/gitlab-runner:/etc/gitlab-runner
         - /var/run/docker.sock:/var/run/docker.sock
         - ./gitlab-runner:/home/gitlab-runner
       networks:
         - gitlab
 
 networks:
     gitlab:

目录挂载网上抄的,有点乱。gitlab-runner 为 docker 模式,gitlab-ci.yml 如下:

stages:
  - build

build:
  # image: electronuserland/builder:14-wine-01.22
  image: node:16.14.0-alpine3.14
  stage: build
  script:
    - node -v
    - npm -v
    - yarn
    - yarn electron:build
  artifacts:
    expire_in: 30 days
    paths:
      - ./dist_electron/
  only:
    - release
  tags:
    - default

现在在执行 yarn ,进入 [4/4] Building fresh packages... 后,就会弹出如下失败日志:

[4/4] Building fresh packages...
error /builds/xxxxxx/node_modules/electron: Command failed.
Exit code: 1
Command: node install.js
Arguments: 
Directory: /builds/xxxxxxxxxx/node_modules/electron
Output:
RequestError: socket hang up
    at ClientRequest.<anonymous> (/builds/xxxxxxx/node_modules/got/source/request-as-event-emitter.js:178:14)
    at Object.onceWrapper (node:events:640:26)
    at ClientRequest.emit (node:events:532:35)
    at ClientRequest.origin.emit (/builds/xxxxxxxxx/node_modules/@szmarczak/http-timer/source/index.js:37:11)
    at TLSSocket.socketOnEnd (node:_http_client:466:9)
    at TLSSocket.emit (node:events:532:35)
    at endReadableNT (node:internal/streams/readable:1346:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
ERROR: Job failed: exit code 1

项目使用@vue/[email protected][email protected][email protected]构建 尝试在 gitlab-runner 的 docker 中和服务器上直接执行都没有失败,求大佬们看看可以怎么排查问题。