From 4e54faf5af5bb82fd3b8a23353f95d689696b9f5 Mon Sep 17 00:00:00 2001
From: Ajay <ajvictor@in.ibm.com>
Date: Thu, 26 Oct 2023 16:58:49 +0000
Subject: [PATCH] installation: platforms: add s390x to supported architectures

Signed-off-by: Ajay <ajvictor@in.ibm.com>
---
 installation/requirements.md        | 4 +++-
 installation/supported-platforms.md | 4 +++-
 update-release-version-docs.sh      | 4 ++--
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/installation/requirements.md b/installation/requirements.md
index 43fddcd3f..7c10f7244 100644
--- a/installation/requirements.md
+++ b/installation/requirements.md
@@ -1,6 +1,6 @@
 # Requirements
 
-[Fluent Bit](http://fluentbit.io) uses very low CPU and Memory consumption, it's compatible with most of x86, x86\_64, arm32v7 and arm64v8 based platforms. In order to build it you need the following components in your system for the build process:
+[Fluent Bit](http://fluentbit.io) uses very low CPU and Memory consumption, it's compatible with most of x86, x86\_64, arm32v7, arm64v8 based platforms. In order to build it you need the following components in your system for the build process:
 
 * Compiler: GCC or clang
 * CMake
@@ -9,3 +9,5 @@
 
 In the core there are not other dependencies, For certain features that depends on third party components like output plugins with special backend libraries \(e.g: kafka\), those are included in the main source code repository.
 
+Fluent Bit is supported on Linux on IBM Z (s390x) environment without WASM, because building WAMR is not supported as of today on s390x and LuaJIT as well.
+
diff --git a/installation/supported-platforms.md b/installation/supported-platforms.md
index cbe9903db..27a2ad3cb 100644
--- a/installation/supported-platforms.md
+++ b/installation/supported-platforms.md
@@ -14,7 +14,7 @@ The following operating systems and architectures are supported in Fluent Bit.
 |  | [Debian 12 \(Bookworm\)](linux/debian.md) | x86\_64, Arm64v8 |
 |  | [Debian 11 \(Bullseye\)](linux/debian.md) | x86\_64, Arm64v8 |
 |  | [Debian 10 \(Buster\)](linux/debian.md) | x86\_64, Arm64v8 |
-|  | [Ubuntu 22.04 \(Jammy Jellyfish\)](linux/ubuntu.md) | x86\_64, Arm64v8 |
+|  | [Ubuntu 22.04 \(Jammy Jellyfish\)](linux/ubuntu.md) | x86\_64, Arm64v8, s390x |
 |  | [Ubuntu 20.04 \(Focal Fossa\)](linux/ubuntu.md) | x86\_64, Arm64v8 |
 |  | [Ubuntu 18.04 \(Bionic Beaver\)](linux/ubuntu.md) | x86\_64, Arm64v8 |
 |  | [Ubuntu 16.04 \(Xenial Xerus\)](linux/ubuntu.md) | x86\_64 |
@@ -29,3 +29,5 @@ From an architecture support perspective, Fluent Bit is fully functional on x86\
 Fluent Bit can work also on OSX and \*BSD systems, but not all plugins will be available on all platforms.
 Official support will be expanding based on community demand.
 Fluent Bit may run on older operating systems though will need to be built from source, or use custom packages from [enterprise providers](https://fluentbit.io/enterprise).
+
+Fluent Bit is supported on Linux on IBM Z (s390x) environment without WASM, because building WAMR is not supported as of today on s390x and LuaJIT as well.
diff --git a/update-release-version-docs.sh b/update-release-version-docs.sh
index 7201c3b4b..24009c76d 100755
--- a/update-release-version-docs.sh
+++ b/update-release-version-docs.sh
@@ -32,8 +32,8 @@ fi
 if grep -q "$NEW_VERSION" "$SCRIPT_DIR"/installation/docker.md; then
     echo "Found $NEW_VERSION already in the Docker docs so skipping update"
 else
-    sed_wrapper -i -e "/| -.*$/a | $NEW_VERSION | x86\_64, arm64v8, arm32v7 | Release [v$NEW_VERSION](https://fluentbit.io/announcements/v$NEW_VERSION/) |" "$SCRIPT_DIR"/installation/docker.md
-    sed_wrapper -i -e "/| -.*$/a | $NEW_VERSION-debug | x86\_64, arm64v8, arm32v7 | Debug images |" "$SCRIPT_DIR"/installation/docker.md
+    sed_wrapper -i -e "/| -.*$/a | $NEW_VERSION | x86\_64, arm64v8, arm32v7, s390x | Release [v$NEW_VERSION](https://fluentbit.io/announcements/v$NEW_VERSION/) |" "$SCRIPT_DIR"/installation/docker.md
+    sed_wrapper -i -e "/| -.*$/a | $NEW_VERSION-debug | x86\_64, arm64v8, arm32v7, s390x | Debug images |" "$SCRIPT_DIR"/installation/docker.md
 fi
 
 WIN_32_EXE_HASH=${WIN_32_EXE_HASH:?}