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
Jeepay
Commits
e421ad1f
"jetbrains:/idea/checkout/git" did not exist on "9fc052490159b2a586ed5878b1623108967cdf61"
Commit
e421ad1f
authored
Aug 25, 2017
by
maxiucheng
Browse files
更新docker
parent
7065e258
Changes
14
Show whitespace changes
Inline
Side-by-side
xxpay4spring-cloud/docker-compose.yml
0 → 100644
View file @
e421ad1f
eureka
:
image
:
"
xxpay-server:1.0.0"
volumes
:
-
/log:/log
hostname
:
eureka
ports
:
-
"
2000:2000"
net
:
"
host"
config
:
image
:
"
xxpay-config:1.0.0"
volumes
:
-
/log:/app/log
hostname
:
config
environment
:
EUREKA_HOST
:
eureka
EUREKA_PORT
:
2000
ports
:
-
"
2020:2020"
net
:
"
host"
service
:
image
:
"
xxpay-service:1.0.0"
volumes
:
-
/log:/app/log
hostname
:
service
environment
:
EUREKA_HOST
:
eureka
EUREKA_PORT
:
2000
SERVER_PORT
:
3000
ports
:
-
"
3000:3000"
net
:
"
host"
web
:
image
:
"
xxpay-web:1.0.0"
volumes
:
-
/log:/app/log
hostname
:
web
environment
:
EUREKA_HOST
:
eureka
EUREKA_PORT
:
2000
SERVER_PORT
:
3010
ports
:
-
"
3010:3010"
net
:
"
host"
zuul
:
image
:
"
xxpay-gateway:1.0.0"
volumes
:
-
/log:/app/log
hostname
:
zuul
environment
:
EUREKA_HOST
:
eureka
EUREKA_PORT
:
2000
ports
:
-
"
3020:3020"
net
:
"
host"
\ No newline at end of file
xxpay4spring-cloud/pom.xml
View file @
e421ad1f
...
...
@@ -70,5 +70,17 @@
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<version>
0.4.13
</version>
<configuration>
<skipDockerBuild>
true
</skipDockerBuild>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
xxpay4spring-cloud/xxpay-config/pom.xml
View file @
e421ad1f
...
...
@@ -36,6 +36,23 @@
<finalName>
${project.name}
</finalName>
</configuration>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<configuration>
<dockerHost>
http://192.168.188.165:2375
</dockerHost>
<imageName>
${project.name}:${project.version}
</imageName>
<dockerDirectory>
${project.basedir}/src/main/docker
</dockerDirectory>
<skipDockerBuild>
false
</skipDockerBuild>
<resources>
<resource>
<targetPath>
/
</targetPath>
<directory>
${project.build.directory}
</directory>
<include>
${project.artifactId}.jar
</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</build>
...
...
xxpay4spring-cloud/xxpay-gateway/pom.xml
View file @
e421ad1f
...
...
@@ -32,6 +32,23 @@
<finalName>
${project.name}
</finalName>
</configuration>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<configuration>
<dockerHost>
http://192.168.188.165:2375
</dockerHost>
<imageName>
${project.name}:${project.version}
</imageName>
<dockerDirectory>
${project.basedir}/src/main/docker
</dockerDirectory>
<skipDockerBuild>
false
</skipDockerBuild>
<resources>
<resource>
<targetPath>
/
</targetPath>
<directory>
${project.build.directory}
</directory>
<include>
${project.artifactId}.jar
</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</build>
...
...
xxpay4spring-cloud/xxpay-gateway/src/main/docker/Dockerfile
0 → 100644
View file @
e421ad1f
FROM
java:8
VOLUME
/tmp
RUN
mkdir
/app
ADD
xxpay-gateway.jar /app/app.jar
ADD
runboot.sh /app/
RUN
bash
-c
'touch /app/app.jar'
WORKDIR
/app
RUN
chmod
a+x runboot.sh
EXPOSE
3020
CMD
/app/runboot.sh
\ No newline at end of file
xxpay4spring-cloud/xxpay-gateway/src/main/docker/runboot.sh
0 → 100644
View file @
e421ad1f
#!/usr/bin/env bash
sleep
150
java
-Djava
.security.egd
=
file:/dev/./urandom
-jar
/app/app.jar
\ No newline at end of file
xxpay4spring-cloud/xxpay-server/pom.xml
View file @
e421ad1f
...
...
@@ -4,11 +4,11 @@
<modelVersion>
4.0.0
</modelVersion>
<groupId>
org.xxpay
</groupId>
<artifactId>
xxpay-serve
r
</artifactId>
<artifactId>
xxpay-serv
ic
e
</artifactId>
<version>
1.0.0
</version>
<packaging>
jar
</packaging>
<name>
xxpay-serve
r
</name>
<description>
xxpay-serve
r
</description>
<name>
xxpay-serv
ic
e
</name>
<description>
xxpay-serv
ic
e
</description>
<parent>
<groupId>
org.xxpay
</groupId>
...
...
@@ -18,12 +18,68 @@
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-eureka-server
</artifactId>
<groupId>
org.xxpay
</groupId>
<artifactId>
xxpay-dal
</artifactId>
<version>
1.0.0
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-activemq
</artifactId>
</dependency>
<dependency>
<groupId>
org.mybatis.spring.boot
</groupId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
<version>
1.3.0
</version>
</dependency>
<!--wx_pay-->
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpcore
</artifactId>
<version>
4.3.2
</version>
</dependency>
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpclient
</artifactId>
<version>
4.3.5
</version>
</dependency>
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpclient-cache
</artifactId>
<version>
4.3.5
</version>
</dependency>
<dependency>
<groupId>
com.thoughtworks.xstream
</groupId>
<artifactId>
xstream
</artifactId>
<version>
1.4.7
</version>
</dependency>
<!--ali_pay-->
<dependency>
<groupId>
com.alipay
</groupId>
<artifactId>
sdk
</artifactId>
<version>
1.5
</version>
<scope>
system
</scope>
<systemPath>
${basedir}/src/main/webapp/WEB-INF/lib/alipay-sdk-java20170818173712.jar
</systemPath>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>
src/main/webapp/WEB-INF/lib/
</directory>
<targetPath>
BOOT-INF/lib/
</targetPath>
<includes>
<include>
**/*.jar
</include>
</includes>
</resource>
<resource>
<directory>
src/main/resources
</directory>
<targetPath>
BOOT-INF/classes/
</targetPath>
</resource>
<resource>
<directory>
src/main/resources
</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
...
...
@@ -32,6 +88,23 @@
<finalName>
${project.name}
</finalName>
</configuration>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<configuration>
<dockerHost>
http://192.168.188.165:2375
</dockerHost>
<imageName>
${project.name}:${project.version}
</imageName>
<dockerDirectory>
${project.basedir}/src/main/docker
</dockerDirectory>
<skipDockerBuild>
false
</skipDockerBuild>
<resources>
<resource>
<targetPath>
/
</targetPath>
<directory>
${project.build.directory}
</directory>
<include>
${project.artifactId}.jar
</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</build>
...
...
xxpay4spring-cloud/xxpay-server/src/main/docker/Dockerfile
0 → 100644
View file @
e421ad1f
FROM
java:8
VOLUME
/tmp
ADD
xxpay-server.jar /app.jar
RUN
bash
-c
'touch /app.jar'
CMD
["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
\ No newline at end of file
xxpay4spring-cloud/xxpay-service/pom.xml
View file @
e421ad1f
...
...
@@ -88,6 +88,23 @@
<finalName>
${project.name}
</finalName>
</configuration>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<configuration>
<dockerHost>
http://192.168.188.165:2375
</dockerHost>
<imageName>
${project.name}:${project.version}
</imageName>
<dockerDirectory>
${project.basedir}/src/main/docker
</dockerDirectory>
<skipDockerBuild>
false
</skipDockerBuild>
<resources>
<resource>
<targetPath>
/
</targetPath>
<directory>
${project.build.directory}
</directory>
<include>
${project.artifactId}.jar
</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</build>
...
...
xxpay4spring-cloud/xxpay-service/src/main/docker/Dockerfile
0 → 100644
View file @
e421ad1f
FROM
java:8
VOLUME
/tmp
RUN
mkdir
/app
ADD
xxpay-service.jar /app/app.jar
ADD
runboot.sh /app/
RUN
bash
-c
'touch /app/app.jar'
WORKDIR
/app
RUN
chmod
a+x runboot.sh
EXPOSE
3000
CMD
/app/runboot.sh
\ No newline at end of file
xxpay4spring-cloud/xxpay-service/src/main/docker/runboot.sh
0 → 100644
View file @
e421ad1f
#!/usr/bin/env bash
sleep
90
java
-Djava
.security.egd
=
file:/dev/./urandom
-jar
/app/app.jar
\ No newline at end of file
xxpay4spring-cloud/xxpay-web/pom.xml
View file @
e421ad1f
...
...
@@ -45,6 +45,23 @@
<finalName>
${project.name}
</finalName>
</configuration>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
docker-maven-plugin
</artifactId>
<configuration>
<dockerHost>
http://192.168.188.165:2375
</dockerHost>
<imageName>
${project.name}:${project.version}
</imageName>
<dockerDirectory>
${project.basedir}/src/main/docker
</dockerDirectory>
<skipDockerBuild>
false
</skipDockerBuild>
<resources>
<resource>
<targetPath>
/
</targetPath>
<directory>
${project.build.directory}
</directory>
<include>
${project.artifactId}.jar
</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</build>
...
...
xxpay4spring-cloud/xxpay-web/src/main/docker/Dockerfile
0 → 100644
View file @
e421ad1f
FROM
java:8
VOLUME
/tmp
RUN
mkdir
/app
ADD
xxpay-web.jar /app/app.jar
ADD
runboot.sh /app/
RUN
bash
-c
'touch /app/app.jar'
WORKDIR
/app
RUN
chmod
a+x runboot.sh
EXPOSE
3010
CMD
/app/runboot.sh
\ No newline at end of file
xxpay4spring-cloud/xxpay-web/src/main/docker/runboot.sh
0 → 100644
View file @
e421ad1f
#!/usr/bin/env bash
sleep
120
java
-Djava
.security.egd
=
file:/dev/./urandom
-jar
/app/app.jar
\ No newline at end of file
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