From 0316ab13d5883042b5645606cf0e259260a5c0c3 Mon Sep 17 00:00:00 2001 From: Rajat Date: Wed, 13 Dec 2023 10:39:42 -0800 Subject: [PATCH] fixing bitnami Signed-off-by: Rajat --- .../fluent-bit/bitnami/config/fluent-bit.config | 10 +--------- .../fluent-bit/bitnami/config/plugins.config | 2 ++ community_images/fluent-bit/bitnami/dc_coverage.sh | 2 ++ community_images/fluent-bit/bitnami/docker-compose.yml | 4 +--- community_images/fluent-bit/bitnami/k8s_coverage.sh | 0 5 files changed, 6 insertions(+), 12 deletions(-) create mode 100644 community_images/fluent-bit/bitnami/config/plugins.config mode change 100644 => 100755 community_images/fluent-bit/bitnami/dc_coverage.sh mode change 100644 => 100755 community_images/fluent-bit/bitnami/k8s_coverage.sh diff --git a/community_images/fluent-bit/bitnami/config/fluent-bit.config b/community_images/fluent-bit/bitnami/config/fluent-bit.config index 5d3a9deddc..45c2002402 100644 --- a/community_images/fluent-bit/bitnami/config/fluent-bit.config +++ b/community_images/fluent-bit/bitnami/config/fluent-bit.config @@ -22,15 +22,7 @@ # by default 'info' is set, that means it includes 'error' and 'warning'. log_level info - # Parsers File - # ============ - # specify an optional 'Parsers' configuration file - #parsers_file parsers.conf - - # Plugins File - # ============ - # specify an optional 'Plugins' configuration file to load external plugins. - #plugins_file plugins.conf + # HTTP Server # =========== diff --git a/community_images/fluent-bit/bitnami/config/plugins.config b/community_images/fluent-bit/bitnami/config/plugins.config new file mode 100644 index 0000000000..55c5a8d395 --- /dev/null +++ b/community_images/fluent-bit/bitnami/config/plugins.config @@ -0,0 +1,2 @@ +[PLUGINS] + # Path /path/to/out_gstdout.so diff --git a/community_images/fluent-bit/bitnami/dc_coverage.sh b/community_images/fluent-bit/bitnami/dc_coverage.sh old mode 100644 new mode 100755 index 6c0bb3f9fb..6aaf37e89a --- a/community_images/fluent-bit/bitnami/dc_coverage.sh +++ b/community_images/fluent-bit/bitnami/dc_coverage.sh @@ -19,6 +19,8 @@ sleep 10 # log for debugging docker inspect "${CONTAINER_NAME}" +docker cp "${SCRIPTPATH}"/config/plugins.config "${CONTAINER_NAME}":/opt/bitnami/fluent-bit/conf/plugins.conf +sleep 5 docker cp "${SCRIPTPATH}"/config/fluent-bit.config "${CONTAINER_NAME}":/tmp/fluent-bit.config sleep 10 docker cp "${SCRIPTPATH}"/scripts/fluent-bit_coverage_script.sh "${CONTAINER_NAME}":/tmp/fluent-bit_coverage_script.sh diff --git a/community_images/fluent-bit/bitnami/docker-compose.yml b/community_images/fluent-bit/bitnami/docker-compose.yml index 8a86804a84..35180c4d3a 100644 --- a/community_images/fluent-bit/bitnami/docker-compose.yml +++ b/community_images/fluent-bit/bitnami/docker-compose.yml @@ -3,12 +3,10 @@ version: '2' services: fluent-bit: image: ${FLUENT_BIT_IMAGE_REPOSITORY}:${FLUENT_BIT_IMAGE_TAG} - volumes: - - ./scripts/fluent-bit_coverage_script.sh:/tmp/coverage_script.sh cap_add: - SYS_PTRACE ports: - - '2020:2020' + - '8020:8020' prometheus: image: docker.io/rapidfort/prometheus diff --git a/community_images/fluent-bit/bitnami/k8s_coverage.sh b/community_images/fluent-bit/bitnami/k8s_coverage.sh old mode 100644 new mode 100755