forked from JasperHG90/dagster-pipes-gcp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.justfile
39 lines (29 loc) · 1 KB
/
.justfile
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
set dotenv-path := "/home/vscode/workspace/.devcontainer/.env"
alias s := setup
alias p := pre_commit
alias dd := dagster_dev
alias sf := serve_cloud_function
set_project:
@echo "Setting gcloud project to $GOOGLE_PROJECT_ID"
gcloud config set project $GOOGLE_PROJECT_ID
auth:
gcloud auth activate-service-account --key-file $GOOGLE_APPLICATION_CREDENTIALS
serve_cloud_function:
poetry run functions-framework --target=main --source=cloud_function/main.py --debug
call:
curl -m 70 -X POST http://127.0.0.1:8080 \
-H "Content-Type: application/json" \
-H "X-Cloud-Trace-Context: 00aa1122334455/043" \
-d '{"some_parameter_value": 1}'
dagster_dev:
#!/usr/bin/env bash
mkdir -p .dagster
export DAGSTER_HOME=/home/vscode/workspace/.dagster
cd dagster && poetry run dagster dev -f DAG.py
install:
poetry install --with dev --with local --with test
pre_commit_setup:
poetry run pre-commit install
setup: install pre_commit_setup auth set_project
pre_commit:
poetry run pre-commit run -a