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
f09daf77
Commit
f09daf77
authored
Apr 01, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build
parent
94772bf3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
2 deletions
+49
-2
pom.xml
pom.xml
+48
-1
application.yml
src/main/resources/application.yml
+1
-1
No files found.
pom.xml
View file @
f09daf77
...
@@ -265,6 +265,46 @@
...
@@ -265,6 +265,46 @@
</dependencies>
</dependencies>
<!--mvn clean package -Dmaven.test.skip=true -Pdev 表示打包开发环境 -->
<profiles>
<!-- 开发环境 -->
<profile>
<id>
dev
</id>
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
<properties>
<spring.profiles.active>
dev
</spring.profiles.active>
</properties>
</profile>
<!-- 测试环境 -->
<profile>
<id>
test
</id>
<properties>
<spring.profiles.active>
test
</spring.profiles.active>
</properties>
</profile>
<!-- 预发布 -->
<profile>
<id>
pre
</id>
<properties>
<spring.profiles.active>
pre
</spring.profiles.active>
</properties>
</profile>
<!-- 生产环境 -->
<profile>
<id>
prod
</id>
<properties>
<spring.profiles.active>
prod
</spring.profiles.active>
</properties>
</profile>
</profiles>
<!-- build配置 -->
<!-- build配置 -->
<build>
<build>
<plugins>
<plugins>
...
@@ -314,9 +354,16 @@
...
@@ -314,9 +354,16 @@
<artifactId>
docker-maven-plugin
</artifactId>
<artifactId>
docker-maven-plugin
</artifactId>
<version>
0.4.13
</version>
<version>
0.4.13
</version>
<configuration>
<configuration>
<!--镜像名称:镜像版本-->
<imageName>
${project.artifactId}:${project.version}
</imageName>
<imageName>
${project.artifactId}:${project.version}
</imageName>
<!--基础镜像jdk1.8-->
<baseImage>
openjdk:8-jdk-alpine
</baseImage>
<baseImage>
openjdk:8-jdk-alpine
</baseImage>
<!--镜像作者-->
<maintainer>
robbendev@gmail.com
</maintainer>
<!--切换到root目录-->
<workdir>
/root
</workdir>
<entryPoint>
["java", "-jar", "/${project.build.finalName}.jar"]
</entryPoint>
<entryPoint>
["java", "-jar", "/${project.build.finalName}.jar"]
</entryPoint>
<!--复制jar包到容器指定目录位置-->
<resources>
<resources>
<resource>
<resource>
<targetPath>
/
</targetPath>
<targetPath>
/
</targetPath>
...
@@ -324,7 +371,7 @@
...
@@ -324,7 +371,7 @@
<include>
${project.build.finalName}.jar
</include>
<include>
${project.build.finalName}.jar
</include>
</resource>
</resource>
</resources>
</resources>
<
!-- <dockerHost>http://127.0.0.1:2375</dockerHost>--
>
<
dockerHost>
http://134.175.167.230:2375
</dockerHost
>
</configuration>
</configuration>
</plugin>
</plugin>
...
...
src/main/resources/application.yml
View file @
f09daf77
spring
:
spring
:
profiles
:
profiles
:
active
:
prod
active
:
@
spring.profiles.active@
servlet
:
servlet
:
#文件上传最大容量
#文件上传最大容量
multipart
:
multipart
:
...
...
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