--- /dev/null
+#==================================================================================
+# Copyright (c) 2025 Samsung Electronics Co., Ltd. All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#==================================================================================
+#!/bin/bash
+
+LIBS_NAME="libs" # name of your libs folder
+TARGET_DIR="/usr/local/lib/aimlfw/$LIBS_NAME" # where to install
+ENV_VAR_NAME="AIMLFW_LIBS_HOME" # environment variable name
+BASHRC_FILE="$HOME/.bashrc" # file to append env setup
+
+# === STEP 1: Copy libraries ===
+echo "Installing libraries to $TARGET_DIR ..."
+sudo mkdir -p "$TARGET_DIR"
+sudo cp -r tools/$LIBS_NAME/* "$TARGET_DIR/"
+sudo chmod -R 755 "$TARGET_DIR"
+echo "Libraries copied successfully."
+
+# === STEP 2: Add environment variable and sourcing to bashrc ===
+if ! grep -q "$ENV_VAR_NAME" "$BASHRC_FILE"; then
+ echo "Adding environment variable to $BASHRC_FILE ..."
+ cat <<EOF >> "$BASHRC_FILE"
+
+export $ENV_VAR_NAME="$TARGET_DIR"
+
+EOF
+ echo "Environment variable added to bashrc."
+else
+ echo "Environment variable already exists in bashrc."
+fi
+
+echo ""
+# It is observed, when you run "./bin/install_libs.sh" instead of "source ./bin/install_libs.sh",
+# Bash runs it as a child process i.e. any changes/creation done to enivornment-variables will not be propagated to main bash process.
+# Therefore, it is required the user to do the following in order to apply changes
+echo "Please run 'source ~/.bashrc' or restart your terminal to apply changes."
\ No newline at end of file
--- /dev/null
+#==================================================================================
+# Copyright (c) 2025 Samsung Electronics Co., Ltd. All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#==================================================================================
+#!/bin/bash
+
+LIBS_NAME="libs" # name of your libs folder
+TARGET_DIR="/usr/local/lib/aimlfw/$LIBS_NAME" # where to install
+ENV_VAR_NAME="AIMLFW_LIBS_HOME" # environment variable name
+BASHRC_FILE="$HOME/.bashrc" # file to append env setup
+
+# === STEP 1: Delete libraries ===
+sudo rm -rf $TARGET_DIR
+
+if grep -q "export $ENV_VAR_NAME=" "$BASHRC_FILE"; then
+ echo "Removing environment variable from $BASHRC_FILE ..."
+ sed -i "/export $ENV_VAR_NAME=\".*\"/d" "$BASHRC_FILE"
+ echo "Environment variable removed."
+else
+ echo "No environment variable entry found in bashrc"
+fi
+
+echo "Uninstall completed"
\ No newline at end of file
NERDCTL_VERSION=1.7.6 # see https://github.com/containerd/nerdctl/releases for the latest release
BUILDKIT_VERSION=0.13.2 # see https://github.com/moby/buildkit/releases for the latest release
-echo "Step 0: Checking if running on WSL..."
+if [ -z "$AIMLFW_LIBS_HOME" ]; then
+ echo "Please set AIMLFW_LIBS_HOME by running install_libs.sh first."
+ exit 1
+fi
+
+source "$AIMLFW_LIBS_HOME/loglib.sh"
+
+log_section_break
+echo -e "\n${BOLD}${CYAN}: Starting Kubernetes Installation...${NC}\n"
+START_TIME=$(date +%s)
+
+log_step "Step 0: Checking if running on WSL..."
if is_wsl; then
- echo "Running on WSL"
+ log_info "Running on WSL"
else
- echo "Not WSL"
+ log_info "Not WSL"
fi
echo "Step 1: Disabling swap memory..."
--- /dev/null
+# ==================================================================================
+#
+# Copyright (c) 2025 Samsung Electronics Co., Ltd. All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# ==================================================================================
+
+#!/bin/bash
+
+# ====== COLORS ======
+RED='\033[0;31m'
+GREEN='\033[0;32m'
+YELLOW='\033[1;33m'
+BLUE='\033[1;34m'
+CYAN='\033[1;36m'
+BOLD='\033[1m'
+NC='\033[0m' # No Color
+
+# ====== LOG FUNCTIONS ======
+log_info() { echo -e "${BLUE}[INFO]${NC} $1"; }
+log_warn() { echo -e "${YELLOW}[WARN]${NC} $1"; }
+log_error() { echo -e "${RED}[ERROR]${NC} $1"; }
+log_success() { echo -e "${GREEN}[OK]${NC} $1"; }
+log_step() { echo -e "\n${CYAN}${BOLD}===== $1 =====${NC}\n"; }
+
+
+log_section_break() {
+ echo -e "${CYAN}------------------------------------------------------------${NC}"
+}
\ No newline at end of file