Skip to content

Commit 6465bd6

Browse files
committed
fix(logstash-8): bitnami build issue and missing deps
Signed-off-by: Dentrax <[email protected]>
1 parent aa60385 commit 6465bd6

File tree

1 file changed

+38
-16
lines changed

1 file changed

+38
-16
lines changed

logstash-8.yaml

+38-16
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package:
1818
name: logstash-8
1919
version: 8.17.0
20-
epoch: 0
20+
epoch: 1
2121
description: Logstash - transport and process your logs, events, or other data
2222
copyright:
2323
- license: Apache-2.0
@@ -28,7 +28,8 @@ package:
2828
runtime:
2929
- bash # some helper scripts use bash and busybox utilities
3030
- busybox
31-
- openjdk-17-default-jvm
31+
- openjdk-17
32+
- openjdk-17-default-jdk
3233

3334
# Create a new major-version variable that contains only the major version
3435
# to use in the bitnami/compat pipeline to find out the correct folder for the image.
@@ -43,16 +44,24 @@ environment:
4344
contents:
4445
packages:
4546
- bash
46-
- busybox
4747
- ca-certificates-bundle
48+
- coreutils
4849
- curl
50+
- findutils
51+
- glibc-locale-en
52+
- glibc-locales
4953
- gradle
54+
- grep
5055
- jq
5156
- jruby-9.4
5257
- logstash-filter-xml
5358
- logstash-integration-jdbc
5459
- logstash-output-opensearch
60+
- net-tools
5561
- openjdk-17-default-jdk
62+
- posix-libc-utils
63+
- sed
64+
- yq
5665
environment:
5766
OSS: "true"
5867
LOGSTASH_SOURCE: "1"
@@ -178,20 +187,25 @@ subpackages:
178187
runtime:
179188
- bash # some helper scripts use bash and busybox utilities
180189
- busybox
181-
- yq
190+
- coreutils
191+
- findutils
182192
- posix-libc-utils # Required for getent
183-
- openjdk-17-jre
184-
- openjdk-17-default-jvm
193+
- glibc-locales
194+
- glibc-locale-en
195+
- net-tools
196+
- sed
197+
- grep
198+
- yq
185199
pipeline:
186200
- uses: bitnami/compat
187201
with:
188202
image: logstash
189203
version-path: ${{vars.major-version}}/debian-12
190204
- runs: |
191-
mkdir -p ${{targets.subpkgdir}}/opt/bitnami/logstash
192-
mkdir -p ${{targets.subpkgdir}}/opt/bitnami/scripts/logstash/
193-
194-
chmod g+rwX ${{targets.subpkgdir}}/opt/bitnami
205+
mkdir -p ${{targets.contextdir}}/opt/bitnami/logstash
206+
mkdir -p ${{targets.contextdir}}/opt/bitnami/logstash/pipeline
207+
mkdir -p ${{targets.contextdir}}/opt/bitnami/scripts/logstash/
208+
mkdir -p ${{targets.contextdir}}/opt/bitnami/logstash/config/./
195209
196210
src=docker/data/logstash
197211
dst="${{targets.contextdir}}/opt/bitnami/logstash"
@@ -228,9 +242,6 @@ subpackages:
228242
# Restore path
229243
find ${{targets.contextdir}}/opt/bitnami -type f -exec sed 's#${{targets.contextdir}}##g' -i {} \;
230244
231-
chmod -R u+rwX,g+rwX,o+rw ${{targets.subpkgdir}}/opt/bitnami/
232-
find / -perm /6000 -type f -exec chmod a-s {} \; || true
233-
234245
# Link binaries used by Bitnami config
235246
ln -sf /opt/bitnami/scripts/logstash/entrypoint.sh ${{targets.contextdir}}/entrypoint.sh
236247
ln -sf /opt/bitnami/scripts/logstash/run.sh ${{targets.contextdir}}/run.sh
@@ -250,14 +261,19 @@ subpackages:
250261
# also have a custom logstash.yml
251262
rm "${{targets.subpkgdir}}"/opt/bitnami/logstash/config.default/logstash.yml
252263
install -Dm755 logstash.custom.yml "${{targets.subpkgdir}}"/opt/bitnami/logstash/config.default/logstash.yml
264+
- runs: |
265+
find "${{targets.contextdir}}/opt/bitnami" \
266+
-path "${{targets.contextdir}}/opt/bitnami/logstash/vendor" -prune -o \
267+
-exec chmod u+rwX,g+rwX,o+rw {} \;
268+
find / -perm /6000 -type f -exec chmod a-s {} \; || true
253269
test:
254270
environment:
255271
contents:
256272
packages:
257273
- bash
258274
- curl
259275
- busybox
260-
- openjdk-17-default-jvm
276+
- openjdk-17
261277
accounts:
262278
groups:
263279
- groupname: logstash
@@ -368,9 +384,9 @@ subpackages:
368384
environment:
369385
contents:
370386
packages:
371-
- wolfi-base
387+
- openjdk-17
372388
environment:
373-
LS_JAVA_HOME: /usr/lib/jvm/default-jvm
389+
LS_JAVA_HOME: /usr/lib/jvm/java-17-openjdk
374390
pipeline:
375391
- name: Ensure output opensearch plugin was installed
376392
runs: |
@@ -382,6 +398,12 @@ subpackages:
382398
grep 'message.*hello'
383399
384400
test:
401+
environment:
402+
contents:
403+
packages:
404+
- openjdk-17
405+
environment:
406+
LS_JAVA_HOME: /usr/lib/jvm/java-17-openjdk
385407
pipeline:
386408
- name: Ensure default plugins were actually installed
387409
runs: |

0 commit comments

Comments
 (0)