feat: Server mode Docker packaging function migrated to the root directory

pull/1273/head
李剑鑫 2 years ago
parent ad496be50c
commit 2b5b408c62

5
.gitignore vendored

@ -46,3 +46,8 @@ build/
docs/node_modules
docs/build
docs/.docusaurus
### Docker ###
docker/threadpool/server/conf
docker/threadpool/server/target

@ -34,10 +34,11 @@ hippo4j/hippo4j-server
方式一:
```shell
# 进入到 hippo4j-server/hippo4j-bootstrap 工程路径下
# 进入到 threadpool/server/bootstrap 工程路径下
mvn clean package -Dskip.spotless.apply=true
# 进入到 docker/threadpool/server 工程路径下
# 默认打包是打包的 tag 是 latest
docker build -t hippo4j/hippo4j-server ../hippo4j-bootstrap
docker build -t hippo4j/hippo4j-server ../server
```
方式二:

@ -57,6 +57,49 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<encoding>UTF-8</encoding>
<outputDirectory>../../../docker/threadpool/server/conf/</outputDirectory>
<resources>
<resource>
<directory>conf</directory>
<includes>
<include>hippo4j-logback.xml</include>
<include>application.properties</include>
<include>application-h2.properties</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-build</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<encoding>UTF-8</encoding>
<outputDirectory>../../../docker/threadpool/server/target</outputDirectory>
<resources>
<resource>
<directory>target</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>

Loading…
Cancel
Save