Commit 47b78057 by huluobin

# update

parent 3d2e3cdb
......@@ -63,7 +63,6 @@
</executions>
</plugin>
<!-- docker的maven插件,官网:https://github.com/spotify/docker-maven-plugin -->
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
......
......@@ -10,6 +10,10 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<properties>
<maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
</properties>
<artifactId>base-sync-purchase-details</artifactId>
<dependencies>
......@@ -31,19 +35,52 @@
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<archive>
<manifest>
<mainClass>com.bailuntec.Application</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>repackage</goal>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>1.0.0</version>
<configuration>
<!--镜像名称:镜像版本-->
<skipDockerBuild>false</skipDockerBuild>
<imageName>
ccr.ccs.tencentyun.com/blt.data.center/base-sync-purchase-details:${maven.build.timestamp}
</imageName>
<dockerDirectory>src/main/docker</dockerDirectory>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
<serverId>bailuntec-docker</serverId>
</configuration>
</plugin>
</plugins>
<resources>
......
FROM openjdk:8-jdk-alpine
VOLUME /tmp
ADD base-sync-purchase-details-1.0-SNAPSHOT.jar base-sync-purchase-details-1.0-SNAPSHOT.jar
RUN echo "Asia/Shanghai" > /etc/timezone
ENTRYPOINT ["java","-jar","/base-sync-purchase-details-1.0-SNAPSHOT.jar"]
EXPOSE 8080
......@@ -28,7 +28,7 @@
<module>base-sync-shopify</module>
<!--deprecate-->
<!-- <module>base-sync-purchase-details</module>-->
<module>base-sync-purchase-details</module>
<!-- <module>base-sync-finance-fee</module>-->
<!-- <module>base-sync-amazon-ad</module>-->
<!-- <module>base-sync-cashier</module>-->
......
......@@ -12,7 +12,7 @@ NAME_SPACE=data-center
JOB_NAME=show-auto-turnover41
#JOB_CRON=0 0 3 * * ?
JOB_CRON=0 40 16 * * ?
JOB_CRON=0 30 15 * * ?
SHARDING_TOTAL_COUNT=8
JOB_NAME_NE_NORMAL=show-auto-turnover-ne-normal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment