I am currently building container to run OnDemand from Ubuntu base image. I have set the OnDemand in the container up till authentication, but when I try to log in with the credentials, I do not get the dashboard.
When I checked the logs I get this error: App 573 output: [2024-10-25 09:15:17 +0200 ] ERROR “[ActionDispatch::HostAuthorization::DefaultResponseApp] Blocked host: my_domain_name.com”.
I have not mounted the host home directory to the container, instead created a user inside the container, as I am currently only testing the container locally.
Also is it a good idea to run OnDemand inside container and deploying it on login node for production, would it create any issue with the scheduler?
I wouldn’t say it is no. I think deploying the package on a VM/login node is the better route.
If you’re looking to build and interact with a container locally (on your own machine) I’d follow these instructions on how to get a development container going. This is what I use when I need to hack around on something. Note that it’s not meant to run in production, but can give you some insight into what configuration you may be missing.