Creating and Deploying Qorus Releases

In this blog post, you’ll learn how to create and deploy Qorus releases. Like most tasks in Qorus, You can create and deploy releases using either the IDE or the command-line.

Creating and Deploying a Qorus Release Through The UI

In the IDE, you can choose which interfaces to include in the release by going to the Make release menu.
  1. Access the IDE’s main menu by clicking on the purple “Q” icon in the Qorus Developer Tools Extension.
  2. Open the Release Management menu by clicking on the same in the Qorus Webview window’s sidebar.

In the Custom Release tab, all the available interfaces are grouped by type. To include them in the release, click the radio button next to the interface. Qorus supports the following release types:

  • custom : allows the user to choose the objects to go in the release
  • full : includes all files in the release
  • incremental : assumes that the project folder is checked out from a git repository and allows the user to release files changed from another branch
  • existing : allows the user to use an existing release file

Creating and Deploying a Release For the Hello, world! Example - UI

The following interfaces are required for Qorus’ “Hello, world!” example:
  • hello-world – Fsm / Finite State Machine / Flow Builder
  • EXAMPLES – Group
  • example-hello-world-nocode / example-hello-world-code – Job

Go to the Custom Release tab and include all the interface required for the Qorus’ “Hello, world” example. You can do that by clicking on the radio button next to the interface name.

Click on the Create custom release button, then click on the Deploy package button to deploy your custom release.

ℹ️ Note: You can save the release file for future use by clicking the Save release file button. The IDE will save your release as a tar ball (.tar.gz). To deploy a release file that is created in this manner, open the Make release menu and set the release type to existing. Click on the Select release file to browse and select your release file. Deploy your release by clicking on the Deploy package button.

Deploying a Release File Through the Qorus Web Interface

  1. Go to the Qorus operational web interface at https://localhost:8011
  2. Click on the Upload new release button (tray icon) in the top bar
  3. Drop/Select your release file in the Select file field
  4. Click on the Submit button to deploy your release

Creating and Deploying a Qorus Release Through The Command-line

Qorus lets you perform most of the tasks that you can do through IDEs UI, with command-line as well. You can create release files using the make-release script included during the qorus-remote installation.

To learn about its usage and for help with options, run:

make-release -h
Few options that are frequently used:
  • -c, –compress: Creates a compressed installation archive
  • -f, –refresh: Refreshes objects after loading
  • -U, –user-src: Sets the root source directory for release components; all release components should be given as relative paths from this directory
  • -p, –prefix: Sets user prefix directory for relative paths in the target filesystem

Creating a Release For the Hello, world! Example - Command-line

ℹ️ Note: You can find all the files necessary for the “Hello, world” example in the examples/HelloWorld directory of the Qorus’ building-blocks repository.
To create a release for the “Hello, world” example using the make-release script, run:
make-release hello-world-release -cf -U [path-to-building-blocks-dir] -p user/my-release examples/HelloWorld/*.*

ℹ️ Note: Because all user release files should be written to $OMQ_DIR/user ( /opt/qorus/user ) on the target server, in case the release directory does not begin with user/, it can be added using the -P option.

With (*.*), we are including all the files in the examples/HelloWorld directory in file list to make-release.

This will create a release file with hello-world-release as its label in the $HOME/release directory

In case of objects with code and metadata, providing only the metadata (*yaml file) on the command line will be sufficient; the code files will be automatically included. make-release will also include all the service resources of a Service object for you.

ℹ️ Note: make-release does not try to find and automatically include dependent objects; all dependencies should be included in the file list to make-release

Deploying the Release file For the Hello, world! Example - Command-line

Use the qorus-remote with oload to deploy the release file onto the server. Change to the $HOME/release directory and run:
oload -vR [your-release].tar.bz2
ℹ️ Note: -v, –verbose: sets verbosity level; -R, –reload: reload interfaces in the server. Without the -R option the code is installed in the DB but does not take effect in Qorus

Conclusion

In this blog post, you’ve learnt how to create and deploy Qorus releases. You now know how to create and deploy Qorus releases using the IDE, Deploy release files with the Qorus’ web interface and use qorus-remote with make-release and oload to create and deploy releases from the command-line.

Grab your FREE application integrations eBook.
You'll quickly learn how to connect your apps and data into robust processes!