Hi cockpit developers,
I'm new to cockpit and working on creating a new plugin, which should
enable oVirt users to install oVirt hosted engine through cockpit UI.
I'm at the beginning of the project and trying to create a proper
development environment.
I'm using react and want to work with webserver I need a special
configuration on cockpit side which I'm hoping you can help me with.
On my local env I installed cockpit and cloned the starter-kit, created
a link to base1 directory, and added this script line to my index.html file:
<script type="text/javascript" src="../base1/cockpit.js"></script>
My app can import cockpit, now I need to configure cockpit to interact with
a local running VM instead of my own PC.
I want that the cockpit service which is running local on my machine
connect to a cockpit bridge running on a local VM as a primary server,
basically:
[image: image.png]
The end result I want to achieve is that when I'm developing my plugin I
will use webserver and only see the plugin windows (without the cockpit UI)
and each interaction with cockpit will be triggered on a remote VM running
cockpit, this way I will not have to refresh my page to see changes in the
UI.
Can you help me understand the required configuration for cockpit ?