40 lines
748 B
Markdown
40 lines
748 B
Markdown
|
|
## How to
|
|
|
|
### Build the docker image
|
|
```bash
|
|
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
|
|
STATIC_ROOT=/your/document/directory UID=$(id -u) GID=$(id -g) docker compose up --build
|
|
```
|
|
|
|
### Install with pipx
|
|
|
|
```bash
|
|
pipx install -r requirements-run.txt .
|
|
```
|
|
|
|
or
|
|
|
|
```bash
|
|
pipx install --extra-index-url https://gitea.woggioni.net/api/packages/woggioni/pypi/simple/ bugis[run]
|
|
```
|
|
|
|
### Run from cli
|
|
|
|
```bash
|
|
bugis -a 127.0.0.1 -p 8000
|
|
``` |