updated README.md
All checks were successful
CI / Build Pip package (push) Successful in 19s
CI / Build Docker image (push) Successful in 3m44s

This commit is contained in:
2024-10-23 21:09:11 +08:00
parent 7d9cae76c1
commit 2ca7f8e908
2 changed files with 23 additions and 9 deletions

3
.gitignore vendored
View File

@@ -2,3 +2,6 @@
__pycache__
*.pyc
src/bugis/_version.py
*.egg-info
/build
/dist

View File

@@ -1,12 +1,23 @@
# Run
## How to
### Build the docker image
```bash
uwsgi --need-plugin /usr/lib/uwsgi/python_plugin.so \
--need-plugin /usr/lib/uwsgi/gevent_plugin.so \
-H venv \
--http :1180 \
-w md2html.uwsgi_handler \
--http-keepalive \
--http-auto-chunked \
--gevent 10
docker build -t gitea.woggioni.net/woggioni/bugis:latest .
```
### Build the pip package
```bash
pyproject-build
```
### Run in docker
```bash
docker run --rm -v /your/document/directory:/srv/http --user $(id -u):$(id -g) -p 127.0.0.1:8000:8000 gitea.woggioni.net/woggioni/bugis:latest
```
### Run in docker with `nginx` and `plantUML` server
```bash
docker compose up --build
```