Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
gogirl-miniapp-backend
Commits
2a9c644b
Commit
2a9c644b
authored
Apr 01, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build docker
parent
11d9f265
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
7 deletions
+19
-7
pom.xml
pom.xml
+14
-2
application-dev.yml
src/main/resources/application-dev.yml
+1
-1
application-pre.yml
src/main/resources/application-pre.yml
+1
-1
application-prod.yml
src/main/resources/application-prod.yml
+2
-2
application-test.yml
src/main/resources/application-test.yml
+1
-1
No files found.
pom.xml
View file @
2a9c644b
...
...
@@ -355,7 +355,7 @@
<version>
0.4.13
</version>
<configuration>
<!--镜像名称:镜像版本-->
<imageName>
${project.artifactId}:${project.version}
</imageName>
<imageName>
${project.artifactId}
-${spring.profiles.active}
:${project.version}
</imageName>
<!--基础镜像jdk1.8-->
<baseImage>
openjdk:8-jdk-alpine
</baseImage>
<!--镜像作者-->
...
...
@@ -371,8 +371,20 @@
<include>
${project.build.finalName}.jar
</include>
</resource>
</resources>
<dockerHost>
http://134.175.167.230:2375
</dockerHost>
<!--发布镜像的机器-->
<dockerHost>
http://94.191.67.240:2375
</dockerHost>
</configuration>
<executions>
<!--当执行mvn package时 执行mvn package docker :build-->
<execution>
<id>
build-image
</id>
<phase>
package
</phase>
<goals>
<goal>
build
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
...
...
src/main/resources/application-dev.yml
View file @
2a9c644b
...
...
@@ -44,7 +44,7 @@ spring:
#redis配置
redis
:
host
:
127.0.0.1
host
:
host.docker.internal
port
:
6379
database
:
0
lettuce
:
...
...
src/main/resources/application-pre.yml
View file @
2a9c644b
...
...
@@ -44,7 +44,7 @@ spring:
#redis配置
redis
:
host
:
127.0.0.1
host
:
host.docker.internal
port
:
6379
database
:
0
lettuce
:
...
...
src/main/resources/application-prod.yml
View file @
2a9c644b
...
...
@@ -44,8 +44,8 @@ spring:
#redis配置
redis
:
host
:
127.0.0.1
port
:
637
9
host
:
host.docker.internal
port
:
637
8
database
:
0
lettuce
:
pool
:
...
...
src/main/resources/application-test.yml
View file @
2a9c644b
...
...
@@ -44,7 +44,7 @@ spring:
#redis配置
redis
:
host
:
127.0.0.1
host
:
host.docker.internal
port
:
6379
database
:
0
lettuce
:
...
...
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