3.2. Creating a Root Container
Abstract
A creating a root container involves using SSH to log into a remote host, downloading the required binaries from a Maven repository, and installing the container on the host.
Overview
Creating a remote root container installs a new Fuse container on a remote host using SSH. The management console will attempt to establish an SSH connection with the remote host using the provided user credentials. Once it is connected it will run a script that downloads the binary files required to install a Fuse container, installs the container in the user's home folder, starts the container, and provisions all of the specified profiles.
In order for this action to work the remote host must have SSH installed and active. The specified user must also have permissions to install the required files on the host's file system.
Important
You cannot install remote root containers on Windows machines using the management console.
Procedure
To create a remote root container:
- Selectfrom the main menu.The Containers page opens.
- Click.The Create Fuse Container page opens.
- In the Name field, enter a name for the new container.
- If you want to make the new container a registry server check Make container a distributed registry server.ImportantIt is recommended that if you create a registry server that you do not deploy any other services into the container.
- If you want to pass any special flags to the container's JVM:
- Check JVM Options.
- Enter the options to pass to the JVM in the field next to the check box.
- If you need to use a Maven proxy to access the repository containing your Fuse artifacts, check the Maven Proxy URL field and enter the URL for your Maven proxy.
- If you want to create multiple instances of the container, enter a number greater than one in the Count field.When you create multiple containers the container's number is appended to the value specified in the Name field.
- Select how the container will report its IP address to other containers from the options in the Resolver drop-down list.The options are:
- Local Hostname
- When a requests for the container's location are made, the container's local hostname is returned.
- Local IP
- When a requests for the container's location are made, the container's local IP address is returned.
- Public Hostname
- When a requests for the container's location are made, the container's public hostname address is returned.
- Public IP
- When a requests for the container's location are made, the container's public IP address is returned.
- Click.The Select profiles to install on the container page opens.
- Select the version of profiles you want to use for provisioning the container.The value of this drop down defaults to the value set on the Profiles page.
- Select one or more profiles to deploy to the container.
- Click.The Select the type of container page opens.
- Select Remote root container.
- Click.The SSH Server Configuration page opens.
- In the Hostname field, enter the DNS name, or IP address, for the host onto which the container will be deployed.
- If your SSH configuration doesn't use the default port, enter the proper port in the Port field.
- In the Username field, enter the name of the user that is used to create the container.ImportantThe user must have permissions to write files to the host's file system.
- Enter the authentication credentials for accessing the remote host.
- If you are using a private key to authenticate:
- Check the Private Key File box.
- Enter the full path to the private key file.NoteThis is the private key for the machine from which the user is accessing the management console.
- If you are using a password to authenticate, enter the user's password in the Password field.
- Click.The second SSH Server Configuration page opens.
- If you want to use a directory other than the default provided, enter the full path to the deployment directory in the Path field.The default path is the user's home folder.
- If you want to retry the SSH login more than once, enter the number of retries in the Number of retries field.
- If you want to use a different retry delay than one second, enter the new retry delay in the Retry delay field.
- Click.The wizard closes and the new container will appear in the list of containers. Initially the Active indicator may be red, but should turn green shortly after adding it. The Provisioned indicator may also show gray bars, but should turn green when the specified profiles are fully provisioned.