Browse Source

vo 补充 2022-4-2 sxm

master
[li_she] 4 years ago
parent
commit
08ff5ff4b7
  1. 4
      Dockerfile
  2. 4
      docker-compose.yml
  3. 87
      pom.xml
  4. 19
      src/main/java/com/gaotao/modules/finishedProduct/vo/SoReceiveBoxesEntityVo.java

4
Dockerfile

@ -1,7 +1,7 @@
FROM java:8
EXPOSE 8080
EXPOSE 8004
VOLUME /tmp
ADD gaotao-fast.jar /app.jar
ADD target/rongxing-java.jar app.jar
RUN bash -c 'touch /app.jar'
ENTRYPOINT ["java","-jar","/app.jar"]

4
docker-compose.yml

@ -1,8 +1,8 @@
version: '2'
services:
gaotao-fast:
image: gaotao/fast
image: 116.62.65.118:2375/root/sxm
ports:
- "8080:8080"
- "8004:8004"
environment:
- spring.profiles.active=dev

87
pom.xml

@ -48,9 +48,9 @@
<!--wagon plugin 配置-->
<service-path>/root/gataofast/java</service-path>
<pack-name>${project.artifactId}-${project.version}.jar</pack-name>
<remote-addr>0.0.0.0:22</remote-addr>
<remote-addr>116.62.165.118:22</remote-addr>
<remote-username>root</remote-username>
<remote-passwd>mima</remote-passwd>
<remote-passwd>951212.Sl</remote-passwd>
</properties>
<dependencies>
@ -356,31 +356,64 @@
</configuration>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.4.14</version>
<!--<executions>-->
<!--<execution>-->
<!--<phase>package</phase>-->
<!--<goals>-->
<!--<goal>build</goal>-->
<!--</goals>-->
<!--</execution>-->
<!--</executions>-->
<configuration>
<imageName>gaotao/fast</imageName>
<dockerDirectory>${project.basedir}</dockerDirectory>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
</configuration>
<!-- 运行命令 mvn clean package docker:build 打包并生成docker镜像 -->
</plugin>
<!-- <plugin>-->
<!-- <groupId>com.spotify</groupId>-->
<!-- <artifactId>docker-maven-plugin</artifactId>-->
<!-- <version>0.4.14</version>-->
<!-- &lt;!&ndash;<executions>&ndash;&gt;-->
<!-- &lt;!&ndash;<execution>&ndash;&gt;-->
<!-- &lt;!&ndash;<phase>package</phase>&ndash;&gt;-->
<!-- &lt;!&ndash;<goals>&ndash;&gt;-->
<!-- &lt;!&ndash;<goal>build</goal>&ndash;&gt;-->
<!-- &lt;!&ndash;</goals>&ndash;&gt;-->
<!-- &lt;!&ndash;</execution>&ndash;&gt;-->
<!-- &lt;!&ndash;</executions>&ndash;&gt;-->
<!-- <configuration>-->
<!-- <imageName>sxm/fast</imageName>-->
<!-- <dockerDirectory>${project.basedir}</dockerDirectory>-->
<!-- <resources>-->
<!-- <resource>-->
<!-- <targetPath>/</targetPath>-->
<!-- <directory>${project.build.directory}</directory>-->
<!-- <include>${project.build.finalName}.jar</include>-->
<!-- </resource>-->
<!-- </resources>-->
<!-- </configuration>-->
<!-- &lt;!&ndash; 运行命令 mvn clean package docker:build 打包并生成docker镜像 &ndash;&gt;-->
<!-- </plugin>-->
<!-- <plugin>-->
<!-- <groupId>com.spotify</groupId>-->
<!-- <artifactId>docker-maven-plugin</artifactId>-->
<!-- <version>1.0.0</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <id>build-image</id>-->
<!-- <phase>package</phase>-->
<!-- <goals>-->
<!-- <goal>build</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- <configuration>-->
<!-- <dockerHost>http://116.62.165.118:2375</dockerHost>-->
<!-- <imageName>sxm/${project.artifactId}</imageName>-->
<!-- <imageTags>-->
<!-- <imageTag>${project.version}</imageTag>-->
<!-- </imageTags>-->
<!-- <forceTags>true</forceTags>-->
<!-- <dockerDirectory>${project.basedir}</dockerDirectory>-->
<!-- <resources>-->
<!-- <resource>-->
<!-- <targetPath>/</targetPath>-->
<!-- <directory>${project.build.directory}</directory>-->
<!-- <include>${project.build.finalName}.jar</include>-->
<!-- </resource>-->
<!-- </resources>-->
<!-- </configuration>-->
<!-- </plugin>-->
</plugins>
</build>

19
src/main/java/com/gaotao/modules/finishedProduct/vo/SoReceiveBoxesEntityVo.java

@ -0,0 +1,19 @@
package com.gaotao.modules.finishedProduct.vo;
import com.gaotao.modules.finishedProduct.entity.SoReceiveBoxesEntity;
import lombok.Data;
import java.util.Date;
/**
* @CLASSNAME SoReceiveBoxesEntityVo
* @AUTHOR sxm
* @DESCRIPTION
* @DATE 2022/4/1 17:25
* @VERSION 1.0
**/
@Data
public class SoReceiveBoxesEntityVo extends SoReceiveBoxesEntity {
private Date startDate;
private Date endDate;
}
Loading…
Cancel
Save