@@ -15,11 +15,11 @@ ARCH=$(uname -m)
15
15
# Function to check if Docker is installed and running
16
16
check_docker () {
17
17
if ! command -v docker & > /dev/null; then
18
- echo " Docker is not installed. Please install Docker: https://docs.docker.com/engine/install/ and rerun this script."
18
+ echo " ❌ Docker is not installed. Please install Docker: https://docs.docker.com/engine/install/ and rerun this script."
19
19
exit 1
20
20
fi
21
21
if ! docker ps & > /dev/null; then
22
- echo " Docker is not running. Please start Docker and rerun this script."
22
+ echo " ❌ Docker is not running. Please start Docker and rerun this script."
23
23
exit 1
24
24
fi
25
25
}
@@ -33,7 +33,7 @@ check_docker_compose() {
33
33
elif command -v docker & > /dev/null && docker compose version & > /dev/null; then
34
34
COMPOSE_CMD=" docker compose"
35
35
else
36
- echo " Docker Compose is not installed. Please install Docker Compose: https://docs.docker.com/compose/install/ and rerun this script."
36
+ echo " ❌ Docker Compose is not installed. Please install Docker Compose: https://docs.docker.com/compose/install/ and rerun this script."
37
37
exit 1
38
38
fi
39
39
}
@@ -43,7 +43,7 @@ check_docker_compose
43
43
# Function to install curl if it's not already installed
44
44
install_curl () {
45
45
if ! command -v curl & > /dev/null; then
46
- echo " curl is not installed. Please install curl and rerun this script."
46
+ echo " ❌ curl is not installed. Please install curl and rerun this script."
47
47
exit 1
48
48
fi
49
49
}
@@ -62,7 +62,7 @@ case $OS in
62
62
FILE=" ${DEPLOYER_NAME} _Darwin_x86_64.tar.gz"
63
63
;;
64
64
* )
65
- echo " Unsupported architecture: $ARCH "
65
+ echo " ❌ Unsupported architecture: $ARCH "
66
66
exit 1
67
67
;;
68
68
esac
@@ -79,7 +79,7 @@ case $OS in
79
79
FILE=" ${DEPLOYER_NAME} _Linux_x86_64.tar.gz"
80
80
;;
81
81
* )
82
- echo " Unsupported architecture: $ARCH "
82
+ echo " ❌ Unsupported architecture: $ARCH "
83
83
exit 1
84
84
;;
85
85
esac
@@ -96,28 +96,28 @@ case $OS in
96
96
FILE=" ${DEPLOYER_NAME} _Windows_x86_64.zip"
97
97
;;
98
98
* )
99
- echo " Unsupported architecture: $ARCH "
99
+ echo " ❌ Unsupported architecture: $ARCH "
100
100
exit 1
101
101
;;
102
102
esac
103
103
;;
104
104
* )
105
- echo " Unsupported operating system: $OS "
105
+ echo " ❌ Unsupported operating system: $OS "
106
106
exit 1
107
107
;;
108
108
esac
109
109
110
110
# URL for the download
111
111
URL=" $DEPLOYER_RELEASE_URL /download/$DEPLOYER_VERSION /$FILE "
112
112
113
- echo " Downloading $URL ..."
113
+ echo " ⬇️ Downloading $URL ..."
114
114
115
115
# Download the file
116
116
curl -L $URL -o $FILE
117
117
118
118
# Check if the download was successful
119
119
if [ $? -eq 0 ]; then
120
- echo " Download successful, extracting the file..."
120
+ echo " 📦 Download successful, extracting the file..."
121
121
122
122
# Extract the file
123
123
case $FILE in
@@ -128,20 +128,20 @@ if [ $? -eq 0 ]; then
128
128
unzip $FILE
129
129
;;
130
130
* )
131
- echo " Unsupported file format: $FILE "
131
+ echo " ❌ Unsupported file format: $FILE "
132
132
exit 1
133
133
;;
134
134
esac
135
135
136
136
# Check if the extraction was successful
137
137
if [ $? -eq 0 ]; then
138
- echo " Extraction successful."
138
+ echo " ✅ Extraction successful."
139
139
else
140
- echo " Extraction failed."
140
+ echo " ❌ Extraction failed."
141
141
exit 1
142
142
fi
143
143
else
144
- echo " Download failed."
144
+ echo " ❌ Download failed."
145
145
exit 1
146
146
fi
147
147
@@ -150,33 +150,33 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
150
150
151
151
# Check if config.yaml exists in the script's directory and run Deployer if it does
152
152
if [ -f " $SCRIPT_DIR /config.yaml" ]; then
153
- echo " config.yaml found in the script's directory, moving it to config folder..."
153
+ echo " ⚙️ config.yaml found in the script's directory, moving it to config folder..."
154
154
155
155
mkdir -p " $SCRIPT_DIR /config"
156
156
mv " $SCRIPT_DIR /config.yaml" " $SCRIPT_DIR /config/config.yaml"
157
- echo " DO NOT DELETE/MOVE THE config FOLDER OR ITS CONTENTS!"
157
+ echo " ⚠️ DO NOT DELETE/MOVE THE config FOLDER OR ITS CONTENTS!"
158
158
159
159
export NODE_VERSION
160
- echo " running the deployer..."
160
+ echo " 🚀 Running the deployer..."
161
161
" $SCRIPT_DIR /node-automated-deployer" > " $SCRIPT_DIR /docker-compose.yaml"
162
162
163
163
# Check if docker-compose.yaml was successfully created
164
164
if [ -f " $SCRIPT_DIR /docker-compose.yaml" ]; then
165
- echo " docker-compose.yaml created, starting Docker Compose..."
165
+ echo " ℹ️ docker-compose.yaml created, starting Docker Compose..."
166
166
(cd " $SCRIPT_DIR " && $COMPOSE_CMD up -d)
167
167
168
168
# Check if Docker Compose started successfully
169
169
if [ $? -eq 0 ]; then
170
- echo " Deployment process completed successfully."
170
+ echo " ✅ Deployment process completed successfully."
171
171
echo " 🎉 Welcome to the RSS3 Network!"
172
172
else
173
- echo " Failed to start Docker Compose."
173
+ echo " ❌ Failed to start Docker Compose."
174
174
exit 1
175
175
fi
176
176
else
177
- echo " Failed to create docker-compose.yaml."
177
+ echo " ❌ Failed to create docker-compose.yaml."
178
178
exit 1
179
179
fi
180
180
else
181
- echo " config.yaml not found, please create a config.yaml file or generate one at https://explorer.rss3.io."
182
- fi
181
+ echo " ⚠️ config.yaml not found, please create a config.yaml file or generate one at https://explorer.rss3.io."
182
+ fi
0 commit comments