forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfluent-common-docker.yaml
71 lines (62 loc) · 2.31 KB
/
confluent-common-docker.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
70
71
package:
name: confluent-common-docker
version: 7.6.0
epoch: 8
description: Confluent Commons with support for building and testing Docker images.
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- curl
- maven
- openjdk-17
- openjdk-17-default-jvm
pipeline:
- uses: git-checkout
with:
expected-commit: 1517960f490072414719d11cdb66e5a183ee45dc
repository: https://github.com/confluentinc/common-docker
tag: v${{package.version}}
- uses: maven/pombump
- runs: |
# Add missing repository to pom.xml to resolve 'io.confluent:common:pom'.
sed -i '/<\/project>/i \ <repositories>\n <repository>\n <id>confluent</id>\n <url>https://packages.confluent.io/maven/</url>\n </repository>\n </repositories>' pom.xml
mvn clean package -DskipTests
mkdir -p ${{targets.destdir}}/usr/share/java/cp-base-new
mv /home/build/utility-belt/target/utility-belt-${{package.version}}.jar ${{targets.destdir}}/usr/share/java/cp-base-new/utility-belt.jar
mv /home/build/docker-utils/target/docker-utils-*-jar-with-dependencies.jar ${{targets.destdir}}/usr/share/java/cp-base-new/docker-utils-jar-with-dependencies.jar
subpackages:
# https://github.com/confluentinc/common-docker/tree/master/base
- name: ${{package.name}}-base
description: "This repo provides build files for the Confluent Platform Docker images."
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/etc/confluent/docker
cp -r base/include/etc/confluent/docker/* "${{targets.subpkgdir}}"/etc/confluent/docker/
chmod -R 755 ${{targets.subpkgdir}}/etc/confluent/docker
# https://github.com/confluentinc/common-docker/tree/master/base-lite/ub
- name: ${{package.name}}-ub
description: "ub tool for base-lite"
pipeline:
- uses: go/build
with:
modroot: ./base-lite/ub
packages: .
output: ub
ldflags: "-s -w"
- uses: strip
update:
enabled: false
exclude-reason: >
Upstream repo doesn't provide any jars/poms past 7.6.0: https://packages.confluent.io/maven/io/confluent/common/
test:
environment:
contents:
packages:
- confluent-common-docker-ub
pipeline:
- runs: |
ub -h