Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdisk
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdisk
提交
43551d68
提交
43551d68
编写于
7月 10, 2022
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhouweidong 部署微服务接口 [ibz-disk,microservice]
上级
fc79f7c3
变更
12
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
315 行增加
和
14 行删除
+315
-14
config.xml
config.xml
+6
-0
pom.xml
ibzdisk-app/ibzdisk-app-web/pom.xml
+121
-0
Dockerfile
ibzdisk-app/ibzdisk-app-web/src/main/docker/Dockerfile
+1
-1
Dockerfile
ibzdisk-app/ibzdisk-app-web/src/main/dockerwar/Dockerfile
+12
-0
systemResource.json
...sk-core/src/main/resources/permission/systemResource.json
+1
-0
pom.xml
ibzdisk-dependencies/pom.xml
+10
-0
pom.xml
ibzdisk-provider/ibzdisk-provider-api/pom.xml
+93
-0
Dockerfile
...-provider/ibzdisk-provider-api/src/main/docker/Dockerfile
+2
-2
ibzdisk-provider-api-k8s.yaml
...rovider-api/src/main/docker/ibzdisk-provider-api-k8s.yaml
+31
-4
ibzdisk-provider-api.yaml
...sk-provider-api/src/main/docker/ibzdisk-provider-api.yaml
+21
-1
Dockerfile
...ovider/ibzdisk-provider-api/src/main/dockerwar/Dockerfile
+12
-0
logback-spring.xml
...bzdisk-provider-api/src/main/resources/logback-spring.xml
+5
-6
未找到文件。
config.xml
浏览文件 @
43551d68
...
@@ -37,6 +37,12 @@
...
@@ -37,6 +37,12 @@
git clone -b master $para2 ibzdisk/
git clone -b master $para2 ibzdisk/
export NODE_OPTIONS=--max-old-space-size=4096
export NODE_OPTIONS=--max-old-space-size=4096
cd ibzdisk/
cd ibzdisk/
mvn clean package -Papi
mvn install -Papi
cd ibzdisk-provider/ibzdisk-provider-api
mvn -Papi docker:build
mvn -Papi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzdisk-provider-api.yaml ibzlab-rt --with-registry-auth
</command>
</command>
</hudson.tasks.Shell>
</hudson.tasks.Shell>
</builders>
</builders>
...
...
ibzdisk-app/ibzdisk-app-web/pom.xml
浏览文件 @
43551d68
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
<artifactId>
ibzdisk-app-web
</artifactId>
<artifactId>
ibzdisk-app-web
</artifactId>
<name>
Ibzdisk Gateway web
</name>
<name>
Ibzdisk Gateway web
</name>
<description>
Ibzdisk web
</description>
<description>
Ibzdisk 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>
ibzdisk-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>
...
...
ibzdisk-app/ibzdisk-app-web/src/main/docker/Dockerfile
浏览文件 @
43551d68
FROM
adoptopenjdk/openjdk8:jdk8u242-b08-centos
FROM
image.ibizlab.cn/library/openjdk:8-jre-alpine
ENV
TZ=Asia/Shanghai \
ENV
TZ=Asia/Shanghai \
SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
...
...
ibzdisk-app/ibzdisk-app-web/src/main/dockerwar/Dockerfile
0 → 100644
浏览文件 @
43551d68
FROM
registry.cn-shanghai.aliyuncs.com/ibizops/tongweb:arm-7.0
ENV
TZ Asia/Shanghai
ENV
LANG C.UTF-8
WORKDIR
/opt/tongtech
ADD
ibzdisk-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
ibzdisk-app-web.war
-d
./TongWeb7.0/deployment/jcyweb
ENTRYPOINT
/opt/tongtech/TongWeb7.0/bin/startserver.sh
ibzdisk-core/src/main/resources/permission/systemResource.json
浏览文件 @
43551d68
{
{
"systemid"
:
"ibzdisk"
,
"systemid"
:
"ibzdisk"
,
"systemname"
:
"ibzdisk"
,
"unires"
:[
"unires"
:[
],
],
"entities"
:[
"entities"
:[
...
...
ibzdisk-dependencies/pom.xml
浏览文件 @
43551d68
...
@@ -83,9 +83,13 @@
...
@@ -83,9 +83,13 @@
<!-- 阿里seata分布式事务 -->
<!-- 阿里seata分布式事务 -->
<alibaba-seata.version>
1.3.0
</alibaba-seata.version>
<alibaba-seata.version>
1.3.0
</alibaba-seata.version>
<log4j2.version>
2.16.0
</log4j2.version>
<oracle.version>
19.8.0.0
</oracle.version>
<oracle.version>
19.8.0.0
</oracle.version>
<postgresql.version>
42.2.6
</postgresql.version>
<postgresql.version>
42.2.6
</postgresql.version>
<flowable-modeler.version>
6.4.2
</flowable-modeler.version>
<flowable-modeler.version>
6.4.2
</flowable-modeler.version>
<alibaba-fastjson.version>
1.2.57_noneautotype
</alibaba-fastjson.version>
</properties>
</properties>
<dependencyManagement>
<dependencyManagement>
...
@@ -108,6 +112,12 @@
...
@@ -108,6 +112,12 @@
<scope>
import
</scope>
<scope>
import
</scope>
</dependency>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<version>
${alibaba-fastjson.version}
</version>
</dependency>
<!-- Alibaba Druid -->
<!-- Alibaba Druid -->
<dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<groupId>
com.alibaba
</groupId>
...
...
ibzdisk-provider/ibzdisk-provider-api/pom.xml
浏览文件 @
43551d68
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
<artifactId>
ibzdisk-provider-api
</artifactId>
<artifactId>
ibzdisk-provider-api
</artifactId>
<name>
Ibzdisk Microservice api
</name>
<name>
Ibzdisk 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>
ibzdisk-provider-api
</finalName>
<jvmArguments>
-Dfile.encoding=UTF-8
</jvmArguments>
<mainClass>
cn.ibizlab.api.ibzdiskapiApplication
</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>
ibzdisk-provider/ibzdisk-provider-api/src/main/docker/Dockerfile
浏览文件 @
43551d68
FROM
adoptopenjdk/openjdk8:jdk8u242-b08-centos
FROM
image.ibizlab.cn/library/openjdk:8-jre-alpine
ENV
TZ=Asia/Shanghai \
ENV
TZ=Asia/Shanghai \
SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
...
@@ -10,6 +10,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
...
@@ -10,6 +10,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Duser.timezone=$TZ -Djava.security.egd=file:/dev/./urandom -jar /ibzdisk-provider-api.jar
java ${JAVA_OPTS} -Duser.timezone=$TZ -Djava.security.egd=file:/dev/./urandom -jar /ibzdisk-provider-api.jar
EXPOSE
8081
EXPOSE
40006
ADD
ibzdisk-provider-api.jar /ibzdisk-provider-api.jar
ADD
ibzdisk-provider-api.jar /ibzdisk-provider-api.jar
ibzdisk-provider/ibzdisk-provider-api/src/main/docker/ibzdisk-provider-api-k8s.yaml
浏览文件 @
43551d68
...
@@ -22,7 +22,34 @@ spec:
...
@@ -22,7 +22,34 @@ spec:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzdisk-provider-api:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzdisk-provider-api:latest
imagePullPolicy
:
Always
imagePullPolicy
:
Always
ports
:
ports
:
-
containerPort
:
8081
-
containerPort
:
40006
env
:
-
name
:
SPRING_CLOUD_NACOS_DISCOVERY_IP
value
:
"
172.16.180.237"
-
name
:
SERVER_PORT
value
:
"
40006"
-
name
:
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR
value
:
"
172.16.100.243:8848"
-
name
:
SPRING_REDIS_HOST
value
:
"
172.16.100.243"
-
name
:
SPRING_REDIS_PORT
value
:
"
6379"
-
name
:
SPRING_REDIS_DATABASE
value
:
"
0"
-
name
:
SPRING_DATASOURCE_USERNAME
value
:
"
a_A_5d9d78509"
-
name
:
SPRING_DATASOURCE_PASSWORD
value
:
"
@6dEfb3@"
-
name
:
SPRING_DATASOURCE_URL
value
:
"
jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true&serverTimezone=GMT%2B8"
-
name
:
SPRING_DATASOURCE_DRIVER-CLASS-NAME
value
:
"
com.mysql.jdbc.Driver"
-
name
:
SPRING_DATASOURCE_DEFAULTSCHEMA
value
:
"
a_A_5d9d78509"
-
name
:
NACOS
value
:
"
172.16.100.243:8848"
-
name
:
SPRING_CLOUD_NACOS_DISCOVERY_GROUP
value
:
"
ibizdev"
volumeMounts
:
volumeMounts
:
-
name
:
data
-
name
:
data
mountPath
:
/app/file
mountPath
:
/app/file
...
@@ -42,9 +69,9 @@ spec:
...
@@ -42,9 +69,9 @@ spec:
type
:
NodePort
type
:
NodePort
ports
:
ports
:
-
name
:
http
-
name
:
http
port
:
8081
port
:
40006
targetPort
:
8081
targetPort
:
40006
nodePort
:
8081
nodePort
:
40006
protocol
:
TCP
protocol
:
TCP
selector
:
selector
:
app
:
ibzdisk-provider-api
app
:
ibzdisk-provider-api
...
...
ibzdisk-provider/ibzdisk-provider-api/src/main/docker/ibzdisk-provider-api.yaml
浏览文件 @
43551d68
...
@@ -3,9 +3,29 @@ services:
...
@@ -3,9 +3,29 @@ services:
ibzdisk-provider-api
:
ibzdisk-provider-api
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzdisk-provider-api:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzdisk-provider-api:latest
ports
:
ports
:
-
"
8081:8081
"
-
"
40006:40006
"
networks
:
networks
:
-
agent_network
-
agent_network
#logging:
# driver: loki
# options:
# loki-url: "http://172.16.240.111:3100/loki/api/v1/push"
# max-size: "50m"
# max-file: "10"
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
-
SERVER_PORT=40006
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.100.243:8848
-
SPRING_REDIS_HOST=172.16.100.243
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
-
SPRING_DATASOURCE_PASSWORD=@6dEfb3@
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true&serverTimezone=GMT%2B8
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
-
NACOS=172.16.100.243:8848
-
SPRING_CLOUD_NACOS_DISCOVERY_GROUP=ibizdev
deploy
:
deploy
:
resources
:
resources
:
limits
:
limits
:
...
...
ibzdisk-provider/ibzdisk-provider-api/src/main/dockerwar/Dockerfile
0 → 100644
浏览文件 @
43551d68
FROM
registry.cn-shanghai.aliyuncs.com/ibizops/tongweb:arm-7.0-withSSL
ENV
TZ Asia/Shanghai
ENV
LANG C.UTF-8
WORKDIR
/opt/tongtech
ADD
ibzdisk-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
ibzdisk-provider-api.war
-d
./TongWeb7.0/deployment/jcyweb
ENTRYPOINT
/opt/tongtech/TongWeb7.0/bin/startserver.sh
ibzdisk-provider/ibzdisk-provider-api/src/main/resources/logback-spring.xml
浏览文件 @
43551d68
...
@@ -20,18 +20,17 @@
...
@@ -20,18 +20,17 @@
<appender
name=
"file"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<appender
name=
"file"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<!--日志文件输出的文件名-->
<!--日志文件输出的文件名-->
<FileNamePattern>
${LOG_PATH}/ibzdisk-api.%d{yyyy-MM-dd}.log
</FileNamePattern>
<FileNamePattern>
${LOG_PATH}/ibzdisk-api.%d{yyyy-MM-dd}.%i.log
</FileNamePattern>
<!--日志文件最大的大小-->
<timeBasedFileNamingAndTriggeringPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"
>
<maxFileSize>
100MB
</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<!--日志文件保留天数-->
<!--日志文件保留天数-->
<MaxHistory>
30
</MaxHistory>
<MaxHistory>
30
</MaxHistory>
</rollingPolicy>
</rollingPolicy>
<encoder
class=
"ch.qos.logback.classic.encoder.PatternLayoutEncoder"
>
<encoder
class=
"ch.qos.logback.classic.encoder.PatternLayoutEncoder"
>
<pattern>
${LOG_PATTERN}
</pattern>
<pattern>
${LOG_PATTERN}
</pattern>
</encoder>
</encoder>
<!--日志文件最大的大小-->
<triggeringPolicy
class=
"ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"
>
<MaxFileSize>
100MB
</MaxFileSize>
</triggeringPolicy>
</appender>
</appender>
<!-- 日志输出级别 -->
<!-- 日志输出级别 -->
<root
level=
"INFO"
>
<root
level=
"INFO"
>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录