Go to the skeletons directory and select the microservice type you want to create
(Django REST microservice, Celery microservice, ...). Instructions are located inside each directory.
config.json:
{
"packages": [
{
"pkg_type": "whl",
"pkg_name": "traxit_core",
"test_type": "pytest",
"extra_args": "--runslow",
"exclude_dependencies_on": ["BLD"],
"type": "celery-microservice",
"components": {
"elasticsearch":false,
"mongo":false,
"redis":false
}
},
...
]
}
When you want to update the config.json you have to update the packages and sometimes the environment or integration test parts.
##Environment Some tests need environment variables for running, you can indicate here this variables
##Packages
A package in the config.json is represent by a json object, who contains:
['BLD', 'CLN'] and all commits' message in a pull request start with BLD: or CLN: or even BLD/CLN:, then exclude this package's dependencies if they were not modified. This is case-sensitive.pkg_type can be set to:
microservice: container dockerdeb: debian packagewhl: wheel packagebrowser_extension: firefox extension (xpi) and chrome extension (zip)test_type can be set:
make: for code managed with a Makefile. The Makefile must have the ci method.pytest: Deprecated soon.grunt: Deprecated soon.gulp: Deprecated soon.components have 3 keys:
Content type
Image
Digest
sha256:e779d75dc…
Size
469.9 MB
Last updated
over 11 years ago
docker pull traxair/logstash