FEATURE: add a tag option to set package name
The hash of the packages are nice but alike for docker images not very human readable.
One could add a tag option at package creation --tag
to set the package name (name of the folder)
This would lead to the clean difference between pack.Name
and pack.SciPackageId
.
The following rules could be also added:
- if a package gets a tags that already exists the package with the tag name gets its
pack.SciPackageId
back aspack.Name
. - at creation a package gets the suffix
v0.0
- after the run command it gets the suffix
vX.1
- after
--update-param
it gets the suffixvX.(+1)
- after explore/dev (with a change in the trace) it gets a different image tag (from the explore image) and it gets the
v(+1).0
suffixe.
This will lead to the following:
>$ kufair package ls
my-repo-00000000-a4s5d4s5-00000000 (package without tag)
my-repo-00000000-a4s5d4s5-d4fd54s5
my-project-from-survey-X_v0.0 (package with tag: my-project-from-survey after creation)
my-project-from-survey-X_v0.1 (based on v0.0 after run)
my-project-from-survey-X_v0.2 (based on v0.0 or v0.1 --update-param)
my-project-from-survey-X_v1.0 (based on v0.0 after dev and some changes)
my-project-from-survey-X_v2.0 (based on v0.0 or v1.0 after dev and some changes)
my-project-from-survey-X_v2.1 (based on v2.0 after --update-param or after run)