nuget next發布,全新版私有化nuget管理

nuget next發布,全新版私有化nuget管理

nuget next是一款基於baget的一款私有化nuget管理平台,我們對baget進行了擴展,並且提供了更多的功能。

最后更新 2024/11/4 下午8:33
tokengo
预计阅读 5 分钟
分类
.NET
标签
.NET C# NuGet 私有化

nuget next是一款基於baget的一款私有化nuget管理平台,我們對baget進行了擴展,並且提供了更多的功能。

nuget 最新版開源私有化包管理,我們基於baget的基礎之上增加了更多的功能,並且對中國市場做更多兼容,比如國產化支持。

图片

图片

功能居間

  • 支持用戶管理
  • 支持包管理溯源
  • 支持包管理
  • 用戶支持自定義key
  • 支持sqlserver資料庫
  • 支持postgresql資料庫
  • 支持mysql資料庫
  • 支持dm(達夢)資料庫

快速部署

使用docker compose快速部署

version: '3.8'
services:
  nuget.next:
    image: registry.token-ai.cn/ai-dotnet/nuget-next
    build:
      context: .
      dockerfile: src/NuGet.Next/Dockerfile
    container_name: nuget-next
    ports:
      - "5000:8080"
    volumes:
      - ./nuget:/app/data # 请注意手动创建data目录,负责在Linux下可能出现权限问题导致无法写入
    environment:
      - Database:Type=SqLite
      - Database:ConnectionString=Data Source=/app/data/nuget.db # 数据库连接字符串
      - Mirror:Enabled=true # 是否启用镜像源
      - Mirror:PackageSource=https://api.nuget.org/v3/index.json # 镜像源,如果本地没有会自动从镜像源拉取
      - RunMigrationsAtStartup:true # 是否在启动时运行迁移,如果是第一次启动请设置为true
docker-compose up -d

國產化支持

version: '3.8'
services:
  nuget.next:
    image: registry.token-ai.cn/ai-dotnet/nuget-next
    build:
      context: .
      dockerfile: src/NuGet.Next/Dockerfile
    container_name: nuget-next
    ports:
      - "5000:8080"
    volumes:
      - ./nuget:/app/data # 请注意手动创建data目录,负责在Linux下可能出现权限问题导致无法写入
    environment:
      - Database:Type=DM # 达梦数据库
      - Database:ConnectionString=Server=localhost;User id=SYSDBA;PWD=SYSDBA;DATABASE=NUGET # 数据库连接字符串
      - Mirror:Enabled=true # 是否启用镜像源
      - Mirror:PackageSource=https://api.nuget.org/v3/index.json # 镜像源,如果本地没有会自动从镜像源拉取
      - RunMigrationsAtStartup:true # 是否在启动时运行迁移,如果是第一次启动请设置为true
docker-compose up -d

postgresql資料庫

version: '3.8'
services:
  nuget.next:
    image: registry.token-ai.cn/ai-dotnet/nuget-next
    build:
      context: .
      dockerfile: src/NuGet.Next/Dockerfile
    container_name: nuget-next
    ports:
      - "5000:8080"
    volumes:
      - ./nuget:/app/data # 请注意手动创建data目录,负责在Linux下可能出现权限问题导致无法写入
    environment:
      - Database:Type=PostgreSql
      - Database:ConnectionString=Host=postgres;Port=5432;Database=nuget-next;Username=token;Password=dd666666;
      - Mirror:Enabled=true # 是否启用镜像源
      - Mirror:PackageSource=https://api.nuget.org/v3/index.json # 镜像源,如果本地没有会自动从镜像源拉取
      - RunMigrationsAtStartup:true # 是否在启动时运行迁移,如果是第一次启动请设置为true
docker-compose up -d

mysql資料庫

version: '3.8'
services:
  nuget.next:
    image: registry.token-ai.cn/ai-dotnet/nuget-next
    build:
      context: .
      dockerfile: src/NuGet.Next/Dockerfile
    container_name: nuget-next
    ports:
      - "5000:8080"
    volumes:
      - ./nuget:/app/data # 请注意手动创建data目录,负责在Linux下可能出现权限问题导致无法写入
    environment:
      - Database:Type=MySql
      - Database:ConnectionString=Server=mysql;Port=3306;Database=nuget-next;Uid=root;Pwd=dd666666;
      - Mirror:Enabled=true # 是否启用镜像源
      - Mirror:PackageSource=https://api.nuget.org/v3/index.json # 镜像源,如果本地没有会自动从镜像源拉取
      - RunMigrationsAtStartup:true # 是否在启动时运行迁移,如果是第一次启动请设置为true
docker-compose up -d

sqlserver資料庫

version: '3.8'
services:
  nuget.next:
    image: registry.token-ai.cn/ai-dotnet/nuget-next
    build:
      context: .
      dockerfile: src/NuGet.Next/Dockerfile
    container_name: nuget-next
    ports:
      - "5000:8080"
    volumes:
      - ./nuget:/app/data # 请注意手动创建data目录,负责在Linux下可能出现权限问题导致无法写入
    environment:
      - Database:Type=SqlServer
      - Database:ConnectionString=Server=sqlserver;Database=nuget-next;User Id=sa;Password=dd666666;
      - Mirror:Enabled=true # 是否启用镜像源
      - Mirror:PackageSource=https://api.nuget.org/v3/index.json # 镜像源,如果本地没有会自动从镜像源拉取
      - RunMigrationsAtStartup:true # 是否在启动时运行迁移,如果是第一次启动请设置为true
docker-compose up -d

使用說明

  • 默認用戶名:admin
  • 默認密碼:aa123456.

聯繫我們

  • 官方網站
  • GitHub
  • Gitee
  • 郵箱
  • qq群

GitHub: https://github.com/AIDotNet/NuGet.Next

Gitee: https://gitee.com/aidotnet/NuGet.Next

示例網站:https://nuget.token-ai.cn/

图片

Keep Exploring

延伸阅读

更多文章
同分类 / 同标签 2025/5/24

你好 .net run file, 再見 csproj

這篇文章居間了.net cli的文件式程式新特性,它允許開發者直接運行c#源文件而無需創建項目文件。該特性通過在內存中生成虛擬項目文件,並支持nuget依賴包和項目屬性設置,為開發腳本和簡單應用提供了便捷。文章還展望了該特性的未來發展方向,包括目標路徑擴展、統一命令行參數、性能提升和更多文件式程式命令支持等。

继续阅读