forked from IQTLabs/SkyScan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-skyscan.sh
36 lines (29 loc) · 1001 Bytes
/
install-skyscan.sh
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
34
35
36
# Set environment variables
export COMPOSE_FILE_URL=https://raw.githubusercontent.com/meadej/SkyScan/main/docker-compose.yml
export ENV_FILE_URL=https://raw.githubusercontent.com/meadej/SkyScan/main/.env-example
echo "Installing skyscan on ${HOSTNAME} at $(pwd)"
echo "Configuring Mobian base"
bash <(curl -fsSL https://short.iqt.org/pinephonepro)
mkdir data
cd data
curl -O https://opensky-network.org/datasets/metadata/aircraftDatabase.csv
cd ..
# Make necessary folders
mkdir /flash
mkdir /flash/raw
mkdir /flash/coral
mkdir /flash/coral/plane
mkdir /flash/coral/noplane
mkdir /flash/coral/log
mkdir /flash/weights
mkdir /flash/edge
mkdir /flash/edge/plane
mkdir /flash/edge/noplane
mkdir /flash/edge/log
mkdir /flash/processed
mkdir /flash/processed/log
curl -O $COMPOSE_FILE_URL
curl -O $ENV_FILE_URL
docker-compose pull
echo "Installation complete. Run `docker-compose up` to start the system"
echo "Before running, ensure you have replaced the demo weights with your own trained weights"