attunehq/attune

The open source artifact registry.

attunehq.com

License

Apache-2.0 license

50 stars 0 forks Branches Tags Activity

Attune

GitHub license

Attune 是一个安全发布和托管 Linux 包的工具。

我们目前支持发布 APT (Debian 和 Ubuntu) 仓库,更多功能即将推出

快速开始

以下是如何在大约 5 分钟内设置 APT 仓库。

需求

设置

############## 首先,我们需要设置 Attune 后端。
# 1. 克隆仓库。
git clone git@github.com:attunehq/attune.git && cd attune
# 2. 通过从 .env.example 复制来设置环境变量。您应该
#  根据您的部署需要修改这些值,尤其是 ATTUNE_SECRET。
cp .env.example .env
# 3. 启动控制平面和支持服务。
docker compose up -d
############## 现在,我们将安装 CLI 并设置一个仓库。
# 4. 通过从 GitHub Releases 下载来安装 Attune CLI。
# 5. 创建一个仓库。
attune repo create -u 'http://localhost:9000/debian' -d bookworm
# 6. 准备一个 `.deb` 包来托管。一种方法是下载
#  一个示例包,例如 `https://cdn.teleport.dev/teleport_17.4.4_arm64.deb`。
# 7. 将包添加到仓库
attune repo pkg -r 1 add -c stable/v17 ~/Downloads/teleport_17.4.4_arm64.deb
############## 最后,我们将使用 GPG 密钥来签名和部署仓库。
# 8. 如果需要,生成一个 GPG 密钥。
gpg --generate-key
# 9. 获取您想用于签名的密钥的密钥 ID。
gpg --list-secret-keys
# 10. 导出您的签名密钥 (将 $KEYID 替换为您的密钥 ID,它是 40
#   字符的字符串,位于每个密钥中的 `sec` 条目旁边)。
gpg --armor --export-secret-keys --output demo-key.asc $KEYID
# 11. 签名并部署仓库。
attune repo -r 1 sync -k demo-key.asc
############## 恭喜,您完成了!

有关更详细的设置说明和配置选项,请参阅用户指南

许可协议

Attune 是 Apache 2 许可

关于

The open source artifact registry. attunehq.com