forked from RonaldHensbergen/composable-data-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 1013 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (32 loc) · 1013 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
41
.PHONY: install validate validate-profile package lint lint-markdown lint-yaml docker-build
PROFILE ?= profiles/local-dagster-postgres-superset/profile.yaml
install:
pip install -e .
lint: lint-markdown lint-yaml
lint-markdown:
npx --yes markdownlint-cli@0.49.0 "**/*.md" ".github/**/*.md"
lint-yaml:
yamllint .
validate:
cds validate $(PROFILE)
validate-profile:
@if [ -z "$(P)" ]; then \
echo "Usage: make validate-profile P=profiles/.../profile.yaml"; \
exit 1; \
fi
cds validate $(P)
package:
python3 -m pip install --upgrade build
python3 -m build
docker-build:
@echo "Building all Dockerfiles..."
@for dockerfile in $$(find . -name "Dockerfile*" -type f); do \
dir=$$(dirname "$$dockerfile"); \
echo "Building $$dockerfile in directory $$dir..."; \
context="$$dir"; \
if [ "$$dockerfile" = "./images/dagster/Dockerfile.user-code" ]; then \
context="."; \
fi; \
docker build -f "$$dockerfile" "$$context" || exit 1; \
done
@echo "All Dockerfiles built successfully!"