I’m working on modularizing my models with Hops components. Especially, i want this to work along with rhino.compute.
An issue i have is, where and how can i host my Hops components so that they are accessible to my rhino compute instances, but not freely on the internet. I’ve been thinking of a few solutions:
Have them hosted on Github and work with a Private Access Token but it seems the use of PAT in the URL have been deprecated
Have the definitions hosted on each of the servers with a dedicated folder path, but for a reason i don’t really get, it seems that having rhino.compute run on a specific server doesn’t imply that i can query the the subcomponents from the very same server.
Have the definitions hosted on an open blob storage and whitelist IPs but it seems kind of shady and not very efficient especially for my local machine, that doesn’t have a static IP.
Something useful (i think) would be to be able to turn Hops path in a Curl, so that credentials enabling to logging to a private Github repo (for example) could be included.
Do you see another possible solution? For step 2 of what i tried, is there something that appears to be missing?
I installed the plugin and set the environment variable on both my local machine and remote server.
Locally it runs fine with my local server: here’s the answer to the request: as you see the path is correct, a Mesh is provided and calculated height is correct
When i try and request the remote compute server, this server doesn’t seem to compute the Hops component even though the path it gets is correct (see string output):
Result of the request with hardcoded (which is exactly the same as the one of step 4 that didn’t work, if you look at the screenshot).
Do i miss something here? @AndyPayne sorry for Yet Another Compute Related Question, but i think this may be closely related to the topics we’re already discussing?
Why is this important IMO: i think having such an option would be an interesting way to share files that rely on a Hops subcomponent that should remain private, making it accessible via an environment variable etc.
Happy to discuss it anytime, or if somebody finds a workaround.