Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_spbt_project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
王淑君
91isoft_spbt_project
Commits
2dc15406
Commit
2dc15406
authored
Nov 13, 2019
by
xfxmcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker image 自动推送
parent
3d88a3c1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
3 deletions
+50
-3
pom.xml
pom.xml
+28
-1
readMe.md
readMe.md
+11
-2
Dockerfile
src/main/docker/Dockerfile
+11
-0
No files found.
pom.xml
View file @
2dc15406
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<dependency>
<dependency>
<groupId>
org.91isoft
</groupId>
<groupId>
org.91isoft
</groupId>
<artifactId>
91isoft_spbt
</artifactId>
<artifactId>
91isoft_spbt
</artifactId>
<version>
2.1
</version>
<version>
2.1
.2.beta
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
...
@@ -71,6 +71,33 @@
...
@@ -71,6 +71,33 @@
<target>
1.8
</target>
<target>
1.8
</target>
</configuration>
</configuration>
</plugin>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<configuration>
<!-- 镜像名称 -->
<imageName>
${project.artifactId}:v${project.version}
</imageName>
<!-- Dockerfile 文件目录 -->
<dockerDirectory>
${project.basedir}/src/main/docker
</dockerDirectory>
<!-- docker远程服务地址 -->
<dockerHost>
http://103.249.252.109:2375
</dockerHost>
<resources>
<resource>
<targetPath>
/
</targetPath>
<!-- 资源所在目录 -->
<directory>
${project.build.directory}
</directory>
<!-- 生成的.jar文件 -->
<include>
${project.build.finalName}.jar
</include>
</resource>
<resource>
<targetPath>
/
</targetPath>
<!-- 资源所在目录 -->
<directory>
${project.build.outputDirectory}
</directory>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</plugins>
</build>
</build>
...
...
readMe.md
View file @
2dc15406
...
@@ -153,7 +153,6 @@ cy:
...
@@ -153,7 +153,6 @@ cy:
`src\main\java\org\rcisoft\ProjectApplication.java`直接启动main函数
`src\main\java\org\rcisoft\ProjectApplication.java`直接启动main函数
### 代码生成器
### 代码生成器
默认端口号
默认端口号
...
@@ -320,4 +319,14 @@ ${basedir}/sql
...
@@ -320,4 +319,14 @@ ${basedir}/sql
#### `application-dev.yml`中`cy.model.activiti` 下相关配置
#### `application-dev.yml`中`cy.model.activiti` 下相关配置
`activiti: false`
改为
`activiti: true`
,流程设计器
`http://localhost:8084/static/explorer/modeler.html?modelId=50`
50替换为模型id
`activiti: false`
改为
`activiti: true`
,流程设计器
`http://localhost:8084/static/explorer/modeler.html?modelId=50`
50替换为模型id
\ No newline at end of file
## 其他
### 构建
maven
`mvn clean package -DskipTests docker:build`
> 镜像版本已存在的话,经测试,未覆盖。
src/main/docker/Dockerfile
0 → 100644
View file @
2dc15406
# 基础镜像使用java
FROM
java:8
# VOLUME 指定了临时文件目录为/tmp。
# 其效果是在主机 /var/lib/docker 目录下创建了一个临时文件,并链接到容器的/tmp
# VOLUME /tmp
# 将jar包添加到容器中并更名为mydocker.jar
ADD
91isoft_spbt_project.jar 91isoft_spbt_project.jar
# 运行jar包
RUN
bash
-c
'touch /91isoft_spbt_project.jar'
ENTRYPOINT
["java","-Djava.security.egd=file:/dev/./urandom","-jar","/91isoft_spbt_project.jar"]
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