Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
signal
traffic-signal-platform
Commits
4ce9e837
Commit
4ce9e837
authored
Apr 10, 2025
by
zhouleilei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opt/control 国产化 - 中创中间件inforsuite V10.0.2.3替换springboot内置tomcat
parent
75550b09
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
75 additions
and
65 deletions
+75
-65
pom.xml
signal-control-service/pom.xml
+27
-0
bootstrap-docker.yaml
...-control-service/src/main/resources/bootstrap-docker.yaml
+4
-1
pom.xml
signal-optimize-service/pom.xml
+44
-64
No files found.
signal-control-service/pom.xml
View file @
4ce9e837
...
...
@@ -102,10 +102,37 @@
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-websocket
</artifactId>
<!-- 中创中间件inforsuite ,排除tomcat-->
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- 中创中间件inforsuite-->
<dependency>
<groupId>
com.cvicse.embedded
</groupId>
<artifactId>
spring-boot-starter-inforsuite
</artifactId>
<version>
10.0.2.5
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<exclusion>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
<groupId>
org.springframework.boot
</groupId>
</exclusion>
<exclusion>
<artifactId>
tomcat-embed-core
</artifactId>
<groupId>
org.apache.tomcat.embed
</groupId>
</exclusion>
<exclusion>
<artifactId>
tomcat-embed-websocket
</artifactId>
<groupId>
org.apache.tomcat.embed
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
signal-control-service/src/main/resources/bootstrap-docker.yaml
View file @
4ce9e837
...
...
@@ -19,3 +19,6 @@ feign:
default
:
connectTimeout
:
500000
readTimeout
:
500000
inforsuite
:
license-path
:
D:\\license
\ No newline at end of file
signal-optimize-service/pom.xml
View file @
4ce9e837
...
...
@@ -84,6 +84,24 @@
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<exclusion>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
<groupId>
org.springframework.boot
</groupId>
</exclusion>
<exclusion>
<artifactId>
tomcat-embed-core
</artifactId>
<groupId>
org.apache.tomcat.embed
</groupId>
</exclusion>
<exclusion>
<artifactId>
tomcat-embed-el
</artifactId>
<groupId>
org.apache.tomcat.embed
</groupId>
</exclusion>
<exclusion>
<artifactId>
tomcat-embed-websocket
</artifactId>
<groupId>
org.apache.tomcat.embed
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
...
...
@@ -248,101 +266,63 @@
<!-- mvn clean package -Dmaven.test.skip=true jib:build -DsendCredentialsOverHttp=true -->
<!-- 使用jib 无需深入学习docker, 无需编写Dockerfile -->
<
!--<
plugin>
<plugin>
<groupId>
com.google.cloud.tools
</groupId>
<artifactId>
jib-maven-plugin
</artifactId>
<version>
2.5.2
</version>
<!-- 将jib与mvn构建的生命周期绑定 -->
<executions>
<execution>
<id>
build-image
</id>
<phase>
install
</phase>
<goals>
<goal>
build
</goal>
</goals>
</execution>
</executions>
<configuration>
<!–from节点用来设置镜像的基础镜像,相当于Docerkfile中的FROM关键字–>
<!--from节点用来设置镜像的基础镜像,相当于Docerkfile中的FROM关键字-->
<from>
<!–使用harbor上的openjdk镜像–>
<!–<image>${harbor.ip.port}/xinkong/openjdk:8-alpine3.9</image>–>
<image>${harbor.ip.port}/xinkong/centos7-jdk8-rpm:1.0</image>
<!–harbor服务器的登录信息–>
<!--使用harbor上的openjdk镜像-->
<image>
${harbor.ip.port}/xinkong/openjdk:8-alpine3.9
</image>
<!--harbor服务器的登录信息-->
<auth>
<username>
admin
</username>
<password>
Wanji300552
</password>
</auth>
</from>
<to>
<image>${harbor.ip.port}/xinkong/${artifactId}:${version}</image>
<image>
${harbor.ip.port}/xinkong/${artifactId}:${version}
${maven.build.timestamp}
</image>
<auth>
<username>
admin
</username>
<password>
Wanji300552
</password>
</auth>
</to>
<container>
<!–配置jvm虚拟机参数–>
<!--配置jvm虚拟机参数-->
<jvmFlags>
<jvmFlag>
-Xms512m
</jvmFlag>
<jvmFlag>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1511
7
</jvmFlag>
<jvmFlag>
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1511
9
</jvmFlag>
</jvmFlags>
<!–添加RPM包–>
<!–rpm -i /rpms/glibc-common-2.17-326.el7_9.3.x86_64.rpm --force &&–>
<!–rpm -i /rpms/nspr-4.35.0-1.el7_9.x86_64.rpm --force &&–>
<!–rpm -i /rpms/nss-util-3.90.0-1.el7_9.x86_64.rpm --force &&–>
<!–rpm -i /rpms/glibc-2.17-326.el7_9.3.i686.rpm --force &&–>
<!–rpm -i /rpms/glibc-2.17-326.el7_9.3.x86_64.rpm --force &&–>
<!–rpm -i /rpms/glibc-headers-2.17-326.el7_9.3.x86_64.rpm --force &&–>
<!–rpm -i /rpms/glibc-devel-2.17-326.el7_9.3.x86_64.rpm --force &&–>
<!–rpm -i /rpms/nss-softokn-freebl-3.90.0-6.el7_9.i686.rpm --force &&–>
<!–rpm -i /rpms/nss-softokn-freebl-3.90.0-6.el7_9.x86_64.rpm --force &&–>
<!–rpm -i /rpms/zlib-1.2.7-21.el7_9.i686.rpm --force &&–>
<!–rpm -i /rpms/libpng-1.5.13-8.el7.i686.rpm --force &&–>
<!–rpm -i /rpms/bzip2-libs-1.0.6-13.el7.i686.rpm --force &&–>
<!–rpm -i /rpms/libuuid-2.23.2-65.el7_9.1.i686.rpm --force &&–>
<!–rpm -i /rpms/expat-2.1.0-15.el7_9.i686.rpm --force &&–>
<!–rpm -i /rpms/freetype-2.8-14.el7_9.1.i686.rpm --force &&–>
<!–<entrypoint>–>
<!–<shell>sh</shell>–>
<!–<option>-c</option>–>
<!–<arg>–>
<!–rpm localinstall /rpms/fontconfig-2.13.0-4.3.el7.i686.rpm --nogpgcheck &&–>
<!–rpm localinstall /rpms/fontconfig-2.13.0-4.3.el7.x86_64.rpm --nogpgcheck &&–>
<!–rpm localinstall /rpms/dejavu-sans-fonts-2.33-6.el7.noarch.rpm --nogpgcheck–>
<!–</arg>–>
<!–</entrypoint>–>
<!–配置使用的时区–>
<!--配置使用的时区-->
<environment>
<TZ>
Asia/Shanghai
</TZ>
<spring.profiles.active>
dev
</spring.profiles.active>
<LANG>en_US.UTF-8</LANG>
</environment>
<!–要暴露的端口–>
<!--要暴露的端口-->
<ports>
<port>
39001
</port>
<port>
15117
</port>
</ports>
<!– <creationTime>2022-10-14T10:08:59.304+08:00</creationTime>–>
<!-- <creationTime>2022-10-14T10:08:59.304+08:00</creationTime>-->
<creationTime>
${maven.build.timestamp}
</creationTime>
<mainClass>
net.wanji.opt.SignalOptimizeApplication
</mainClass>
</container>
<extraDirectories>
<paths>
<path>
<from>src/main/resources/rpms/</from>
<into>/rpms/</into>
</path>
</paths>
</extraDirectories>
<!–可以进行HTTP–>
<!--可以进行HTTP-->
<allowInsecureRegistries>
true
</allowInsecureRegistries>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>-->
</plugin>
<!-- maven 打包方式-->
<plugin>
<artifactId>
maven-resources-plugin
</artifactId>
...
...
@@ -359,7 +339,7 @@
<outputDirectory>
${project.parent.basedir}/assembly/${project.name}/bin
</outputDirectory>
<resources>
<resource>
<directory>
src/main/
resources/
bin
</directory>
<directory>
src/main/bin
</directory>
<filtering>
false
</filtering>
</resource>
</resources>
...
...
@@ -423,14 +403,14 @@
</archive>
<excludes>
<exclude>
*.**
</exclude>
<exclude>
*/**/*.xml
</exclude>
<exclude>
*/*.xml
</exclude>
<!--<exclude>configs/**/**</exclude>-->
</excludes>
<outputDirectory>
${project.parent.basedir}/assembly/${project.name}/lib
</outputDirectory>
<classesDirectory>
</classesDirectory>
</configuration>
</plugin>
</plugins>
</build>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment