Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzrt
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzrt
提交
76d1dcc3
提交
76d1dcc3
编写于
10月 24, 2021
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码 [ibiz-rt,ibizlab-runtime]
上级
d01026b3
变更
8
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
246 行增加
和
8 行删除
+246
-8
pom.xml
ibzrt-app/ibzrt-app-web/pom.xml
+121
-0
Dockerfile
ibzrt-app/ibzrt-app-web/src/main/dockerwar/Dockerfile
+12
-0
ibzrt.json
ibzrt-core/src/main/resources/sysmodel/ibzrt.json
+4
-4
pom.xml
ibzrt-provider/ibzrt-provider-api/pom.xml
+93
-0
Dockerfile
...provider/ibzrt-provider-api/src/main/dockerwar/Dockerfile
+12
-0
DictCatalogDTO.java
...-api/src/main/java/cn/ibizlab/api/dto/DictCatalogDTO.java
+1
-1
DictOptionDTO.java
...r-api/src/main/java/cn/ibizlab/api/dto/DictOptionDTO.java
+2
-2
JobsInfoDTO.java
...der-api/src/main/java/cn/ibizlab/api/dto/JobsInfoDTO.java
+1
-1
未找到文件。
ibzrt-app/ibzrt-app-web/pom.xml
浏览文件 @
76d1dcc3
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
<artifactId>
ibzrt-app-web
</artifactId>
<artifactId>
ibzrt-app-web
</artifactId>
<name>
Ibzrt Gateway Web
</name>
<name>
Ibzrt Gateway Web
</name>
<description>
Ibzrt Web
</description>
<description>
Ibzrt Web
</description>
<packaging>
${project.packaging}
</packaging>
<dependencies>
<dependencies>
<dependency>
<dependency>
...
@@ -22,6 +23,7 @@
...
@@ -22,6 +23,7 @@
</dependencies>
</dependencies>
<properties>
<properties>
<project.packaging>
jar
</project.packaging>
<docker.image.prefix>
registry.cn-shanghai.aliyuncs.com/ibizsys
</docker.image.prefix>
<docker.image.prefix>
registry.cn-shanghai.aliyuncs.com/ibizsys
</docker.image.prefix>
</properties>
</properties>
...
@@ -144,6 +146,125 @@
...
@@ -144,6 +146,125 @@
</plugins>
</plugins>
</build>
</build>
</profile>
</profile>
<profile>
<id>
web-war
</id>
<properties>
<project.packaging>
war
</project.packaging>
</properties>
<build>
<resources>
<resource>
<directory>
${basedir}/src/main/webapp
</directory>
<!--注意此次必须要放在此目录下才能被访问到 -->
<targetPath>
META-INF/resources
</targetPath>
<includes>
<include>
**/**
</include>
</includes>
</resource>
<resource>
<directory>
${basedir}/src/main/resources
</directory>
<includes>
<include>
**/**
</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
exec-maven-plugin
</artifactId>
<version>
1.6.0
</version>
<executions>
<execution>
<id>
exec-yarn-run-install
</id>
<phase>
prepare-package
</phase>
<goals>
<goal>
exec
</goal>
</goals>
<configuration>
<executable>
yarn
</executable>
<workingDirectory>
../../app_Web
</workingDirectory>
</configuration>
</execution>
<execution>
<id>
exec-yarn-run-build
</id>
<phase>
prepare-package
</phase>
<goals>
<goal>
exec
</goal>
</goals>
<configuration>
<executable>
yarn
</executable>
<arguments>
<argument>
build
</argument>
</arguments>
<workingDirectory>
../../app_Web
</workingDirectory>
</configuration>
</execution>
<execution>
<id>
prepare
</id>
<configuration>
<executable>
cp
</executable>
<arguments>
<argument>
../../${project.artifactId}.war
</argument>
<argument>
${project.basedir}/src/main/dockerwar/
</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>
buildpush
</id>
<configuration>
<executable>
docker
</executable>
<arguments>
<argument>
buildx
</argument>
<argument>
build
</argument>
<argument>
--platform
</argument>
<argument>
linux/arm64
</argument>
<argument>
-t
</argument>
<argument>
${docker.image.prefix}/${project.artifactId}:latest
</argument>
<argument>
${project.basedir}/src/main/dockerwar
</argument>
<argument>
--push
</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<finalName>
ibzrt-app-web
</finalName>
<jvmArguments>
-Dfile.encoding=UTF-8
</jvmArguments>
<mainClass>
cn.ibizlab.web.WebApplication
</mainClass>
<outputDirectory>
../../
</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>
repackage
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<version>
0.4.13
</version>
<configuration>
<serverId>
ibiz-dev
</serverId>
<imageName>
${docker.image.prefix}/${project.artifactId}:latest
</imageName>
<dockerDirectory>
${project.basedir}/src/main/dockerwar
</dockerDirectory>
<resources>
<resource>
<targetPath>
/
</targetPath>
<directory>
../../
</directory>
<include>
${project.artifactId}.war
</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</profiles>
</project>
</project>
...
...
ibzrt-app/ibzrt-app-web/src/main/dockerwar/Dockerfile
0 → 100644
浏览文件 @
76d1dcc3
FROM
registry.cn-shanghai.aliyuncs.com/ibizops/tongweb:arm-7.0
ENV
TZ Asia/Shanghai
ENV
LANG C.UTF-8
WORKDIR
/opt/tongtech
ADD
ibzrt-app-web.war .
RUN
echo
-e
'export LANG="zh_CN.UTF-8"\nexport LC_ALL="zh_CN.UTF-8"'
>
/etc/locale.conf
RUN
unzip
-oq
ibzrt-app-web.war
-d
./TongWeb7.0/deployment/jcyweb
ENTRYPOINT
/opt/tongtech/TongWeb7.0/bin/startserver.sh
ibzrt-core/src/main/resources/sysmodel/ibzrt.json
浏览文件 @
76d1dcc3
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
"nullable"
:
0
,
"nullable"
:
0
,
"physical_field"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
1
00
,
"data_length"
:
3
00
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
3
,
"show_order"
:
3
,
"major_field"
:
1
"major_field"
:
1
...
@@ -193,7 +193,7 @@
...
@@ -193,7 +193,7 @@
"nullable"
:
0
,
"nullable"
:
0
,
"physical_field"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
1
00
,
"data_length"
:
3
00
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
3
,
"show_order"
:
3
,
"major_field"
:
0
"major_field"
:
0
...
@@ -222,7 +222,7 @@
...
@@ -222,7 +222,7 @@
"nullable"
:
0
,
"nullable"
:
0
,
"physical_field"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
1
00
,
"data_length"
:
3
00
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
5
,
"show_order"
:
5
,
"major_field"
:
1
"major_field"
:
1
...
@@ -534,7 +534,7 @@
...
@@ -534,7 +534,7 @@
"nullable"
:
1
,
"nullable"
:
1
,
"physical_field"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
30
,
"data_length"
:
30
0
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
12
,
"show_order"
:
12
,
"major_field"
:
0
"major_field"
:
0
...
...
ibzrt-provider/ibzrt-provider-api/pom.xml
浏览文件 @
76d1dcc3
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
<artifactId>
ibzrt-provider-api
</artifactId>
<artifactId>
ibzrt-provider-api
</artifactId>
<name>
Ibzrt Microservice api
</name>
<name>
Ibzrt Microservice api
</name>
<description>
microservice
</description>
<description>
microservice
</description>
<packaging>
${project.packaging}
</packaging>
<dependencies>
<dependencies>
<dependency>
<dependency>
...
@@ -21,10 +22,13 @@
...
@@ -21,10 +22,13 @@
</dependency>
</dependency>
</dependencies>
</dependencies>
<properties>
<properties>
<project.packaging>
jar
</project.packaging>
<docker.image.prefix>
registry.cn-shanghai.aliyuncs.com/ibizsys
</docker.image.prefix>
<docker.image.prefix>
registry.cn-shanghai.aliyuncs.com/ibizsys
</docker.image.prefix>
</properties>
</properties>
<profiles>
<profiles>
<profile>
<profile>
<id>
api
</id>
<id>
api
</id>
...
@@ -111,6 +115,95 @@
...
@@ -111,6 +115,95 @@
</plugins>
</plugins>
</build>
</build>
</profile>
</profile>
<profile>
<id>
api-war
</id>
<properties>
<project.packaging>
war
</project.packaging>
</properties>
<build>
<resources>
<resource>
<directory>
${basedir}/src/main/resources
</directory>
<includes>
<include>
**/**
</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<finalName>
ibzrt-provider-api
</finalName>
<jvmArguments>
-Dfile.encoding=UTF-8
</jvmArguments>
<mainClass>
cn.ibizlab.api.ibzrtapiApplication
</mainClass>
<outputDirectory>
../../
</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>
repackage
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<version>
0.4.13
</version>
<configuration>
<serverId>
ibiz-dev
</serverId>
<imageName>
${docker.image.prefix}/${project.artifactId}:latest
</imageName>
<dockerDirectory>
${project.basedir}/src/main/dockerwar
</dockerDirectory>
<resources>
<resource>
<targetPath>
/
</targetPath>
<directory>
../../
</directory>
<include>
${project.artifactId}.war
</include>
</resource>
</resources>
</configuration>
</plugin>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
exec-maven-plugin
</artifactId>
<version>
3.0.0
</version>
<executions>
<execution>
<id>
prepare
</id>
<configuration>
<executable>
cp
</executable>
<arguments>
<argument>
../../${project.artifactId}.war
</argument>
<argument>
${project.basedir}/src/main/dockerwar/
</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>
buildpush
</id>
<configuration>
<executable>
docker
</executable>
<arguments>
<argument>
buildx
</argument>
<argument>
build
</argument>
<argument>
--platform
</argument>
<argument>
linux/arm64
</argument>
<argument>
-t
</argument>
<argument>
${docker.image.prefix}/${project.artifactId}:latest
</argument>
<argument>
${project.basedir}/src/main/dockerwar
</argument>
<argument>
--push
</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</profiles>
</project>
</project>
ibzrt-provider/ibzrt-provider-api/src/main/dockerwar/Dockerfile
0 → 100644
浏览文件 @
76d1dcc3
FROM
registry.cn-shanghai.aliyuncs.com/ibizops/tongweb:arm-7.0
ENV
TZ Asia/Shanghai
ENV
LANG C.UTF-8
WORKDIR
/opt/tongtech
ADD
ibzrt-provider-api.war .
RUN
echo
-e
'export LANG="zh_CN.UTF-8"\nexport LC_ALL="zh_CN.UTF-8"'
>
/etc/locale.conf
RUN
unzip
-oq
ibzrt-provider-api.war
-d
./TongWeb7.0/deployment/jcyweb
ENTRYPOINT
/opt/tongtech/TongWeb7.0/bin/startserver.sh
ibzrt-provider/ibzrt-provider-api/src/main/java/cn/ibizlab/api/dto/DictCatalogDTO.java
浏览文件 @
76d1dcc3
...
@@ -60,7 +60,7 @@ public class DictCatalogDTO extends DTOBase implements Serializable {
...
@@ -60,7 +60,7 @@ public class DictCatalogDTO extends DTOBase implements Serializable {
@JSONField
(
name
=
"name"
)
@JSONField
(
name
=
"name"
)
@JsonProperty
(
"name"
)
@JsonProperty
(
"name"
)
@NotBlank
(
message
=
"[名称]不允许为空!"
)
@NotBlank
(
message
=
"[名称]不允许为空!"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[1
00]"
)
@Size
(
min
=
0
,
max
=
300
,
message
=
"内容长度必须小于等于[3
00]"
)
@ApiModelProperty
(
"名称"
)
@ApiModelProperty
(
"名称"
)
private
String
name
;
private
String
name
;
...
...
ibzrt-provider/ibzrt-provider-api/src/main/java/cn/ibizlab/api/dto/DictOptionDTO.java
浏览文件 @
76d1dcc3
...
@@ -60,7 +60,7 @@ public class DictOptionDTO extends DTOBase implements Serializable {
...
@@ -60,7 +60,7 @@ public class DictOptionDTO extends DTOBase implements Serializable {
@JSONField
(
name
=
"catalog_name"
)
@JSONField
(
name
=
"catalog_name"
)
@JsonProperty
(
"catalog_name"
)
@JsonProperty
(
"catalog_name"
)
@NotBlank
(
message
=
"[目录]不允许为空!"
)
@NotBlank
(
message
=
"[目录]不允许为空!"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[1
00]"
)
@Size
(
min
=
0
,
max
=
300
,
message
=
"内容长度必须小于等于[3
00]"
)
@ApiModelProperty
(
"目录"
)
@ApiModelProperty
(
"目录"
)
private
String
catalogName
;
private
String
catalogName
;
...
@@ -82,7 +82,7 @@ public class DictOptionDTO extends DTOBase implements Serializable {
...
@@ -82,7 +82,7 @@ public class DictOptionDTO extends DTOBase implements Serializable {
@JSONField
(
name
=
"label"
)
@JSONField
(
name
=
"label"
)
@JsonProperty
(
"label"
)
@JsonProperty
(
"label"
)
@NotBlank
(
message
=
"[名称]不允许为空!"
)
@NotBlank
(
message
=
"[名称]不允许为空!"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[1
00]"
)
@Size
(
min
=
0
,
max
=
300
,
message
=
"内容长度必须小于等于[3
00]"
)
@ApiModelProperty
(
"名称"
)
@ApiModelProperty
(
"名称"
)
private
String
label
;
private
String
label
;
...
...
ibzrt-provider/ibzrt-provider-api/src/main/java/cn/ibizlab/api/dto/JobsInfoDTO.java
浏览文件 @
76d1dcc3
...
@@ -152,7 +152,7 @@ public class JobsInfoDTO extends DTOBase implements Serializable {
...
@@ -152,7 +152,7 @@ public class JobsInfoDTO extends DTOBase implements Serializable {
*/
*/
@JSONField
(
name
=
"remark"
)
@JSONField
(
name
=
"remark"
)
@JsonProperty
(
"remark"
)
@JsonProperty
(
"remark"
)
@Size
(
min
=
0
,
max
=
30
,
message
=
"内容长度必须小于等于[3
0]"
)
@Size
(
min
=
0
,
max
=
30
0
,
message
=
"内容长度必须小于等于[30
0]"
)
@ApiModelProperty
(
"备注"
)
@ApiModelProperty
(
"备注"
)
private
String
remark
;
private
String
remark
;
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录