Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
cc441db1
Commit
cc441db1
authored
May 21, 2018
by
tiger
Browse files
litemall-wx-api 加入了使用docker部署的方式
parent
d0891e5e
Changes
5
Hide whitespace changes
Inline
Side-by-side
litemall-wx-api/pom.xml
View file @
cc441db1
...
...
@@ -10,6 +10,13 @@
<version>
0.1.0
</version>
</parent>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<java.version>
1.8
</java.version>
<docker.image.prefix>
litemall
</docker.image.prefix>
</properties>
<dependencies>
<dependency>
...
...
@@ -35,6 +42,22 @@
</dependencies>
<build>
<resources>
<resource>
<directory>
src/main/resources
</directory>
</resource>
<resource>
<directory>
src/main/java
</directory>
<includes>
<include>
**/*.properties
</include>
<include>
**/*.xml
</include>
</includes>
<filtering>
false
</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
...
...
@@ -53,6 +76,24 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<version>
0.4.13
</version>
<configuration>
<imageName>
${docker.image.prefix}/${project.artifactId}
</imageName>
<dockerDirectory>
src/main/docker
</dockerDirectory>
<resources>
<resource>
<targetPath>
/
</targetPath>
<directory>
${project.build.directory}
</directory>
<include>
${project.build.finalName}.jar
</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</build>
...
...
litemall-wx-api/src/main/docker/Dockerfile
0 → 100644
View file @
cc441db1
FROM
java
MAINTAINER
tiger <tiger@microsoul.com>
ADD
/litemall-wx-api-0.1.0.jar //
ENTRYPOINT
java -jar /litemall-wx-api-0.1.0.jar
\ No newline at end of file
litemall-wx-api/src/main/resources/application-docker.yml
0 → 100644
View file @
cc441db1
spring
:
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
url
:
jdbc:mysql://${MYSQL_HOST}:3306/${MYSQL_DATABASE}?useUnicode=true&characterEncoding=utf-8
username
:
${MYSQL_USERNAME}
password
:
${MYSQL_PASSWORD}
type
:
com.alibaba.druid.pool.DruidDataSource
wx
:
app-id
:
${WX_APP_ID}
app-secret
:
${WX_APP_SECRET}
mch-id
:
${WX_MCH_ID}
mch-key
:
${WX_MCH_KEY}
notify-url
:
${WX_NOTIFY_URL}
\ No newline at end of file
litemall-wx-api/src/main/resources/application.properties
View file @
cc441db1
spring.profiles.active
=
d
ev
spring.profiles.active
=
d
ocker
server.port
=
8082
logging.level.org.linlinjava.litemall.wx.Application
=
DEBUG
litemall-wx/project.config.json
View file @
cc441db1
...
...
@@ -9,8 +9,8 @@
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"1.9.93"
,
"appid"
:
"wx
a5b486c6b918ecfb
"
,
"projectname"
:
"
litemall-wx
"
,
"appid"
:
"wx
3d9beeb7481eddd3
"
,
"projectname"
:
"
%E5%BE%AE%E5%A6%9E%E6%89%AB%E7%A0%81%E8%B4%AD
"
,
"condition"
:
{
"search"
:
{
"current"
:
-1
,
...
...
Write
Preview
Supports
Markdown
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