An open-source project providing the drawing lovers a free and simple gallery service.
And this project is on the way!
- certifi==2022.12.7
- charset-normalizer==2.1.1
- click==8.1.3
- docopt==0.6.2
- Flask==2.2.2
- idna==3.4
- itsdangerous==2.1.2
- Jinja2==3.1.2
- MarkupSafe==2.1.1
- numpy==1.24.1
- opencv-python==4.7.0.68
- pipreqs==0.4.11
- requests==2.28.1
- urllib3==1.26.13
- waitress==2.1.2
- Werkzeug==2.2.2
- yarg==0.1.9
Download the source
wget https://github.com/WeepingDogel/tinygallery/archive/refs/tags/<version>.tar.gz
Unpack
tar xzvf tinygallery-<version>.tar.gz
Change to installation path.
cd [tinygallery-<version>]
Create Virutal Environment.
python -m venv venv
Active Virtual environment
. venv/bin/activate
Install Dependencies.
pip3 install -r ./requirements.txt
Initialization database
flask --app flaskr init-db
Start WSGI server
waitress-serve --host 127.0.0.1 --call flaskr:create_app
Proxy WSGI server with http server for example :nginx
- add some config to /etc/nginx/nginx.conf
server {
listen 17779;
listen [::]:17779;
server_name TinyGallery;
location / {
proxy_pass http://127.0.0.1:8080/;
}
}
- if you want to use the server as ipV6only:
server {
listen 17779;
listen [::]:17779 ipv6only=on;
server_name TinyGallery;
location / {
proxy_pass http://127.0.0.1:8080/;
}
}
Finally, start nginx
sudo systemctl start nginx
Enjoy~!
By DockerHub
sudo docker pull weepingdogel/tinygallery:latest
Tips:
You can also pull the exact version:
sudo docker pull weepingdogel/tinygallery:v0.5.1
sudo docker run -p 17779:80 -d weepingdogel/tinygallery:latest
wget https://github.com/WeepingDogel/tinygallery/releases/download/{ version }/TinyGallery-Docker-{ version }.tar.gz
For example, v0.5.1:
wget https://github.com/WeepingDogel/tinygallery/releases/download/v0.5.1/TinyGallery-Docker-0.5.1.tar.gz
tar xzvf TinyGallery-Docker-0.5.1.tar.gz
sudo docker build -t weepingdogel/tinygallery:tagname .
sudo docker run -p 17779:80 -d weepingdogel/tinygallery:taggname