Skip to content

Commit

Permalink
auto build docker-compose script zip (#1543)
Browse files Browse the repository at this point in the history
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: Logic <zqr10159@dromara.org>
  • Loading branch information
tomsun28 and zqr10159 authored Feb 8, 2024
1 parent 38e47f0 commit 45e05bb
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
14 changes: 14 additions & 0 deletions manager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,20 @@
</descriptors>
</configuration>
</execution>
<execution>
<id>make-docker-compose-script</id>
<!--绑定的maven操作-->
<phase>package</phase>
<!--运行一次-->
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>../script/assembly/server/assembly-docker-compose.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down
78 changes: 78 additions & 0 deletions script/assembly/server/assembly-docker-compose.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd
http://maven.apache.org/ASSEMBLY/2.0.0 ">
<!--必填,会追加到打包文件名称的末尾-->
<id>docker-compose</id>
<!--打包类型,可以设置多种类型,打包的时候不同的类型都会打包打出来-->
<formats>
<format>zip</format>
</formats>

<fileSets>
<fileSet>
<directory>../script/docker-compose/hertzbeat-mysql-iotdb</directory>
<filtered>true</filtered>
<includes>
<include>conf/**</include>
<include>*.yaml</include>
<include>*.md</include>
</includes>
<outputDirectory>hertzbeat-mysql-iotdb</outputDirectory>
</fileSet>
<fileSet>
<directory>../script/docker-compose/hertzbeat-mysql-tdengine</directory>
<filtered>true</filtered>
<includes>
<include>conf/**</include>
<include>*.yaml</include>
<include>*.md</include>
</includes>
<outputDirectory>hertzbeat-mysql-tdengine</outputDirectory>
</fileSet>
<fileSet>
<directory>../script/docker-compose/hertzbeat-mysql-victoria-metrics</directory>
<filtered>true</filtered>
<includes>
<include>conf/**</include>
<include>*.yaml</include>
<include>*.md</include>
</includes>
<outputDirectory>hertzbeat-mysql-victoria-metrics</outputDirectory>
</fileSet>
<fileSet>
<directory>../script/docker-compose/hertzbeat-postgresql-iotdb</directory>
<filtered>true</filtered>
<includes>
<include>conf/**</include>
<include>*.yaml</include>
<include>*.md</include>
</includes>
<outputDirectory>hertzbeat-postgresql-iotdb</outputDirectory>
</fileSet>
<fileSet>
<directory>../script/docker-compose</directory>
<filtered>true</filtered>
<includes>
<include>README.md</include>
</includes>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
</assembly>

0 comments on commit 45e05bb

Please sign in to comment.