Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
6f6bb489
Commit
6f6bb489
authored
Nov 26, 2018
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增docker插件
parent
b8a0fd83
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
3 deletions
+38
-3
.gitignore
+1
-2
pom.xml
+25
-0
src/main/docker/docker-assembly.xml
+11
-0
src/main/resources/application.yml
+1
-1
No files found.
.gitignore
View file @
6f6bb489
...
@@ -35,5 +35,4 @@ hs_err_pid*
...
@@ -35,5 +35,4 @@ hs_err_pid*
.DS_Store
.DS_Store
docker/
_dockerCerts/
dockerCerts/
pom.xml
View file @
6f6bb489
...
@@ -167,6 +167,7 @@
...
@@ -167,6 +167,7 @@
</dependencies>
</dependencies>
<build>
<build>
<finalName>
${project.artifactId}
</finalName>
<plugins>
<plugins>
<plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<groupId>
org.apache.maven.plugins
</groupId>
...
@@ -201,6 +202,30 @@
...
@@ -201,6 +202,30 @@
<useDefaultDelimiters>
false
</useDefaultDelimiters>
<useDefaultDelimiters>
false
</useDefaultDelimiters>
</configuration>
</configuration>
</plugin>
</plugin>
<plugin>
<groupId>
io.fabric8
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<version>
0.26.1
</version>
<configuration>
<dockerHost>
tcp://demo.stylefeng.cn:2376
</dockerHost>
<certPath>
_dockerCerts
</certPath>
<images>
<image>
<alias>
service
</alias>
<name>
stylefeng/${project.artifactId}:latest
</name>
<build>
<from>
java:8
</from>
<assembly>
<descriptor>
docker-assembly.xml
</descriptor>
</assembly>
<cmd>
<shell>
java -jar /maven/${project.artifactId}.jar
</shell>
</cmd>
</build>
</image>
</images>
</configuration>
</plugin>
</plugins>
</plugins>
<resources>
<resources>
<resource>
<resource>
...
...
src/main/docker/docker-assembly.xml
0 → 100644
View file @
6f6bb489
<assembly
xmlns=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd"
>
<files>
<file>
<source>
target/${project.artifactId}.jar
</source>
<destName>
${project.artifactId}.jar
</destName>
</file>
</files>
</assembly>
\ No newline at end of file
src/main/resources/application.yml
View file @
6f6bb489
...
@@ -61,7 +61,7 @@ guns:
...
@@ -61,7 +61,7 @@ guns:
spring
:
spring
:
profiles
:
dev
profiles
:
dev
datasource
:
datasource
:
url
:
jdbc:mysql://1
27.0.0.1
:3306/guns?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT
url
:
jdbc:mysql://1
72.17.119.19
:3306/guns?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT
username
:
root
username
:
root
password
:
root
password
:
root
filters
:
wall,mergeStat
filters
:
wall,mergeStat
...
...
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