-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploying a open on demand demo with ondemand-dex authentication #31
Comments
As an off the top guess, I'd guess that That's the first thing I'd check - if
|
Hmmmmm, OK - Do you have selinux enabled? That's the only thing I could think of.
I don't think so - I'm pretty sure you just install and start the service and everything should just happen. I'll play around with it a bit on my end and see if there's anything you can do. |
OK - I just removed the database, restarted the service and everything came back up. What I'm guessing you need is actual dex configurations. I guess I may have assumed you had configured it, maybe you didn't. That may be the issue - it may not work out of the box. You have to provide some sort of configuration for it, like LDAP. Here's the link for configuring dex to look at your LDAP. |
Hi there, thanks |
For instance a containerized version ....etc? |
Yea, we have these rake tasks in the root of the project to build a development container. Though you should note that this is for a localhost development - not for deploying to a VM where others can connect to it. So it's something you can boot up and demo, but not something you should setup for others to connect to. https://github.com/OSC/ondemand/blob/master/DEVELOPMENT.md#fullstack-container |
Yes, makes sense thanks. |
bundle config --local path vendor/bundle =================== It does not work on my machine...anything more standard ? |
I don't see what the errors are to help you with that, but yes, there's an alternative prebuilt containers here: https://github.com/ubccr/hpc-toolset-tutorial/ . Though it's a large docker-compose project with Slurm and 2 compute nodes and LDAP node and coldfront |
OK I had to reinstall bundler...please hold on ... |
I got the errorInstalling rspec-core 3.10.1
/usr/bin/ruby.exe -I /usr/share/rubygems -r ./siteconf20240517-1062-jyxq1d.rb extconf.rb ========================================= Please advice Kind regards |
I think you need Seems like you'd need a bunch of stuff setup like libraries and so on. I don't know how to do that in Windows. Still, maybe the containers from https://github.com/ubccr/hpc-toolset-tutorial/ are your best bet as you can pull the images directly from dockerhub without having to build them. |
Hi, On another machine ....roberto_scipioni@Roberto3DOERK5O:~/ondemand/src$ sudo rake dev:start ========================================== Please advice Kind regards |
I would not use |
Also the command should be |
============= ====================================== |
Issuing |
Ok working now......hold on :-) |
Once everything is compiled/installed, how do I start the container OpenOn Demand ? |
|
localhost:8080 is asking for an email and a password |
username@localhost worked. OK, How would I go about adding Jupyter to the container ? Kind regards |
Yea I'm not sure how much mileage you're going to get out of that single container. The docker-compose containers in https://github.com/ubccr/hpc-toolset-tutorial/ not only have OnDemand but have a Slurm cluster too. The OnDemand container in that repository is already configured to submit to the Slurm cluster (also a part of that container) with the Jupyter app installed in it. |
OK thanks. I will try https://github.com/ubccr/hpc-toolset-tutorial/ |
I loaded the containers from https://github.com/ubccr/hpc-toolset-tutorial/ Internal Server Error ..........xdmod and coldfront do seem to load...though ... Please advice Roberto |
I have destroyed the previous containers. Downloaded them again and it now works :-) |
Hi, I was wondering whether it would e possible to add users to the demo. I suppose I would need to go inside the containers and modify the configs etc? |
Yes you can see how they get setup in the LDAP container (there's an LDAP container). That said there are several users created, mostly for coldfront demonstration: Though they all have the same password - so you should use precaution if you're setting this up somewhere where many people can access it. |
Thanks, I will try that. |
Right, so where is the "base.config" ? |
It appears to be copied into the container when built - then removed during the build process. In any case - you can pull it from github: https://raw.githubusercontent.com/ubccr/hpc-toolset-tutorial/172b52cb18c3c42e5da0a44f8855bd7b738eb5e3/ldap/base.config That said - I don't know how to add users to LDAP, though a quick google search indicates the command is |
Hi, The question was more like where should the file go ...in which directory? |
Rerunning that exact file(s) won't do anything because they've already been ran during the image build process. If you are trying something like editing those files to add more users - then it doesn't matter where they go. You're just sourcing information (environment variables) that get's written out to files to The actual .sh and .config file location doesn't matter because the shell script will behave regardless of the |
OK thanks |
We are trying to setup a demo of open on demand with ondemand-dex. We installed all the packages but however we are not sure how to setup the configs. Can you please advise us so we can proceed further.
System details:
We logged into the VM and do the following as per documentation.
sudo dnf config-manager --set-enabled powertools
sudo dnf install epel-release
sudo dnf module enable ruby:3.1 nodejs:18
sudo dnf install https://yum.osc.edu/ondemand/3.1/ondemand-release-web-3.1-1.el8.noarch.rpm
sudo dnf install ondemand
sudo systemctl start httpd
sudo systemctl enable httpd
yum install ondemand-dex
systemctl restart ondemand-dex
systemctl enable ondemand-dex.service
systemctl start ondemand-dex.service
We are not sure what to change in the config file to proceed further.
Can you please advise on how to set the config files and how to proceed further. At this stage we are only interested in a demo therefor we only need the simplest authentication.
Look forward to hear from you.
Muneeb/Roberto
RedOak Consulting
The text was updated successfully, but these errors were encountered: