Documentation

Start the Nomirun module with a containerized Nomirun Host

1. Create a cluster and build the module

First, we need to create a Nomirun cluster and build the module. Make sure your remote –nuget-server-name is defined.

Then add a host MyShopApi to the cluster which will run the MyModule module.

 nomirun cluster new --cluster-name "MyApp"
 nomirun module build --module-name "CrmService" --version 1.0.1 --nuget-server-name "Feedz.io"
 nomirun cluster add-host --cluster-name "MyApp" --host-name "CrmHost" --modules "CrmService@1.0.1"
        

2. Generate .env configuration file to inject into the container

Then, we need to generate the .env file to run it in the container.

 nomirun cluster configure --cluster-name "MyApp" --nuget-server-name "Feedz.io" --target-format DockerEnvFile
        

3. Start Nomirun cluster

Please note that you cannot start a module without building it first.

Once you have configured the cluster, you can start the cluster:

 nomirun cluster start --cluster-name "MyShop" --type Container
        

This will run module CrmService 1.0.0 with containerized Nomirun Host on your PC.

Docker desktop / Podman desktop needs to be installed to do this.

4. Stop Nomirun cluster

To stop the Nomirun cluster from the CLI, use the command below. You can also manually stop the running Nomirun Host container.

 nomirun cluster stop --cluster-name "MyShop" --type Container