Hi there, I have service and function which loads data into service, and then I will have next function to test. But before testing it, I'd like to be able to look into service to check that data was loaded correctly. I tried to use dagger -E but I do not know how to expose port of service that is used by function. Right now I call import function and inside I have WithServiceBinding("spicedb", sdb). line and I'm stuck.
#how to expose service and run function
1 messages · Page 1 of 1 (latest)
I just changed order, and invoked import function inside spicedb service function. But my question stays: how to start service, call function and then expose ports to look inside service?
@ornate locust do you want to do this as a one-shot thing to check if you're loading the data correctly into your service?
or do you want to have a function in your module that allows to start your service listening to a port so anyone can use it?
@wise inlet one-shot
if that's the case, you can always add a Terminal call in your pipeline which will give you a shell with all the service binded (if present) where you can install whatever you need to check if your service is function correctly