diff --git a/confluent-kafka.yaml b/confluent-kafka.yaml index c4e447c4219..ebef0ca5b9d 100644 --- a/confluent-kafka.yaml +++ b/confluent-kafka.yaml @@ -50,11 +50,20 @@ pipeline: tar -xzvf core/build/distributions/kafka_*-${{vars.mangled-package-version}}.tgz mkdir -p ${{targets.destdir}}/usr/lib/kafka/logs + mkdir -p ${{targets.destdir}}/etc/kafka + mkdir -p ${{targets.destdir}}/var/lib/kafka/data mv kafka_*-${{vars.mangled-package-version}}/bin ${{targets.destdir}}/usr/lib/kafka mv kafka_*-${{vars.mangled-package-version}}/libs ${{targets.destdir}}/usr/lib/kafka mv kafka_*-${{vars.mangled-package-version}}/config ${{targets.destdir}}/usr/lib/kafka + # Install required runtime scripts + mkdir -p ${{targets.destdir}}/usr/bin + for file in $(find ./bin -type f -exec grep -lE '^#!(/usr/bin/env |/bin/)' {} \;); do + filename=$(basename "$f") + install -D -m755 "$file" ${{targets.destdir}}/usr/bin/"$filename" + done + # Clean up windows rm -rf ${{targets.destdir}}/usr/lib/kafka/bin/*.bat