-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathentrypoint.sh
More file actions
27 lines (22 loc) 路 790 Bytes
/
Copy pathentrypoint.sh
File metadata and controls
27 lines (22 loc) 路 790 Bytes
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
#!/bin/bash
set -e
echo "馃敟 EmberBurn Industrial IoT Gateway Starting..."
# Clone repository if not already present
if [ ! -d "/app/code/.git" ]; then
echo "馃摝 Cloning repository from ${REPO_URL}..."
git clone --depth 1 --branch ${REPO_BRANCH} ${REPO_URL} /app/code
else
echo "馃摝 Repository already cloned, pulling latest..."
cd /app/code && git pull origin ${REPO_BRANCH}
fi
cd /app/code
# Install dependencies
echo "馃摎 Installing Python dependencies..."
if [ -f "requirements.txt" ]; then
pip install --no-cache-dir -r requirements.txt
else
echo "鈿狅笍 No requirements.txt found, installing common packages..."
pip install --no-cache-dir opcua paho-mqtt influxdb-client prometheus-client
fi
echo "馃殌 Starting EmberBurn..."
exec python main.py