YC Yc.W home Systems · C++ · AI Infrastructure
Topic / 15 notes

DevOps & Infrastructure

版本控制、流水线、容器、备份恢复和可回滚的交付实践。

The primary shelf

Primary-topic DevOps & Infrastructure notes

15 articles
runbook Reported tested source Version-sensitive Use caution

批量关掉 fork 的 Actions:6 个 API 机制,外加"为什么 fork 本来就在跑 CI"

用一条 gh api 关掉单个仓库的 Actions 很容易,批量关掉全部 fork 却有 6 个坑:-f 发字符串会 422、成功返回 204 空 body 不能 jq、漏掉 --paginate 会静默截断、网络 EOF 会打断循环、204 不带状态必须回读、/users 端点漏掉全部私有库。本文还回答一个更根本的问题:为什么 fork 的公有仓库本来就在跑 workflow,以及关掉之后为什么还会收到失败邮件、到底谁在吃 Actions 额度。

以ubuntu:latest为例

Docker engine installation on Ubuntu using the official repository method, with post-install permissions and basic container management commands.

DM8 Docker 镜像

Running DM8 (达梦数据库) in Docker, including image pull, initialization, and basic SQL client configuration for development and testing.

GitLab CI/CD Jobs 删除或清空

批量删除 GitLab 项目中的 CI/CD Pipeline 记录可以通过 Web 界面或 API 实现。下面的 API 示例只处理当前返回页,并不保证覆盖全部 Pipeline。 注意:会删除Pipeline的记录和相关联的Job日志、Artifacts等信息,操作前请确保已经做好相应数据的备份。 通过Web界面清空

Ubuntu18.04

在Ubuntu18.04的操作系统上安装Docker,并实现镜像导入与容器运行。 Docker Home Docker Download

GitLab 备份恢复与迁移

备份 sudo gitlab-rake gitlab:backup:create 使用命令会在/var/opt/gitlab/backups目录下创建一个压缩包,这个压缩包就是Gitlab整个的完整部分。 需要在gitlab 运行时操作。 gitlab.rb 和 gitlab-secrets.json 两个文件包含敏感信息。未被备份到备份文件中。需要手...

GitLab 502 端口占用

卸载 一、卸载GitLab及其依赖 1、首先停止GitLab的运行命令: sudo gitlab-ctl stop 2、卸载GitLab: sudo apt-get remove gitlab-ce 3、卸载GitLab依赖: sudo apt-get autoremove -y 4、移除GitLab相关的文件: sudo rm -rf /opt/gi...

GitLab CI/CD

Attention sudo gitlab-runner register Linux executor:shell sudo gitlab-runner verify sudo gitlab-runner start

GitLab

https://about.gitlab.com/ GitLab 是一个用于仓库管理系统的开源项目,使用Git作为代码管理工具,并在此基础上搭建起来的Web服务。 安装方法是参考GitLab在GitHub上的Wiki页面。 Gitlab是被广泛使用的基于git的开源代码管理平台, 基于Ruby on Rails构建, 主要针对软件开发过程中产生的代码和...

First exploration

2020/11/30 00:19:00 之前工作中接触过Docker,最近在笔记本上想装个Vm虚拟机用,就想着来试试Docker吧。

Keep exploring

Connected topics

  • AI & LLMContainers, CI/CD, observability and rollback