腾讯镜像查询调整
This commit is contained in:
@@ -332,6 +332,7 @@ namespace dy.net.Controllers
|
|||||||
return ApiResult.Success(Appsettings.Get("tagName"));
|
return ApiResult.Success(Appsettings.Get("tagName"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[AllowAnonymous]
|
||||||
[HttpGet("checktag")]
|
[HttpGet("checktag")]
|
||||||
public async Task<IActionResult> CheckTag()
|
public async Task<IActionResult> CheckTag()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using dy.net.extension;
|
using dy.net.extension;
|
||||||
using dy.net.service;
|
using dy.net.service;
|
||||||
using dy.net.utils;
|
using dy.net.utils;
|
||||||
|
using dy.sync.lib;
|
||||||
using Serilog;
|
using Serilog;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
@@ -258,6 +259,9 @@ namespace dy.net
|
|||||||
// 启动定时任务
|
// 启动定时任务
|
||||||
var quartzJobService = services.GetRequiredService<DouyinQuartzJobService>();
|
var quartzJobService = services.GetRequiredService<DouyinQuartzJobService>();
|
||||||
quartzJobService.InitOrReStartAllJobs(config?.Cron <= 0 ? "30" : config.Cron.ToString());
|
quartzJobService.InitOrReStartAllJobs(config?.Cron <= 0 ? "30" : config.Cron.ToString());
|
||||||
|
|
||||||
|
|
||||||
|
DouyinHttpHelper.GetTenImage(Appsettings.Get("tagName"));//查询镜像版本
|
||||||
}
|
}
|
||||||
// 初始化Cookie
|
// 初始化Cookie
|
||||||
var deploy= Appsettings.Get("deploy");
|
var deploy= Appsettings.Get("deploy");
|
||||||
|
|||||||
@@ -96,11 +96,10 @@ Cookie 及 `sec_user_id` 是同步功能的核心,需严格按步骤获取,
|
|||||||
|
|
||||||
| 镜像标签 | 架构 |
|
| 镜像标签 | 架构 |
|
||||||
| ----------------- | -------------- |
|
| ----------------- | -------------- |
|
||||||
| `beta_1.9.3` | x86_64 (amd64) |
|
| `beta_1.9.4` | x86_64 (amd64) |
|
||||||
| `arm_1.9.3` | ARM64 |
|
| `arm_1.9.4` | ARM64 |
|
||||||
|
|
||||||
|
|
||||||
### 最新镜像查看
|
|
||||||
[镜像列表](http://nas.synology2023.online:10108/api/docker/dysync/1)
|
|
||||||
### 构建命令示例
|
### 构建命令示例
|
||||||
|
|
||||||
将下方命令中的「本地路径」替换为你的实际路径,终端执行即可:
|
将下方命令中的「本地路径」替换为你的实际路径,终端执行即可:
|
||||||
@@ -115,7 +114,7 @@ docker run -d --restart=always \
|
|||||||
-v /opt/dysync/uper:/app/uper \
|
-v /opt/dysync/uper:/app/uper \
|
||||||
-p 10101:10101 \
|
-p 10101:10101 \
|
||||||
--name dysync2025 \
|
--name dysync2025 \
|
||||||
ccr.ccs.tencentyun.com/jianzhichu/dysync:beta_1.9.3
|
ccr.ccs.tencentyun.com/jianzhichu/dysync:beta_1.9.4
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@@ -128,7 +127,7 @@ version: '3.8'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
dysync:
|
dysync:
|
||||||
image: ccr.ccs.tencentyun.com/jianzhichu/dysync:beta_1.9.3
|
image: ccr.ccs.tencentyun.com/jianzhichu/dysync:beta_1.9.4
|
||||||
container_name: dysync2025 # 容器名称
|
container_name: dysync2025 # 容器名称
|
||||||
restart: unless-stopped # 始终重启容器,除非容器被手动停止或Docker服务停止
|
restart: unless-stopped # 始终重启容器,除非容器被手动停止或Docker服务停止
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
+6
-6
@@ -77,12 +77,6 @@
|
|||||||
<None Include="dy.net.sln" />
|
<None Include="dy.net.sln" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="dy.sync.lib">
|
|
||||||
<HintPath>lib\dy.sync.lib.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Update="Dockerfile">
|
<None Update="Dockerfile">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
@@ -102,6 +96,12 @@
|
|||||||
<Folder Include="db\" />
|
<Folder Include="db\" />
|
||||||
<Folder Include="wwwroot\" />
|
<Folder Include="wwwroot\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="dy.sync.lib">
|
||||||
|
<HintPath>lib\dy.sync.lib.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
</ItemGroup>
|
||||||
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
|
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
|
||||||
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
|
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
|
||||||
<!--<Exec WorkingDirectory="$(SpaRoot)" Command="yarn install" />
|
<!--<Exec WorkingDirectory="$(SpaRoot)" Command="yarn install" />
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user