Simple monorepo build tool
Project description
drkns is a simple build tool aimed at easing the continuous integration of monorepos through the use of caching.
Build is driven through YAML files, that can have dependencies over other YAML files.
- Steps are built after the dependencies.
- A failure at a step prevents the execution of the next one.
- The result of each execution step is cached, if a directory is left unchanged no execution will be triggered again.
- State can be persisted in Amazon S3 to have a shared memory between volatile build instances
Sample master drkns.yml
drkns.yml
dependencies:
sub1: subProject1/drkns.yml
Sample dependency drkns.yml
subProject1/drkns.yml
checkSteps:
buildImages: |
docker build -q -t ...
startContainers: "docker run --network host --name test -d backServer-test"
YAML reference
directory
: Current directory by default, only used to compute the hash associated with this build filedependencies
: named external drkns yml to load, their steps becomes callables throughdrkns dependencyName.stepName
checkSteps
: ordered and named commands. Commands are either a string, or have two keys:command
(string) andbackground
(bool default false)buildSteps
: same ascheckSteps
, but those are executed only ifcheckSteps
and dependencies'checkSteps
got processed without errors.cleanUpSteps
: same ascheckSteps
, but those are executed no matter the execution of the previous ones.
CLI interface
The command line interface offers the following commands:
# Checks that the configuration makes sense (no output is a good sign
drkns check
# List all steps
drkns list
# Print debug information
drkns debug
# Restore previous execution information from S3
# Assuming an environment variable DRKNS_S3_PATH exists under the form
# "s3://buck3t/d1r"
drkns sync in
# also available for something like
# drkns sync in s3://buck3t/d1r
# Runs all steps
drkns run
# Runs identified task
drkns run sub1.buildImages
# Runs all steps but returns 0 no matter what happens
drkns run --force-success
# Return the last `drkns run` to get the execution status
drkns run
# Limit output to failed and non restored or ignored entities
drkns run --limit-output
# Willing to have only the step statuses and not the failed output
drkns run --summary
# Clean persisted data older than a week old when there is more than a few
# (to not overload the cache after too many builds)
drkns clean
# Persist previous execution information from S3, see assumptions for sync in
# Beware this erase extra files
drkns sync out
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
drkns-1.4.3.tar.gz
(13.8 kB
view details)
Built Distribution
drkns-1.4.3-py3-none-any.whl
(19.5 kB
view details)
File details
Details for the file drkns-1.4.3.tar.gz
.
File metadata
- Download URL: drkns-1.4.3.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d0c2a228a8e29c61c95072bda97f010dc3cb783933fc132194ab2e3c841c598 |
|
MD5 | 1e2132e9e01e604c5440b327208e4c1c |
|
BLAKE2b-256 | 58b5f14a91937c4e8bfc32bf6d44a82554960be546badd4fa296cf18b1f14eaa |
File details
Details for the file drkns-1.4.3-py3-none-any.whl
.
File metadata
- Download URL: drkns-1.4.3-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 725227e31bcc429e5232f166c5a8df087bd80c8303022cdb67068ed7ccaca76d |
|
MD5 | 7672c25cb015c49a70d9dab60ef0f235 |
|
BLAKE2b-256 | db63d5c449548cdd6986a8581091dac23e9014355f9311901a9ddab04cba3ccc |