Deploy Configuration
Definitions
Target | A device the user wants to deploy the application. Can reside in local area network or remote network. |
Localhost | This computer |
Deploy Configuration
The Deploy Configuration describes to which physical hardware devices the system shall be deployed (installed). CDP Studio supports distributed systems and the applications in a system can be deployed to different target devices in the network.
The Deploy Configuration allows you to search a network for target devices and assign applications to a device.
The Deploy Configuration is found in Configure mode by clicking on the Deploy Configuration tab .
Prerequisites
Target device must have:
- A SSH server running on port 22
- Rsync
Windows Target
For Windows a Cygwin SSH server should be used. Rsync as well can be found from Cygwin installer.
Linux Target
For Linux both are usually available through a package manager. For Debian the command would be (run as root user):
apt-get install openssh-server rsync
Please consult the manual of your Linux distribution to correctly set up and configure SSH server.
Search for the Device
By default all applications are deployed to localhost. In order to deploy to other devices first select a network interface where this device could be found (). After that a device scan will start. Devices found in the network will be populated into the devices table. It will list all devices found which have port 22 open (default port for SSH server).
For deploy to actually work you must enter a valid username () and pair the device (). After entering the credentials correctly, MAC address and the type of device should be detected automatically.
Assign the Device
Devices found can be assigned to applications, making them deploy to that specific target ().
Make sure you also select appropriate toolkit for the device (). Otherwise the application might not work.
Deploy and Run the System/Application
Once everything is setup correctly the deployment process can be executed from system or application context menu (). If started on a system, it will deploy and run all applications under this system. If started on application, it will deploy and run only this application.
More toolkits can be found and installed through CDPStudio Maintanance Tool.
Deploying to Windows Machines
To be able to deploy to a Windows machine you must first set up a Cygwin SSH server on it. Please refer to this manual. Once it is set up you can use the credentials of any privileged user account (Windows user account) on that machine for deployment.
Deploy to a Remote Network
It is possible to scan for devices in remote networks and deploy applications onto them if you add your own networks into the Networks table. To add a remote network you need to specify its subnet ip and subnet mask. After that devices from this network are populated and you can assign them to your applications.
A common situation for using remote networks is when using VPN or SSH tunneling to isolate CDP systems from the public internet. Read more in the Remote Access Over SSH manual.
Running Scripts and Commands on a Remote Device
It is possible to run shell scripts on a remote device by choosing "Run Custom Script..." from devices table context menu. There are also premade scripts like App Manager that can be found under "Run Script" submenu. Read more about App Manager here. To execute commands manually simply choose "Open Remote Shell" and type in commands that you want to execute.
Managing a Device
In some use cases it might be required to change the default private key that is used for SSH access. This is possible via "Manage Device" once the device has been found.
Here you can change the private key and even pre deploy it to the device .
Notice that it is also possible to manually add custom devices , but be aware that the Devices table shows only devices from selected network. To solve that, you can always create a network for that specific device.
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.