HTTPS Download Sourcing Type
Montuer has a built-in HTTPS download sourcing method for its Setup Meta processing function. Here's its working mechanics and specifications.
Purpose
The purpose of facilitating this sourcing method type is for
Monteur to source a 3rd-party software package for the
repository via HTTPS
download, all solely using
its built-in functionalities including network interactions.
Data Structure
This function is specifically built into the Setup CI Job. Hence, its data structure is scattered across various parts and sections of the CI Job recipe. In this specification, all its settings are specified in each sub-sections by following the CI Job's recipe's data file from top to bottom.
Sourcing Method Type
To use this method type, simply set
Metadata.Type
to percisely
https-download
. This will instruct Monteur
to use its internal HTTPS
download function
for sourcing the 3rd-party target file across the
network.
Here is a code snippet of the recipe file:
|
|
Recipe Sourcing Section
This sourcing method employs almost all the fields in
the recipe sourcing section. Moreover, the
overwriting policy is a great feature to keep
most of the settings sane and maintain Don't Repeat
Yourself policy.
Generally speaking, you want to define the overall
HTTPS
interface using the
all-all
Monteur Platform ID
first to unify the server interactions before
overwriting it with opreating system specific
data. The easiest and greatest example would be the
target's checksum value where they have many variants
across different platforms and each of them changed
between releases.
Here is the recommended fields in its data
structure for effective maintenance and readability
usage:
|
|
Sources.{OS}-{ARCH}
COMPULSORY - This setting is used for uniquely grouping and structuring source data between multiple groups of data fields. It is also used for facilitating cross-platform supports like listing all the sources here instead of spinning multiple recipe files.
The Monteur Platform ID for this sourcing data to be effective. Example:
[Sources.all-all]
and[Sources.linux-amd64]
.This field was added since Monteur version
v0.0.1
.
Sources.{OS}-{ARCH}.Format
COMPULSORY - It is used to define the downloaded target archived file format. Monteur uses this field to unpack the archived file.
See Setup Meta Processing for supported algorithms.
This field was added since Monteur version
v0.0.1
.
Sources.{OS}-{ARCH}.URL
COMPULSORY - The location to download the target.
Variables formatting is available for this field.
This field was added since Monteur version
v0.0.1
.
Sources.{OS}-{ARCH}.Archives
COMPULSORY - denotes the naming of the downloaded archived file.
Variables formatting is available for this field.
This field was added since Monteur version
v0.0.1
.
Sources.{OS}-{ARCH}.Method
COMPULSORY - defines the HTTPS method of communications.
This field was added since Monteur version
v0.0.1
.
Sources.{OS}-{ARCH}.Checksum
RECOMMENDED - to ensure the downloaded artifact is with integrity.
This field was added since Monteur version
v0.0.1
.
Sources.{OS}-{ARCH}.Checksum.Type
COMPULSORY - if
Sources.{OS}-{ARCH}.Checksum
is enabled to select the algorithm type.See Setup Meta Processing for supported algorithms.
This field was added since Monteur version
v0.0.1
.
Sources.{OS}-{ARCH}.Checksum.Format
COMPULSORY - if
Sources.{OS}-{ARCH}.Checksum
is enabled for selecting parsing format.See Setup Meta Processing for supported formats.
This field was added since Monteur version
v0.0.1
.
Sources.{OS}-{ARCH}.Checksum.Value
COMPULSORY - if
Sources.{OS}-{ARCH}.Checksum
is enabled to define checksum value.This field was added since Monteur version
v0.0.1
.
Sources.{OS}-{ARCH}.Headers
OPTIONAL - made available in case there is a need for HTTPS headers customization like setting authentication token.
See Setup Meta Processing for its working mechanism.
This field was added since Monteur version
v0.0.1
.
User Startup Configurations
This sourcing method complies to the original
Setup Meta Processing so nothing
special is needed.
Here is an example for quick referencing only:
|
|
Epilogue
That's all for HTTPS downloading sourcing type. If you have any question, please feel free to raise your question at our Issues Section.