Red Hat Training

A Red Hat training course is available for Red Hat Fuse

fabric:container-create


Name

fabric:container-create, container-create — creates one or more Fabric Containers

Synopsis

fabric:container-create [ --help ] {[ --parent ParentID ] | [ --url URL ]} [ --proxy-uri ProxyURI ] [ --ensemble-server ] [ --profile ProfileID ] [ --resolver policy ] [ --version Version ] [ --jvm-opts JvmOpts ] { Name } [ Number ]

Examples

This command is a generic container create command. It combines the functionality of the fabric:container-create-child, fabric:container-create-cloud, and fabric:container-create-ssh commands. The type of container that is created, depends on the specified URL.
Child container
To create a child container, specify a URL in the following format:
child://ParentName
Where ParentName is the name of the child's parent container.
Cloud container
To create a cloud container, specify a URL in the following format:
jclouds://ProviderId?imageId=ImageID&locationId=LocationID&group=Group&user=User
For a detailed explanation of the options appearing in this URL, see fabric:container-create-cloud.
SSH container
To create an SSH container with username and password credentials, specify a URL in the following format:
ssh://User:Password@Host:Port
Where User and Password are the credentials for logging in to the machine at Host:Port, through the SSH protocol.
To create an SSH container with username and private key credentials, specify a URL in the following format:
ssh://User@Host:Port?privateKeyFile=KeyPath
Where KeyPath is the pathname of the private key file on the local filesystem.

Arguments

Table 10.8, “fabric:container-create Arguments” describes the command's arguments.

Table 10.8. fabric:container-create Arguments

ArgumentInterpretation
--helpDisplays the online help for this command
--parentSpecifies the parent container's ID.
--urlSpecifies the URL of the new container.
--proxy-uriSpecifies the Maven proxy URI to use.
--ensemble-serverSpecifies if the new container should be a Fabric Server.
--profileSpecifies a list of profiles to deploy into the new container.
--resolverSpecifies how the container will report its address to other containers. Valid values are localip, localhostname, publicip, publichostname, manualip. For more information see fabric:container-resolver-set.
--versionSpecifies the version of the profiles used by the new container. Defaults to the current default version.
--jvm-optsSpecifies options to pass to the container's JVM.
NameSpecifies the name of the new container. When creating multiple containers, the name serves as a prefix.
NumberSpecifies the number of containers that should be created.