-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmigrate.sh
More file actions
40 lines (33 loc) · 1.32 KB
/
migrate.sh
File metadata and controls
40 lines (33 loc) · 1.32 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
34
35
36
37
38
39
40
#!/usr/local/bin/bash
yum upgrade -y
yum install python3 vim git wget mesa-libGL httpd -y
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
dnf install unzip -y
unzip awscliv2.zip
sudo ./aws/install
git clone https://github.com/i-adarsh/Plate-Detection-Model.git
cd Plate-Detection-Model/
mv Object_detection.ipynb yolov3_testing.cfg /var/www/cgi-bin/
git clone https://github.com/i-adarsh/Kubernetes-Python-CGI.git
cd Kubernetes-Python-CGI/
pip3 install --upgrade pip
pip3 install flask
pip3 install boto3
pip3 install scikit-build
pip3 install opencv-python
pip3 install glob2
pip3 install numpy
pip3 install matplotlib
pip3 install torch
pip3 install easyocr
pip3 install imutils
pip3 install --break-system-packages --upgrade pip && pip3 install --break-system-packages flask boto3 scikit-build opencv-python glob2 numpy matplotlib torch easyocr imutils
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
sudo dnf upgrade -y
sudo rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -y
sudo subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"
sudo yum update
sudo yum install snapd -y
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install tesseract --edge