Set up Creatio instance for working with Clio
Before you set up Creatio instance for working with Clio, install Clio. Instructions: Install Clio.
You can connect Clio to an existing Creatio instance or deploy a Creatio instance from scratch using Clio.
Connect Clio to an existing Creatio instance
-
Open the terminal of Visual Studio Code or run the command-line interface as administrator.
-
Run the
clio reg-web-app SomeEnvironmentName -u SomeCreatioURL -l SomeLogin -p SomePassword
command, where:SomeEnvironmentName
is the name of your Creatio environment.SomeCreatioURL
is the URL of already deployed Creatio instance.SomeLogin
is the user login to the Creatio instance.SomePassword
is the user password to the Creatio instance.
Deploy a Creatio instance using Clio
Clio lets you deploy Creatio on .NET and .NET Framework platforms and use Microsoft SQL or PostgreSQL DBMS.
1. Install additional components
-
Install Linux on Windows (for Windows only). Instructions: How to install Linux on Windows with WSL (official vendor documentation).
View the example that configures
.wlsconfig
file below..wlsconfig file[wsl2]
memory=8GB # Limits VM memory in WSL 2 to 16 GB
processors=4 # Makes the WSL VM use 8 virtual processors -
Install Rancher Desktop that creates a local Kubernetes cluster. Instructions: Rancher Desktop by SUSE (official vendor documentation).
We recommend using the latest stable Kubernetes version and Docker Container Engine.
-
Make sure that you have required Windows components enabled (for Windows only).
- Run the
clio check-windows-features
command. - Check enabled components. Enable required components if needed. Instructions: Enable required Windows components (user documentation).
- Run the
2. Set up a local Kubernetes cluster
-
Run the
kubectl cluster-info
command to make sure that local Kubernetes cluster is installed. -
Run the
clio create-k8-files
command to generate k8s manifests for required components. This creates theC:\Users\SomeWindowsUser\AppData\Local\creatio\clio\infrastructure
directory for Windows or/home/SomeLinuxUser/.local/share/creatio/clio/infrastructure
for Linux. The directory includes pre-configured services of your environment, such as Email Listener, Microsoft SQL server, PostgreSQL server, Redis server and pgAdmin GUI to manage PostgreSQL databases. -
Set up paths to the generated k8s manifests.
-
Go to the
infrastructure
directory in command-line interface. -
Run the following commands.
# Retrieve the path to the "appsettings.json" file and store it in the "$appsettings" variable.
$appsettings = clio externalLink clio://GetAppSettingsFilePath
# Extract the directory path of the "appsettings.json" file and store it in the "$dir" variable.
$dir = Get-Item $appsettings | Select-Object -ExpandProperty DirectoryName
# Change the current location to the "infrastructure" directory located next to "appsettings.json" file.
Set-Location -Path $dir/infrastructure
# Display all files and subdirectories in the "infrastructure" directory.
Get-ChildItem -Path $dir/infrastructure
-
-
Make sure your kubectl context is set to Rancher Desktop. Otherwise, your Creatio instance will be deployed into another Kubernetes cluster.
-
Modify nested files in the
infrastructure
subdirectories to redefine CPU resources dedicated to Creatio (optional).-
Go to the
clio
directory in command-line interface. -
Run the
code .
command to open the structure ofclio
directory in Visual Studio Code. -
Redefine CPU resources.
For PostgreSQL
- Go to the
postgres
directory →postgres-stateful-set.yaml
file. - Redefine requested amount of
postgres-data
storage. To do this, go to thespec
object →volumeClaimTemplates
array of objects → object whosename
string is "postgres-data" →spec
object →resources
object →requests
map →storage
string → change to "10Gi." - Redefine requested amount of
postgres-backup-images
storage. To do this, go to thespec
object →volumeClaimTemplates
array of objects → object whosename
string is "postgres-backup-images" →spec
object →resources
object →requests
map →storage
string → change to "3Gi." - Open the
postgres-volumes.yaml
file. - Redefine quantity of
postgres-data-pv
resource. To do this, go to the object whosename
string is "postgres-data-pv" →spec
object →capacity
map →storage
string → change to "10Gi." - Redefine quantity of
postgres-backup-images-pv
resource. To do this, go to the object whosename
string is "postgres-backup-images-pv" →spec
object →capacity
map →storage
string → change to "3Gi."
For Microsoft SQL
- Go to the
mssql
directory →mssql-stateful-set.yaml
file. - Redefine requested amount of
mssql-data
storage. To do this, go to thespec
object →volumeClaimTemplates
array of objects → object whosename
string is "mssql-data" →spec
object →resources
object →requests
map →storage
string → change to "10Gi." - Open the
mssql-volumes.yaml
file. - Redefine quantity of
clio-mssql-data-pv
resource. To do this, go to the object whosename
string is "clio-mssql-data-pv" →spec
object →capacity
map →storage
string → change to "10Gi."
- Go to the
-
-
Apply the changes.
-
Go to the command-line interface that is run as administrator.
-
Go to the
infrastructure
directory. -
Run the following commands.
# Create or update Kubernetes resources defined in the "clio-namespace.yaml' file.
kubectl apply -f clio-namespace.yaml
# Create or update a Kubernetes "StorageClass" defined in the "clio-storage-class.yaml" file.
kubectl apply -f clio-storage-class.yaml
# Apply Kubernetes resource files located in the "redis" directory.
kubectl apply -f .\redis
# Create or update Kubernetes resources located in the "postgres" directory.
kubectl apply -f .\postgres
# Create or update Kubernetes resources located in the "pgadmin" directory.
kubectl apply -f .\pgadmin
-
-
Make sure Rancher Desktop includes required resources.
-
Open the Rancher Desktop.
-
Click Cluster Dashboard to open the Rancher - Local Cluster - Cluster Dashboard window.
-
Click Workloads → Deployment to open the Rancher - Local Cluster - Deployments tab.
-
Make sure the
clio-pgadmin
andclio-redis
have the "Active" states. -
Click StatefulSets to open the Rancher - Local Cluster - StatefulSets tab.
-
Make sure the
clio-postgres
has the "Active" state.Otherwise, we recommend deleting all the files from the
postgres
directory:- Go to the command-line interface that is run as administrator.
- Go to the
infrastructure
directory. - Run the
kubectl delete -f postgres
command. - Open the Rancher Desktop.
- Click Cluster Dashboard to open the Rancher - Local Cluster - Cluster Dashboard window.
- Click Storage → PersistentVolumes to open the Rancher - Local Cluster - PersistentVolumes tab.
- Click
→ Delete.
- Click Storage → PersistentVolumeClaims to open the Rancher - Local Cluster - PersistentVolumeClaims tab.
- Select the postgres-data-clio-postgres-0 and postgres-backup-images-clio-postgres-0 checkboxes → click Delete → confirm the action.
- Run the
kubectl apply -f .\postgres
command to re-create Kubernetes resources located in thepostgres
directory. - Make sure Rancher Desktop includes required resources.
-
3. Verify that the pgAdmin GUI is accessible
-
Find the port number through which pgAdmin is accessible.
- Open the structure of
clio
directory in Visual Studio Code. - Go to the
pgadmin
directory →pgadmin-services.yaml
file. - Go to the
spec
object →ports
array of objects →port
integer value. The port number is "1080."
- Open the structure of
-
Find the user credentials to login.
-
Open the
pgadmin-secrets.yaml
file. -
Go to the
stringData
object.The
PGADMIN_DEFAULT_EMAIL
string includes email to log in to pgAdmin website and is equal to "root@creatio.com
."The
PGADMIN_DEFAULT_PASSWORD
string includes password to log in to pgAdmin website and is equal to "root."
-
-
Log in to
http://localhost:1080
URL using user credentials. This opens the pgAdmin website. -
Click Servers → PostgreSQL to open the Connect to Server window.
-
Connect to the PostgreSQL server using the same user password as the pgAdmin website. This opens the Activity tab for the connected server.
-
Allow pgAdmin to display template databases.
- Click File → Preferences to open the Preferences tab.
- Go to the Browser → Display.
- Select the Show template databases? checkbox.
- Click
. This opens the Object explorer refresh required window.
- Click Refresh.
4. Set up Redis server
-
Install Redis extension (Redis Client for Visual Studio Code). Instructions: official vendor website.
-
Connect to the server.
Out of the box, Redis server supports 99 databases. To check whether the database is supported by the Redis server:
- Click
to open the Redis terminal.
- Run the
select SomeDatabaseIndex
command.
As a result:
- If the terminal returns "OK" response, a database whose number is
SomeDatabaseIndex
can be supported by the Redis server. - If the terminal returns "ERR DB index is out of range" response, a database whose number is
SomeDatabaseIndex
cannot be supported by the Redis server.
5. Select the way to deploy Creatio
Clio lets you deploy Creatio in the following ways:
- using File Explorer context menu
- using terminal
Before you select the way to deploy Creatio:
- Find the path and name of the IIS root directory where Clio is deployed. The directory path and name are specified in the
iis-clio-root-path
property of theC:\Users\SomeWindowsUser\AppData\Local\creatio\clio\appsettings.json
file. Out of the box,C:\\inetpub\\wwwroot\\clio
. - Create the IIS root directory.
- Make sure that IIS_IUSRS user has the Full control checkbox selected for the IIS root directory.
- Contact Creatio support to receive Creatio setup zip archive. We recommend using PostgreSQL database.
- Save Creatio setup zip archive to the directory on your local device. The directory path is specified in the
creatio-products
property of theC:\Users\SomeWindowsUser\AppData\Local\creatio\clio\appsettings.json
file. Out of the box,C:\\CreatioProductBuild
.
Deploy Creatio using File Explorer context menu
-
Open the directory that has Creatio setup zip archive saved.
-
Right-click a Creatio setup zip archive → clio: deploy Creatio. This opens the Windows command prompt.
If context menu does not include Clio options, re-register Clio. To do this:
- Go to the command-line interface that is run as administrator.
- Run the
clio register
command.
-
Fill out the parameters to deploy Creatio.
Parameter
Description
Please enter site name
An arbitrary name of the Creatio to deploy. For example, "DevEnv."
Please enter site port, Max value - 65535:
(recommended range between 40000 and 40100)Port to access deployed Creatio website. For example, "40015."
-
Click Enter to start deploying Creatio. Operation might take some time.
Deploy Creatio using terminal
-
Open the terminal of Visual Studio Code or run the command-line interface as administrator.
-
Run the
clio deploy-creatio --SiteName SomeCreatioWebsite --SitePort SomePort --ZipFile PathToSomeCreatioArchive
command, where:SomeCreatioWebsite
is an arbitrary name of your Creatio website.SomePort
is the port number to deploy Creatio instance.PathToSomeCreatioArchive
is the full path to the Creatio setup zip archive including archive name.
This starts deploying Creatio. Operation might take some time.
As a result:
- Creatio instance will be deployed.
- Creatio login page will be opened in the browser. Log in to Creatio using your user credentials.
Now you can start using Clio and execute different operation with Creatio using Clio directly from Visual Studio Code based on your business goals. Instructions: Use Clio.
See also
Resources
Official Clio documentation (GitHub)
Clio explorer extension for Visual Studio Code
Clio tutorials (YouTube)