[3.0] [flink-cdc-dist] Collect all distro resources into a TAR (#2636)
This closes #2621 #2622 Co-authored-by: Qingsheng Ren <renqschn@gmail.com>pull/2791/head
parent
f57d6f6e67
commit
1a5065e774
@ -0,0 +1,67 @@
|
|||||||
|
<!--
|
||||||
|
Copyright 2023 Ververica Inc.
|
||||||
|
|
||||||
|
Licensed 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>
|
||||||
|
<id>dist</id>
|
||||||
|
<formats>
|
||||||
|
<format>dir</format>
|
||||||
|
<format>tar.gz</format>
|
||||||
|
</formats>
|
||||||
|
|
||||||
|
<includeBaseDirectory>true</includeBaseDirectory>
|
||||||
|
<baseDirectory>flink-cdc-${revision}</baseDirectory>
|
||||||
|
|
||||||
|
<files>
|
||||||
|
<!-- copy flink-cdc-dist uber jar -->
|
||||||
|
<file>
|
||||||
|
<source>target/flink-cdc-dist-${revision}.jar</source>
|
||||||
|
<outputDirectory>lib</outputDirectory>
|
||||||
|
<destName>flink-cdc-dist-${revision}.jar</destName>
|
||||||
|
<fileMode>0644</fileMode>
|
||||||
|
</file>
|
||||||
|
</files>
|
||||||
|
|
||||||
|
<fileSets>
|
||||||
|
<!-- copy start scripts -->
|
||||||
|
<fileSet>
|
||||||
|
<directory>src/main/flink-cdc-bin/bin</directory>
|
||||||
|
<outputDirectory>bin</outputDirectory>
|
||||||
|
<fileMode>0755</fileMode>
|
||||||
|
</fileSet>
|
||||||
|
|
||||||
|
<!-- copy conf directory -->
|
||||||
|
<fileSet>
|
||||||
|
<directory>src/main/flink-cdc-bin/conf</directory>
|
||||||
|
<outputDirectory>conf</outputDirectory>
|
||||||
|
<fileMode>0644</fileMode>
|
||||||
|
</fileSet>
|
||||||
|
|
||||||
|
<!-- copy flink-cdc fat jar -->
|
||||||
|
<fileSet>
|
||||||
|
<directory>src/main/flink-cdc-bin/lib</directory>
|
||||||
|
<outputDirectory>lib</outputDirectory>
|
||||||
|
<fileMode>0644</fileMode>
|
||||||
|
</fileSet>
|
||||||
|
|
||||||
|
<!-- create an empty log directory -->
|
||||||
|
<fileSet>
|
||||||
|
<directory>src/main/flink-cdc-bin/</directory>
|
||||||
|
<outputDirectory>log</outputDirectory>
|
||||||
|
<fileMode>0644</fileMode>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/*</exclude>
|
||||||
|
</excludes>
|
||||||
|
</fileSet>
|
||||||
|
</fileSets>
|
||||||
|
</assembly>
|
@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
################################################################################
|
||||||
|
# Copyright 2023 Ververica Inc.
|
||||||
|
#
|
||||||
|
# Licensed 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.
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
<!--
|
||||||
|
Copyright 2023 Ververica Inc.
|
||||||
|
|
||||||
|
Licensed 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.
|
||||||
|
-->
|
@ -0,0 +1,34 @@
|
|||||||
|
#
|
||||||
|
# Copyright 2023 Ververica Inc.
|
||||||
|
#
|
||||||
|
# Licensed 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
# Allows this configuration to be modified at runtime. The file will be checked every 30 seconds.
|
||||||
|
monitorInterval=30
|
||||||
|
|
||||||
|
rootLogger.level = ${env:ROOT_LOG_LEVEL:-INFO}
|
||||||
|
rootLogger.appenderRef.file.ref = FileAppender
|
||||||
|
|
||||||
|
# Log all infos in the given file
|
||||||
|
appender.file.name = FileAppender
|
||||||
|
appender.file.type = FILE
|
||||||
|
appender.file.append = false
|
||||||
|
appender.file.fileName = ${sys:log.file}
|
||||||
|
appender.file.layout.type = PatternLayout
|
||||||
|
appender.file.layout.pattern = %d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %-60c %x - %m%n
|
||||||
|
|
||||||
|
appender.console.name = ConsoleAppender
|
||||||
|
appender.console.type = CONSOLE
|
||||||
|
appender.console.layout.type = PatternLayout
|
||||||
|
appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %-60c %x - %m%n
|
Loading…
Reference in New Issue