-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentrypoint.py
executable file
·24 lines (21 loc) · 1.05 KB
/
entrypoint.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os
import time
#os.system("nohup python /home/client.py &")
os.system("service apache2 start")
os.system("service mysql start");
os.system("mysql < /var/www/html/configui/nettapp_evolved5g.sql");
#os.system("mysql -e \"insert into admins values (2,'admin2','315f166c5aca63a157f7d41007675cb44a948b33','admin','','1',null)\"");
os.system("mysql -e \"ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'\"");
os.system("mysql -e \"GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION\"");
os.system("mysql -e \"FLUSH PRIVILEGES\"");
os.system("pip3.8 install uvicorn")
os.system("pip3.8 install fastapi==0.70.0")
os.system("pip3.8 install sqlalchemy==1.4")
os.system("pip3.8 install pymysql")
os.system("pip3.8 install --upgrade requests==2.20.1")
os.system("pip3.8 install fastapi")
os.system("pip3.8 install --upgrade setuptools")
os.system("pip3.8 install --upgrade evolved5g")
os.system("pip3.8 install typing-extensions==3.10.0.2")
os.system("pip3.8 install pydantic==1.8.2")
#os.system("sh /var/www/arxi.sh")