-
Notifications
You must be signed in to change notification settings - Fork 289
/
Copy pathkafka.yaml
69 lines (59 loc) · 1.93 KB
/
kafka.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package:
name: kafka
# When bumping check to see if the CVE mitigation can be removed.
version: 3.7.0
epoch: 1
description: Apache Kafka is a distributed event streaming platformm
copyright:
- paths:
- "*"
attestation:
license: Apache-2.0
dependencies:
runtime:
- bash # some helper scripts use bash
- openjdk-11-jre
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- curl
- gradle
- openjdk-11
- sbt
pipeline:
- uses: git-checkout
with:
repository: https://github.com/apache/kafka
tag: ${{package.version}}
expected-commit: 2ae524ed625438c5fee89e78648bd73e64a3ada0
- runs: |
export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
gradle clean releaseTarGz
tar -xf core/build/distributions/kafka_2.13-${{package.version}}.tgz
mkdir -p ${{targets.destdir}}/usr/lib/kafka/logs
mv kafka_2.13-${{package.version}}/bin ${{targets.destdir}}/usr/lib/kafka
mv kafka_2.13-${{package.version}}/libs ${{targets.destdir}}/usr/lib/kafka
mv kafka_2.13-${{package.version}}/config ${{targets.destdir}}/usr/lib/kafka
# Clean up windows
rm -rf ${{targets.destdir}}/usr/lib/kafka/bin/*.bat
subpackages:
- name: kafka-bitnami-compat
description: "compat package with bitnami/kafka image"
pipeline:
- uses: bitnami/compat
with:
image: kafka
version-path: 3.6/debian-12
- runs: |
mkdir -p ${{targets.subpkgdir}}/opt/bitnami/kafka/
ln -s /usr/lib/kafka/bin ${{targets.subpkgdir}}/opt/bitnami/kafka/bin
ln -s /usr/lib/kafka/libs ${{targets.subpkgdir}}/opt/bitnami/kafka/libs
ln -s /usr/lib/kafka/config ${{targets.subpkgdir}}/opt/bitnami/kafka/config
ln -s /usr/lib/kafka/logs ${{targets.subpkgdir}}/opt/bitnami/kafka/logs
update:
enabled: true
github:
identifier: apache/kafka
use-tag: true