Initial commit

This commit is contained in:
2021-12-30 15:34:27 +00:00
commit 54c75ff97b
18 changed files with 1843 additions and 0 deletions

41
readme.txt Normal file
View File

@@ -0,0 +1,41 @@
create motus user
sudo yum install -y python3 git nginx redis cifs-utils policycoreutils-python-utils
sudo systemctl enable redis
sudo systemctl start redis
git clone ...
pip3 install --user pipenv
cd motus_remote3
pipenv install --dev # or without --dev if prod
cp /usr/bin/zipinfo test-file
pipenv shell
Start debuging in vscode
In a new window as the motus user in /home/motus/motus-remote/web
pipenv run rq worker motus
from the pipenv shell windows
python test-debug.py
For prodution
sudo cp /home/motus/motus_remote/systemd/* /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable --now gunicorn.socket
sudo -u nginx curl --unix-socket /run/gunicorn.sock http
cd /home/motus/motus_remote/nginx/selinux
sudo bash compile.sh
cd ../..
sudo cp /home/motus/motus_remote/nginx/nginx.conf /etc/nginx
sudo systemctl restart nginx
sudo systemctl enable rqworker@1
sudo systemctl start rqworker@1
# Report above 2 for number of concurrent hash checks
python test-prod.py