-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstart.sh
More file actions
33 lines (27 loc) · 1.8 KB
/
start.sh
File metadata and controls
33 lines (27 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# Function to display the IBM Cloud banner
show_banner() {
# Define IBM Blue color (hex 0f62fe)
local IBM_BLUE='\033[38;2;15;98;254m'
local RESET='\033[0m'
echo -e "${IBM_BLUE}"
echo "==============================================================================="
echo ""
echo " ██╗██████╗ ███╗ ███╗ ██████╗██╗ ██████╗ ██╗ ██╗██████╗ "
echo " ██║██╔══██╗████╗ ████║ ██╔════╝██║ ██╔═══██╗██║ ██║██╔══██╗"
echo " ██║██████╔╝██╔████╔██║ ██║ ██║ ██║ ██║██║ ██║██║ ██║"
echo " ██║██╔══██╗██║╚██╔╝██║ ██║ ██║ ██║ ██║██║ ██║██║ ██║"
echo " ██║██████╔╝██║ ╚═╝ ██║ ╚██████╗███████╗╚██████╔╝╚██████╔╝██████╔╝"
echo " ╚═╝╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝ "
echo ""
echo "==============================================================================="
echo -e "${RESET}"
}
# Display the banner when script starts
show_banner
# Login to IBM Cloud
ibmcloud login --apikey $IBMCLOUD_API_KEY -r $IBMCLOUD_REGION
# Activate the virtual environment
source /venv/bin/activate
# Run the agent
/venv/bin/python3 -m ibmcloud_base_agent.main --config agent.yaml