当前位置: 首页 > news >正文

gitlab-development-kit部署gitlab《二》

gitlab-development-kit部署gitlab《一》

环境

mac 12.7.4
xcode 14.2
gdk 0.2.16
gitlab-foss 13.7

QA

  • xcode源码安装
# https://crifan.github.io/xcode_dev_summary/website/xcode_dev/install_xcode/
# https://xcodereleases.com
  • openssl1.1 源码安装
# https://openssl-library.org/source/old/1.1.0/index.html
# https://github.com/openssl/openssl/releases?q=1.1.0&expanded=true./config --prefix=/usr/local/opt/openssl@1.1
make
  • go 版本不能源码下载
# https://go.dev/dl/ 
cp ~/Downloads/go1.18.9.darwin-amd64.tar.gz ~/.asdf/downloads/golang/1.18.9/archive.tar.gz
  • https://rubygems.org/ SSL_connect returned=1 errno=0 state=error: certificate verify failed SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
# https://github.com/rubygems/rubygems/issues/1758
export SSL_CERT_FILE=/usr/local/etc/openssl@3/cert.pem 
  • implicit declaration of function ‘thin_http_parser_has_error’ is invalid in C99
# https://stackoverflow.com/questions/63851404/an-error-occurred-while-installing-thin-1-7-2
gem install thin -v '1.7.2' --source 'https://rubygems.org/' -- --with-cflags="-Wno-error=implicit-function-declaration"
  • checking for re2 requires C++11 compiler… extconf.rb failed
# https://gitlab.com/gitlab-org/gitlab-development-kit/-/issues/1877
brew install re2
gem install re2 -v '1.2.0' --source 'https://rubygems.org/'   -- --with-re2-dir="$(brew --prefix re2)" -- --with-cppflags="-x c++ -std=c++20"
  • thrift
gem install thrift -v 0.21.0  --source 'https://rubygems.org/' -- --with-cppflags="-Wno-compound-token-split-by-macro"
  • pg
brew install libpq
  • macos “glob” is not exported by the File::Glob module
# https://github.com/guanzhi/GmSSL/issues/811
# This issue is due to the Perl package File::Glob, some simple changes will fix these errors. In files Configure and test/build.info, changeuse if $^O ne "VMS", 'File::Glob' => qw/glob/;
# into
use if $^O ne "VMS", 'File::Glob' => qw/:glob/;

Brewfile 注释的可以手动安装

brew "cmake"
brew "coreutils"
brew "docutils"
brew "dpkg"
brew "exiftool"
brew "git"
#brew "git-lfs"
#brew "gitleaks"
brew "gnupg"
brew "gpgme"
brew "graphicsmagick"
brew "icu4c"
brew "libiconv"
brew "libssh2"
#brew "openssl@1.1", link: :force
brew "pkg-config"
brew "re2"
brew "runit"
brew "sqlite"
#brew "vale"
#brew "vault"
brew "yamllint"
#cask "chromedriver"

brew install chromedriver --cask

  • go:linkname must refer to declared function or variable
# https://stackoverflow.com/questions/71507321/go-1-18-build-error-on-mac-unix-syscall-darwin-1-13-go253-golinkname-mus
cd gitlab/workhorse
get -u golang.org/x/sys
  • gitaly gem install charlock_holmes warning: implicit conversion loses integer precision: 'long' to 'int32_t'
# https://ruby-china.org/topics/40931
  • gitlabhq_development_ci exists, nothing to do here.
    req: Unknown digest addext
    req: Use -help for summary.
    make: *** [localhost.key] Error 1
# openssl req -newkey rsa:4096 -new -nodes -x509 -days 3650 -out testdata/gitalycert.pem -keyout testdata/gitalykey.pem -subj "/C=US/ST=California/L=San Francisco/O=GitLab/OU=GitLab-Shell/CN=localhost" -addext "subjectAltName = IP:127.0.0.1, DNS:localhost"brew install openssl@3.0
# vim ~/.zshrc
export PATH="/usr/local/opt/openssl@3.0/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/openssl@3.0/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@3.0/include"
  • git diff Makefile
