-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
31 lines (27 loc) · 817 Bytes
/
Copy pathTaskfile.yaml
File metadata and controls
31 lines (27 loc) · 817 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
version: "3"
tasks:
default:
desc: Show list of available tasks
cmds:
- task: list
list:
desc: Show list of available tasks
cmds:
- task --list
alloy:
desc: Run Grafana Alloy (OTLP receiver)
cmds:
- alloy run config.alloy
example:
desc: Run a configured example
vars:
EXAMPLE_NAME: "{{ .CLI_ARGS }}"
cmds:
# Check if the example is available
- test -d "examples/{{ .EXAMPLE_NAME }}" || (echo "Example '{{ .EXAMPLE_NAME }}' not found" && exit 1)
# Install dependencies
- poetry install
# Run Grafana Alloy (OTLP receiver) in the background
- alloy run config.alloy &
# Run the example with gunicorn
- gunicorn -c "examples/{{ .EXAMPLE_NAME }}/gunicorn.config.py" "examples.{{ .EXAMPLE_NAME }}:app"