FEATURE: Scan a repo to generate a `setup.toml` file
It would be great if we could scan a repo for:
- Dockerfile
- parameters folder
- products folder
- drun.sh
- dexplore.sh
Thanks to this information one could obtain a file
setup.toml
that is going to be used to create the package
kufair package create --setup=setup.toml
each parameter can then be overwritten with command line options:
kufair package create --setup=setup.toml --dockerfile="rootfs/dockerfile_debian_buster"
Specifiy scan root
I would also be important to be able to specify a root directory to scan. Especially in respect to issue #20 (closed)
in the case of a repo with more than one steps:
Dockerfile
get_data/
|__ drun.sh
|__ dexplore.sh
|__ requirements.txt
|__ products/
|__ parameters/
reduce_data/
|__ drun.sh
|__ dexplore.sh
|__ requirements.txt
|__ products/
|__ parameters/
analyse_data/
|__ drun.sh
|__ dexplore.sh
|__ requirements.txt
|__ products/
|__ parameters/
Then one could scan the same repo with various scan roots and obtain different setup.toml
:
kufair repo scan --url=... --scan-root="get_data"
kufair repo scan --url=... --scan-root="reduce_data"
kufair repo scan --url=... --scan-root="analyse_data"