Skip to content

Commit 24d6491

Browse files
Himarket sls (#98)
* fix: Sls-log maven Change-Id: Id40bf1dc18b529410ea9455a6f357896885b72b6 * fix(deps): 更新阿里云日志依赖版本及修正拼写错误 - 将 aliyun-log 依赖版本由 0.7.82 降级到 0.6.142 - 修正 SlsClientFactory 中 DefaultCredentials 导入和实例化拼写错误 - 修正 Docker 镜像标签从具体版本号切换为 latest 标签 - 更新 MySQL 镜像路径为 latest 标签版本 --------- Co-authored-by: 岛风 <jingfeng.xjf@alibaba-inc.com>
1 parent ac7582a commit 24d6491

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.qoder/repowiki/zh/content/部署与运维指南/部署与运维指南.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Server --> MySQL
6969
- **依赖**: `mysql`(启动前需数据库就绪)
7070

7171
#### himarket-admin 与 himarket-frontend
72-
- **镜像**: 分别为 `himarket-admin:1.0.0``himarket-frontend:1.0.0`
72+
- **镜像**: 分别为 `himarket-admin:latest``himarket-frontend:latest`
7373
- **环境变量**:
7474
- `HIMARKET_SERVER`: 指向后端服务地址(`http://himarket-server:8080`
7575
- **端口映射**:
@@ -143,7 +143,7 @@ hub: opensource-registry.cn-hangzhou.cr.aliyuncs.com/higress-group
143143
frontend:
144144
image:
145145
repository: himarket-frontend
146-
tag: "1.0.0"
146+
tag: "latest"
147147
pullPolicy: Always
148148
```
149149
- 所有镜像基于 `hub` 前缀构建完整路径。

deploy/docker/scripts/data/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ HIMARKET_FRONTEND_IMAGE=opensource-registry.cn-hangzhou.cr.aliyuncs.com/higress-
1414
REDIS_IMAGE=higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/redis-stack-server:7.4.0-v3
1515

1616
# MySQL Configuration
17-
MYSQL_IMAGE=opensource-registry.cn-hangzhou.cr.aliyuncs.com/higress-group/mysql:1.0.0
17+
MYSQL_IMAGE=opensource-registry.cn-hangzhou.cr.aliyuncs.com/higress-group/mysql:latest
1818
MYSQL_ROOT_PASSWORD=123456
1919
MYSQL_DATABASE=portal_db
2020
MYSQL_USER=portal_user

portal-server/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
<dependency>
201201
<groupId>com.aliyun.openservices</groupId>
202202
<artifactId>aliyun-log</artifactId>
203-
<version>0.7.82</version>
203+
<version>0.6.142</version>
204204
</dependency>
205205

206206
<dependency>

portal-server/src/main/java/com/alibaba/apiopenplatform/service/gateway/factory/SlsClientFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import com.aliyun.openservices.log.Client;
1111
import com.aliyun.openservices.log.common.auth.Credentials;
12-
import com.aliyun.openservices.log.common.auth.DefaultCredentails;
12+
import com.aliyun.openservices.log.common.auth.DefaultCredentials;
1313
import com.github.benmanes.caffeine.cache.Cache;
1414
import com.github.benmanes.caffeine.cache.Caffeine;
1515
import lombok.RequiredArgsConstructor;
@@ -80,7 +80,7 @@ private Client createClientWithAkSk() {
8080
String endpoint = getEffectiveEndpoint();
8181

8282
try {
83-
Credentials credentials = new DefaultCredentails(accessKeyId, accessKeySecret);
83+
Credentials credentials = new DefaultCredentials(accessKeyId, accessKeySecret);
8484
log.debug("Creating SLS client with AK/SK, endpoint: {}", endpoint);
8585
return new Client(endpoint, credentials, null);
8686
} catch (Exception e) {

0 commit comments

Comments
 (0)