修改pom
This commit is contained in:
parent
2ba531687c
commit
8bcdf53511
|
@ -92,14 +92,14 @@ mvn clean package -Dmaven.test.skip=true
|
||||||
a. jar包启动:
|
a. jar包启动:
|
||||||
|
|
||||||
```plaintext
|
```plaintext
|
||||||
cd adi-chat/target
|
cd adi-bootstrap/target
|
||||||
nohup java -jar -Xms768m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError adi-chat-0.0.1-SNAPSHOT.jar --spring.profiles.active=[dev|prod] dev/null 2>&1 &
|
nohup java -jar -Xms768m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError adi-chat-0.0.1-SNAPSHOT.jar --spring.profiles.active=[dev|prod] dev/null 2>&1 &
|
||||||
```
|
```
|
||||||
|
|
||||||
b. docker启动
|
b. docker启动
|
||||||
|
|
||||||
```plaintext
|
```plaintext
|
||||||
cd adi-chat
|
cd adi-bootstrap
|
||||||
docker build . -t aideepin:0.0.1
|
docker build . -t aideepin:0.0.1
|
||||||
docker run -d \
|
docker run -d \
|
||||||
--name=aideepin \
|
--name=aideepin \
|
||||||
|
|
|
@ -33,5 +33,29 @@
|
||||||
<filtering>true</filtering>
|
<filtering>true</filtering>
|
||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<mainClass>com.moyz.adi.BootstrapApplication</mainClass>
|
||||||
|
<includeSystemScope>true</includeSystemScope>
|
||||||
|
<excludes>
|
||||||
|
<exclude>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
</exclude>
|
||||||
|
</excludes>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>build-info</goal>
|
||||||
|
<goal>repackage</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
|
@ -29,31 +29,4 @@
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<mainClass>com.moyz.adi.BootstrapApplication</mainClass>
|
|
||||||
<includeSystemScope>true</includeSystemScope>
|
|
||||||
<excludes>
|
|
||||||
<exclude>
|
|
||||||
<groupId>org.projectlombok</groupId>
|
|
||||||
<artifactId>lombok</artifactId>
|
|
||||||
</exclude>
|
|
||||||
</excludes>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>build-info</goal>
|
|
||||||
<goal>repackage</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
</project>
|
</project>
|
|
@ -13,7 +13,7 @@ services:
|
||||||
aideepin:
|
aideepin:
|
||||||
image: adi-bootstrap:${IMAGE_VERSION}
|
image: adi-bootstrap:${IMAGE_VERSION}
|
||||||
container_name: aideepin
|
container_name: aideepin
|
||||||
build: ../adi-chat
|
build: ../adi-bootstrap
|
||||||
environment:
|
environment:
|
||||||
APP_VERSION: ${APP_VERSION}
|
APP_VERSION: ${APP_VERSION}
|
||||||
TZ: ${TZ}
|
TZ: ${TZ}
|
||||||
|
|
Loading…
Reference in New Issue