摘要: 最近工作需要,写了一个简单的 web 程序,程序主体 main.go: package main import ( "context" "encoding/base64" "fmt" "log" "net/http" "os" "os/signal" "github.com/gin-gonic/gi 阅读全文
posted @ 2022-11-05 15:36 leffss 阅读(109) 评论(0) 推荐(0) 编辑
摘要: asdf 安装 python 与 nodejs 系统 centos 7.9 安装 asdf 官方地址:asdf-vm/asdf: Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more (git 阅读全文
posted @ 2022-09-28 15:02 leffss 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 极狐gitlab数据手动导出导入测试 本文主要测试从源极狐gitlab实例手动迁移数据到目标极狐gitlab实例的可行性。 1. 源极狐gitlab 实例 版本:极狐gitlab v14.10.0 1.1 用户信息 其中 test1 用户属于组 usergroup 1.2 组信息 1.3 组 lef 阅读全文
posted @ 2022-08-31 16:52 leffss 阅读(650) 评论(0) 推荐(0) 编辑
摘要: 使用 helm 安装 agent for Kubernetes 极狐gitlab v14.10.0 之前,安装 agent 时是生成的 k8s yaml 资源文件,极狐gitlab v14.10.0 开始生成 helm 安装命令,不过底层原理都差不多。 1. 前提 极狐gitlab v14.10.0 阅读全文
posted @ 2022-08-15 14:40 leffss 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 极狐gitlab runner 使用 cache 实例 参考官方文档: Docker Machine Executor autoscale configuration | GitLab Caching in GitLab CI/CD | GitLab Speed up job execution | 阅读全文
posted @ 2022-08-14 17:08 leffss 阅读(1336) 评论(0) 推荐(0) 编辑
摘要: 1. 环境信息 1.1 主机信息 | 主机 | 用途 | | | | | 10.10.10.60 | 极狐gitlab | | 10.10.10.61 | runner | 域名 gitlab.example.com,指向 10.10.10.60,这里使用设置本机 hosts 的方式解析,如果有条件 阅读全文
posted @ 2022-08-13 12:21 leffss 阅读(649) 评论(0) 推荐(0) 编辑
摘要: 极狐GitLab整合K8S实现GitOps与CI/CD(Agent方式) 1. 简介 参考文档: Connecting a Kubernetes cluster with GitLab | GitLab 极狐GitLab Kubernetes Agent 是用安全和云原生方式实现极狐GitLab 与 阅读全文
posted @ 2022-08-11 11:22 leffss 阅读(2676) 评论(0) 推荐(0) 编辑
摘要: 多种方式为极狐 gitlab 安装 runner 1. 环境信息 1.1 主机信息 | 主机 | 用途 | | | | | 10.10.10.60 | 极狐gitlab v14.10.0 | 域名 gitlab.example.com,指向 10.10.10.60,这里使用设置本机 hosts 的方 阅读全文
posted @ 2022-08-11 11:07 leffss 阅读(1721) 评论(0) 推荐(0) 编辑
摘要: 使用 operator 为极狐 gitlab 部署 runner 极狐gitlab v14.10.0版本新增 gitlab runner operator 方式部署 runner 项目地址:GitLab.org / OpenShift / GitLab Runner Operator 文档地址:In 阅读全文
posted @ 2022-08-11 10:56 leffss 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 极狐gitlab镜像github项目 极狐gitlab提供镜像(mirror)功能,可以自动同步外部源的仓库,比如github、bitbucket等以git为基础的仓库管理系统。 这里以github为例。 1. 公开项目 以 https://github.com/leffss/gowebssh 为例 阅读全文
posted @ 2022-07-27 20:05 leffss 阅读(1097) 评论(0) 推荐(0) 编辑