forked from remorses/mongoke
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 768 Bytes
/
Makefile
File metadata and controls
37 lines (27 loc) · 768 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
.PHONY: clean
clean:
rm -rf generated
.PHONY: image
image:
docker build . -t mongoke/mongoke
docker push mongoke/mongoke
.PHONY: gcr
gcr:
docker build . -t eu.gcr.io/molten-enigma-261612/mongoke
docker push eu.gcr.io/molten-enigma-261612/mongoke
.PHONY: config-schema
config-schema:
skema generate configuration_schema.skema --jsonschema ./mongoke/config_schema.json
.PHONY: generate-spec
generate-spec:
rm -rf example_generated_code
python -m mongoke tests/confs/spec_conf.yaml --generated-path example_generated_code --force
.PHONY: play
play: generate-spec
# MONGOKE_BASE_PATH=/path
DB_URL=mongodb://localhost/db uvicorn --reload example_generated_code.__main__:app
.PHONY: test
test:
docker-compose up -d mongo
make generate-spec
pytest -sv