Written a doc for the output. Removed the "type" attribute from the Nickel contract, closing #17.

This commit is contained in:
antux18 2024-07-19 16:18:49 +02:00
parent 1861f44f1e
commit a7bf9cee94
3 changed files with 38 additions and 5 deletions

View File

@ -38,6 +38,41 @@ Where:
- `<artifact_hash_log>` is the path to the file where to log the hash of the downloaded artifact.
- `<cache_directory>` is the path to the cache directory, where downloaded artifacts will be stored for future usage. If not specified, cache is disabled.
## Output
### Package list
The list of packages installed in the container, depending on the package managers, Git packages and other miscellaneous packages given in the config file, in the form of a CSV file, with the following columns in order:
| Package name | Version | Package manager |
For Git packages, the hash of the last commit is used as version number. For miscellaneous packages, the hash of the file that has been used to install the package is used as version number.
### Log file
Just a plain text file containing the output of the script.
### Build status file
The log of the failed attempts to build the Docker image, in the form of a CSV file, with the following columns in order:
| Config file path | Timestamp | Reason category |
The timestamp corresponds to when the error is being logged, not to when it happened.
The following are the categories of reasons explaining why the building failed:
- "package_unavailable": A command requested the installation of a package that is not available.
- "baseimage_unavailable": The base image needed for this container is not available.
- "unknown_error": Any other error.
### Artifact hash log
The log of the hash of the artifact archive file, in the form of a CSV file, with the following columns in order:
| Timestamp | Hash |
The timestamp corresponds to when the hash has been logged, not to when the artifact has been downloaded.
## License
This project is licensed under the GNU General Public License version 3. You can find the terms of the license in the file LICENSE.

View File

@ -1 +1,2 @@
template, IMAGE_NOT_FOUND, 0
template, unknown_error, 0
test, unknown_error, 0
1 template IMAGE_NOT_FOUND unknown_error 0
2 test unknown_error 0

View File

@ -37,10 +37,7 @@ in
| String,
url
| doc "URL of the package. Will be used to compute the hash"
| URL,
type
| doc "Type of the archive (zip, tar, ...)"
| ArchiveType,
| URL
},
Artifact = {
artifact_url