diff --git a/Makefile b/Makefile
index eec70e5f..f41031fd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+VERBOSE = 1.NOTPARALLEL:START_TIME := $(shell date "+%s")
@@ -38,7 +39,8 @@ export GDK_QUIET = $(gdk_quiet)include support/makefiles/*.mkifeq ($(platform),darwin)
-OPENSSL_PREFIX := $(shell brew --prefix openssl@1.1)
+#OPENSSL_PREFIX := $(shell brew --prefix openssl@1.1)
+OPENSSL_PREFIX := $(shell brew --prefix openssl@3.0)OPENSSL := ${OPENSSL_PREFIX}/bin/opensslelseOPENSSL := $(shell command -v openssl 2> /dev/null)
@@ -80,7 +82,7 @@ openldap-setup \prom-setup \object-storage-setup \gitlab-elasticsearch-indexer-setup \
-gitlab-metrics-exporter-setup \
+#gitlab-metrics-exporter-setup \grafana-setup \gitlab-ui-setup \gitlab-docs-setup \
@@ -113,7 +115,7 @@ gitlab-k8s-agent-update \gitaly-update \gitlab-update \gitlab-elasticsearch-indexer-update \
-gitlab-metrics-exporter-update \
+#gitlab-metrics-exporter-update \object-storage-update \jaeger-update \grafana-update \
  • git diff Brewfile
--- a/Brewfile
+++ b/Brewfile
@@ -4,20 +4,20 @@ brew "docutils"brew "dpkg"brew "exiftool"brew "git"
-brew "git-lfs"
-brew "gitleaks"
+#brew "git-lfs"
+#brew "gitleaks"brew "gnupg"brew "gpgme"brew "graphicsmagick"brew "icu4c"brew "libiconv"brew "libssh2"
-brew "openssl@1.1", link: :force
+#brew "openssl@1.1", link: :forcebrew "pkg-config"brew "re2"brew "runit"brew "sqlite"
-brew "vale"
-brew "vault"
+#brew "vale"
+#brew "vault"brew "yamllint"
-cask "chromedriver"
+#cask "chromedriver"
http://www.lryc.cn/news/484710.html

相关文章:

  • Java面试之多线程并发篇(3)
  • 任何使用 Keras 进行迁移学习
  • Mac 使用mac 原生工具将mp4视频文件提取其中的 mp3 音频文件
  • 【SQL】一文速通SQL
  • 【学习】【HTML】块级元素,行内元素,行内块级元素
  • 握手协议是如何在SSL VPN中发挥作用的?
  • 机器学习 - 为 Jupyter Notebook 安装新的 Kernel
  • CTF攻防世界小白刷题自学笔记13
  • Rust 模板匹配——根据指定图片查找处于大图中的位置(支持GPU加速)
  • JVM详解:类的加载过程
  • Python →爬虫实践
  • Visitor 访问者模式
  • Mac解压包安装MongoDB8并设置launchd自启动
  • Springboot采用jasypt加密配置
  • 加载shellcode
  • K8S如何基于Istio实现全链路HTTPS
  • React Query在现代前端开发中的应用
  • 【HAProxy09】企业级反向代理HAProxy高级功能之压缩功能与后端服务器健康性监测
  • PostgreSQL中表的数据量很大且索引过大时怎么办
  • 【QML】QML多线程应用(WorkerScript)
  • 认证鉴权框架SpringSecurity-1--概念和原理篇
  • 计算器上的MC、MR、M+、M—、CE是什么意思?
  • 无人机飞手执照处处需要,森林、石油管道、电力巡检等各行业都需要
  • 计算机网络——路由选择算法
  • 【前端】技术演进发展简史
  • 深入解析贪心算法及其应用实例
  • 电子工牌独立双通道定向拾音方案(有视频演示)
  • 举例理解LSM-Tree,LSM-Tree和B+Tree的比较
  • React Native 全栈开发实战班 - 核心组件与导航
  • Leecode热题100-35.搜索插入位置