download AppImage file from Pytigon GitHub releases
run application, details: AppImage website
create a link named "pytigon" to the downloaded application in folder ~/.local/bin. After the next login, all you have to do is enter "pytigon" in the terminal to start the program.
install docker and docker-compose,
install database server - recomended servers: PostgreSQL and MySQL
create new directory for Pytigon, for example: /var/www/pytigon
cd /var/www/pytigon
in folder /var/www/pytigon create file Dockerfile, example of this file:
FROM splawik/docker-pytigon:latest
RUN git pull
RUN python3.7 -m pip install -r requirements.txt --upgrade
RUN python3.7 -m pip install gunicorn uvicorn hypercorn
RUN python3.7 -m pip install mysql
EXPOSE 80
EXPOSE 443
CMD ["python3.7", "entrypoint-interface.py"]
version: "3.2"
services:
pytigon:
build: .
image: pytigon:v2
container_name: pytigon-container
ports:
- "80:80"
- "443:443"
extra_hosts:
- "pytigon_db:172.18.0.1"
environment:
- DATABASE_URL=mysql://user:password@pytigon_db/pytigon
- LD_RUN_PATH=/var/www/pytigon/ext_prg/tcc
- PYTIGON_NO_DEBUG=1
- CERT=/etc/cert/fullchain.pem;/etc/cert/privkey.pem
- VIRTUAL_HOST=yourdomain.com
- PORT_80_REDIRECT=https://yourdomain.com
- VIRTUAL_PORT_80=80
volumes:
- type: "bind"
source: "./entrypoint-interface.py"
target: "/var/www/pytigon/entrypoint-interface.py"
- type: "bind"
source: "/var/log/pytigon"
target: "/var/log"
- type: "bind"
source: "/etc/letsencrypt/archive/yourdomain.com/fullchain.pem"
target: "/etc/cert/fullchain.pem"
- type: "bind"
source: "/etc/letsencrypt/archive/yourdomain.com/privkey.pem"
target: "/etc/cert/privkey.pem"
- type: "bind"
source: "./_pytigon"
target: "/home/www-data/.pytigon"
restart: unless-stopped
volumes:
www-data:
docker-compose up -d
Of course, you need to correct database server addresses, domain names, etc. in the example files
install the GIT software
install the Python software, version 3.7
in the selected place, run:
git clone https://github.com/Splawik/pytigon.git
pip install -r requirements.txt
pip install wxasync wxpython cefpython3
to run the program, go to the root folder of the cloned software and run:
python pytigon
Attention! The "python" and "pip" command names may need to be modified. If you have more than one instance of python it may be necessary (and even recommended) to use virtual environments. For Ubuntu without a virtualne environment change: "python" -> "python3.7", "pip" -> "python3.7 -m pip"