Trying to build a custom deployment using a branch from the main Openremote repo

Hello everyone,
I’ve been experimenting with open remote for a while and am now trying to set up a custom deployment. The issue im running into is that I need to use modbus which is currently broken in the custom deployment repo but fixed in the branch fix/modbusRTU. Im wondering if there is an easy way to deploy the custom repo while using the new modbus integration.
Any help would be much appreciated

Hi Mito,

I would imagine that it would be very similar to creating a custom deploy with custom assets/ Custom protocol / agent. Making a custom deployment is documented in OR documentation. I answered my own question on how to deploy a custom asset. See my [method]

hi rgilham, thank you for your reply.
Il see if I can apply your solution to my problem.

Hi @mito, today we released OpenRemote 1.20.0 which includes all those fix/modbusRTU branch changes.

For release notes, see:

Hi Mito, indeed the new modbus branch is finally merged.

Of you encounter this in the future, you’ll have to manually build the manager docker container and refer to that in your custom project.

the custom project docker compose files by default refer to:
image: openremote/manager:${MANAGER_VERSION:-latest}
This will pull the latest manager image from dockerhub, unless it is allready present in your local docker environment.
So fetch the branch you want of the main repository, build that and then build the image:

docker build -t openremote/manager:latest ./manager/build/install/manager/

Now your custom project will rely on that locally build image instead. (better practice to use your own tags instead of ‘latest’ for this though).

Hope this helps.