Category:Package
From ControlTier
The Package type represents a discrete deployable computer file or archive of files and contains commands to support the creation and installation life cycles. It can be used separately or in conjunction with Service. Use a Builder to automate bulk import of multiple packages.
Contents |
Reference
Definition
Metadata
The table below gives a brief description for each of the attributes of a package type. The ones with an asterisk are required during the deployment cycle.
| attribute | description |
|---|---|
| arch | Hardware architecture. |
| base* | Package base. |
| buildtime | Build identifier |
| description | Description of the package. |
| filename* | Name of the file. |
| filetype | Archive format. |
| installroot* | Directory where archive will be extracted. |
| installrank* | Relative ordering. |
| name* | Name of the package. Usually, the same as filename |
| release | Version release. |
| releasetag | Release identifier. |
| repoUrl* | URL to the file in the repository. |
| restart | Signifies if the service should restart after installation. |
| type | Name of Package type or subtype |
| vendor | Organization that created the package |
| version* | Package version |
Project XML
A package can be registered in XML using the project.xml format. Here is an example.
File listing: apache-tomcat-5.5.26.zip.xml
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE project PUBLIC "-//ControlTier Software Inc.//DTD Project Document 1.0//EN" "project.dtd"> <project> <package arch="noarch" base="apache-tomcat-5.5.26" buildtime="2008061570109" description="The Tomcat application server." filename="apache-tomcat-5.5.26.zip" filetype="zip" installroot="${env.CTIER_ROOT}/demo/apache-tomcat-5.5.26" installrank="1" name="apache-tomcat-5.5.26.zip" release="" releasetag="" repoUrl="/zip/zips/apache-tomcat-5.5.26.zip" restart="false" type="zip" vendor="" version="5.5.26" /> </project>
You can load this XML file using the ProjectBuilder load-objects command like so:
ctl -p project -m ProjectBuilder -c load-objects -- -filename apache-tomcat-5.5.26.zip.xml
Querying
Use the ProjectBuilder find-objects command to list all "zip" packages:
$ ctl -p demo -m ProjectBuilder -c find-objects -- -type zip | |--(zip) apache-tomcat-5.5.26.zip
For a graphical alternative, you can use the Graphical resource editor and view the packages there.
Go to the Package list. You will see it list all packages.
| ||||||||||||||
Pages in category "Package"
The following 13 pages are in this category, out of 13 total.
BEFJP |
P cont.RT |
WYZ |