Skip to content

Commit

Permalink
fix(logstash-8): bitnami build issue and missing deps
Browse files Browse the repository at this point in the history
Signed-off-by: Dentrax <[email protected]>
  • Loading branch information
Dentrax committed Jan 17, 2025
1 parent 146ac34 commit ad4e41a
Showing 1 changed file with 29 additions and 14 deletions.
43 changes: 29 additions & 14 deletions logstash-8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package:
name: logstash-8
version: 8.17.0
epoch: 0
epoch: 1
description: Logstash - transport and process your logs, events, or other data
copyright:
- license: Apache-2.0
Expand All @@ -28,7 +28,8 @@ package:
runtime:
- bash # some helper scripts use bash and busybox utilities
- busybox
- openjdk-17-default-jvm
- openjdk-17
- openjdk-17-default-jdk

# Create a new major-version variable that contains only the major version
# to use in the bitnami/compat pipeline to find out the correct folder for the image.
Expand All @@ -43,16 +44,24 @@ environment:
contents:
packages:
- bash
- busybox
- ca-certificates-bundle
- coreutils
- curl
- findutils
- glibc-locale-en
- glibc-locales
- gradle
- grep
- jq
- jruby-9.4
- logstash-filter-xml
- logstash-integration-jdbc
- logstash-output-opensearch
- net-tools
- openjdk-17-default-jdk
- posix-libc-utils
- sed
- yq
environment:
OSS: "true"
LOGSTASH_SOURCE: "1"
Expand Down Expand Up @@ -178,20 +187,25 @@ subpackages:
runtime:
- bash # some helper scripts use bash and busybox utilities
- busybox
- yq
- coreutils
- findutils
- posix-libc-utils # Required for getent
- openjdk-17-jre
- openjdk-17-default-jvm
- glibc-locales
- glibc-locale-en
- net-tools
- sed
- grep
- yq
pipeline:
- uses: bitnami/compat
with:
image: logstash
version-path: ${{vars.major-version}}/debian-12
- runs: |
mkdir -p ${{targets.subpkgdir}}/opt/bitnami/logstash
mkdir -p ${{targets.subpkgdir}}/opt/bitnami/scripts/logstash/
chmod g+rwX ${{targets.subpkgdir}}/opt/bitnami
mkdir -p ${{targets.contextdir}}/opt/bitnami/logstash
mkdir -p ${{targets.contextdir}}/opt/bitnami/logstash/pipeline
mkdir -p ${{targets.contextdir}}/opt/bitnami/scripts/logstash/
mkdir -p ${{targets.contextdir}}/opt/bitnami/logstash/config/./
src=docker/data/logstash
dst="${{targets.contextdir}}/opt/bitnami/logstash"
Expand Down Expand Up @@ -228,9 +242,6 @@ subpackages:
# Restore path
find ${{targets.contextdir}}/opt/bitnami -type f -exec sed 's#${{targets.contextdir}}##g' -i {} \;
chmod -R u+rwX,g+rwX,o+rw ${{targets.subpkgdir}}/opt/bitnami/
find / -perm /6000 -type f -exec chmod a-s {} \; || true
# Link binaries used by Bitnami config
ln -sf /opt/bitnami/scripts/logstash/entrypoint.sh ${{targets.contextdir}}/entrypoint.sh
ln -sf /opt/bitnami/scripts/logstash/run.sh ${{targets.contextdir}}/run.sh
Expand All @@ -250,14 +261,18 @@ subpackages:
# also have a custom logstash.yml
rm "${{targets.subpkgdir}}"/opt/bitnami/logstash/config.default/logstash.yml
install -Dm755 logstash.custom.yml "${{targets.subpkgdir}}"/opt/bitnami/logstash/config.default/logstash.yml
- runs: |
find "${{targets.contextdir}}/opt/bitnami" \
-path "${{targets.contextdir}}/opt/bitnami/logstash/vendor" -prune -o \
-exec chmod u+rwX,g+rwX,o+rw {} \;
find / -perm /6000 -type f -exec chmod a-s {} \; || true
test:
environment:
contents:
packages:
- bash
- curl
- busybox
- openjdk-17-default-jvm
accounts:
groups:
- groupname: logstash
Expand Down

0 comments on commit ad4e41a

Please sign in to comment.