Now optional with a default value in the Nickel contract: version, comment, git_packages, misc_packages, python_venvs (close #30).
This commit is contained in:
parent
ac6c100c6b
commit
74228cd1c5
@ -3,7 +3,6 @@
|
|||||||
artifact_url = "http://localhost.com/artifact.zip",
|
artifact_url = "http://localhost.com/artifact.zip",
|
||||||
type = "zip",
|
type = "zip",
|
||||||
doi = "...",
|
doi = "...",
|
||||||
comment = "",
|
|
||||||
virtualization = "docker",
|
virtualization = "docker",
|
||||||
buildfile_dir = "./",
|
buildfile_dir = "./",
|
||||||
package_managers = [ "dpkg", "pip" ],
|
package_managers = [ "dpkg", "pip" ],
|
||||||
@ -12,6 +11,5 @@
|
|||||||
],
|
],
|
||||||
misc_packages = [
|
misc_packages = [
|
||||||
{ name = "mpkg1", url = "http://localhost.com/package1.zip" }
|
{ name = "mpkg1", url = "http://localhost.com/package1.zip" }
|
||||||
],
|
]
|
||||||
python_venvs = []
|
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,9 @@ in
|
|||||||
Artifact = {
|
Artifact = {
|
||||||
version
|
version
|
||||||
| doc "Version of the Nickel contract"
|
| doc "Version of the Nickel contract"
|
||||||
| String,
|
| optional
|
||||||
|
| String
|
||||||
|
| default = "1.0",
|
||||||
artifact_url
|
artifact_url
|
||||||
| doc "URL where to download the artifact"
|
| doc "URL where to download the artifact"
|
||||||
| URL,
|
| URL,
|
||||||
@ -64,7 +66,9 @@ in
|
|||||||
| String,
|
| String,
|
||||||
comment
|
comment
|
||||||
| doc "Additional comments on the artifact that couldn't be written elsewhere"
|
| doc "Additional comments on the artifact that couldn't be written elsewhere"
|
||||||
| String,
|
| optional
|
||||||
|
| String
|
||||||
|
| default = "",
|
||||||
virtualization
|
virtualization
|
||||||
| doc "Virtualization technology used in the artifact. Possible values: docker"
|
| doc "Virtualization technology used in the artifact. Possible values: docker"
|
||||||
| VirtTech,
|
| VirtTech,
|
||||||
@ -73,15 +77,23 @@ in
|
|||||||
| FilePath,
|
| FilePath,
|
||||||
package_managers
|
package_managers
|
||||||
| doc "Package Managers used in the container. Possible values: dpkg, rpm, pacman, pip, conda"
|
| doc "Package Managers used in the container. Possible values: dpkg, rpm, pacman, pip, conda"
|
||||||
| Array PackageManager,
|
| optional
|
||||||
|
| Array PackageManager
|
||||||
|
| default = [],
|
||||||
git_packages
|
git_packages
|
||||||
| doc "Git repositories cloned in the container"
|
| doc "Git repositories cloned in the container"
|
||||||
| Array GitPackage,
|
| optional
|
||||||
|
| Array GitPackage
|
||||||
|
| default = [],
|
||||||
misc_packages
|
misc_packages
|
||||||
| doc "Misc. packages downloaded from the container"
|
| doc "Misc. packages downloaded from the container"
|
||||||
| Array MiscPackage,
|
| optional
|
||||||
|
| Array MiscPackage
|
||||||
|
| default = [],
|
||||||
python_venvs
|
python_venvs
|
||||||
| doc "Python venvs created in the container"
|
| doc "Python venvs created in the container"
|
||||||
|
| optional
|
||||||
| Array PythonVenv
|
| Array PythonVenv
|
||||||
|
| default = [],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user