-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
40 lines (33 loc) · 842 Bytes
/
Taskfile.yaml
File metadata and controls
40 lines (33 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: '3'
tasks:
install:
desc: Install the dependencies
cmds:
- poetry install
serve:
desc: Start a development server
aliases: [run]
cmds:
- task: serve:dev
serve:dev:
desc: Start a development server
cmds:
- poetry run fastapi dev sparql_file/env.py
serve:uvicorn:
desc: Run with uvicorn
cmds:
- poetry run uvicorn sparql_file.env:app --host '' --port 8080
serve:container:
desc: Run the container with podman
cmds:
- podman run -d --rm -v {{.GRAPH_FILE}}:/data/graph.ttl:z -p 8080:8080 ghcr.io/aksw/sparql-file:main
build:
desc: Build the container image
cmds:
- podman build -t sparql_file .
format:
desc: Format the code
aliases: ["ruff"]
cmds:
- poetry run ruff format
- poetry run ruff check --fix