1f95680a32
Note: whilst this is a large patch, most of it is just moving stuff around. This has a number of benefits now: - generate the marathon/chronos files - one file per running container (easier to manage changes) - no need to redefine lots of marathon attributes - to create special marathon attributes specify them under "service"/"task" or "container" depending on the attribute and it will override the value in services/default.marathon.j2 - render the command's files just before running the command (previously there was a risk of rendering the files too early) We can benefit from the changes with a little more work: - any update tasks can be easily separated from the service Change-Id: I007c2859b9d4bf8e9b984cbeba93456a9ce06f29
11 lines
314 B
Bash
Executable File
11 lines
314 B
Bash
Executable File
#!/bin/bash
|
|
|
|
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
|
|
cd "$(dirname "$REAL_PATH")/.."
|
|
|
|
find . -name '*.yaml' -o -name '*.yml' -print0 |
|
|
xargs -0 python tools/validate-yaml.py || exit 1
|
|
find services -name '*.yml.j2' -print0 |
|
|
xargs -0 python tools/validate-service.py || exit 1
|
|
|