Checks the version and downloads a specific RPM package from an RPM repository.
resource_types:
- name: rpm-package-resource
type: registry-image
source:
repository: mmanciop/rpm-package-resource
tag: latest
resources:
- name: my-happy-rpm-package
type: rpm-package
source:
repository:
url: https://blah.blah/agent/generic/x86_64
key: https://blah.blah/key.gpg
username: 'waldo'
password: '123456'
package: my-happy-package
architecture: x86_64
repository.url
: Required URL of the RPM repository to search.repository.key
: Required Key of the RPM repository for verification.repository.username
: Optional Username for authentication against the repository.repository.password
: Optional Password for authentication against the repository.repository.gpg_check
: Optional Whether RPM should check the validity of the key provided viarepository.key
; default:true
; this setting is ignored ifrepository.key
is not set.repository.sslverify
: Optional Whether RPM should check the validity of SSL certificate exposed byrepository.url
(if HTTPS); default:true
.package
: Required Name of the RPM package to check.architecture
: Required Which architecture to look for.
Retrieves and returns all or newer versions available of the package.
Retrieves a specific version of the package.
The file is saved in the target directory, preserving the name of the package.
It also populates a version
file, containing the package version.
Not implemented. This resource is read-only.
Run the following command in the root folder:
docker build -t mmanciop/rpm-package-resource .
docker push mmanciop/rpm-package-resource:latest