Skip to content

Commit 3fef1af

Browse files
committed
后端镜像修复
1 parent db2c7ae commit 3fef1af

File tree

4 files changed

+24
-9
lines changed

4 files changed

+24
-9
lines changed

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ uninstall-%:
4141
esac; \
4242
$(MAKE) $*-$$INSTALLER-uninstall
4343

44+
45+
# build
4446
.PHONY: mineru-docker-build
4547
mineru-docker-build:
4648
sh scripts/image/mineru/build.sh
@@ -85,6 +87,22 @@ datax-docker-install:
8587
datax-docker-uninstall:
8688
cd deployment/docker/data-platform && docker-compose down datax
8789

90+
.PHONY: backend-docker-install
91+
backend-docker-install:
92+
cd deployment/docker/data-platform && docker-compose up -d backend
93+
94+
.PHONY: backend-docker-uninstall
95+
backend-docker-uninstall:
96+
cd deployment/docker/data-platform && docker-compose down backend
97+
98+
.PHONY: frontend-docker-install
99+
frontend-docker-install:
100+
cd deployment/docker/data-platform && docker-compose up -d frontend
101+
102+
.PHONY: frontend-docker-uninstall
103+
frontend-docker-uninstall:
104+
cd deployment/docker/data-platform && docker-compose down frontend
105+
88106
.PHONY: data-juicer-helm-install
89107
data-juicer-helm-install:
90108
sh deployment/helm/data-juicer/install.sh

backend/services/main-application/src/main/resources/application.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ spring:
1212
# 数据源配置
1313
datasource:
1414
driver-class-name: com.mysql.cj.jdbc.Driver
15-
url: jdbc:mysql://localhost:3306/knowledge_base?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
16-
username: ${DB_USERNAME:knowledge_user}
17-
password: ${DB_PASSWORD:knowledge_password}
15+
url: jdbc:mysql://101.201.105.190:9988/dataengine?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
16+
username: ${DB_USERNAME:root}
17+
password: ${DB_PASSWORD:Huawei@123}
1818
hikari:
1919
maximum-pool-size: 20
2020
minimum-idle: 5

editions/community/config/application.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ spring:
1212
# 数据源配置
1313
datasource:
1414
driver-class-name: com.mysql.cj.jdbc.Driver
15-
url: jdbc:mysql://mysql:3306/dataengine?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
16-
username: ${DB_USERNAME}
17-
password: ${DB_PASSWORD}
15+
url: jdbc:mysql://101.201.105.190:9988/dataengine?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
16+
username: ${DB_USERNAME:root}
17+
password: ${DB_PASSWORD:Huawei@123}
1818
hikari:
1919
maximum-pool-size: 20
2020
minimum-idle: 5

scripts/image/frontend/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# syntax=docker.io/docker/dockerfile:1
2-
31
FROM node:18-alpine AS builder
42

53
WORKDIR /app
@@ -9,7 +7,6 @@ COPY frontend ./
97
RUN if [ -f package-lock.json ]; then npm ci; else npm install; fi && \
108
npm run build
119

12-
# Production image, copy all the files and run next
1310
FROM node:18-alpine AS runner
1411
WORKDIR /app
1512

0 commit comments

Comments
 (0)