-
Notifications
You must be signed in to change notification settings - Fork 13
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
setting up bash environment for omero-server and omero-web users #59
Comments
Thanks as always for the feedback. A few immediate thoughts. 1- ansible-role-omero-server/tasks/omero-user.yml Lines 6 to 13 in ed4960d
2- which workflows do you have in mind? For invoking OMERO CLI commands, the |
Would it be too invasive for ansible to do something like that? |
@dsudar the idea of the As this should suffice to make the OMERO CLI usable out of the box for any user on the system (incl. |
@sbesson ah yes of course. One thing to do in that case is adding /opt/ice/bin to the PATH. Only the "omero-server" user will actually need that but it can't hurt. And sorry for bringing up something entirely different: why, in the docs and implemented in the roles, are the venv3 environments owned by root and not by the omero-{server, web} users? Whenever you want to pip install a plugin, you have to first become root, remember to activate that specific venv, etc. Wouldn't it be much easier to let the omero-{server, web} own their own venv and have it be activated upon login to that account? |
The As per the ownership question, I did not implement this and thus my answer might not be the most authoritative one. I think the idea was to follow the principes of a package manager i,.e. requires |
@dsudar I implemented this in the Ansible role 😄 . The goal was to have everything root owned read-only, following best practice for application installations. In practice this didn't work as OMERO.server expected write access to several directories, it's not as simple as making |
At least for the "ansible-example-omero-onenode" playbook and under Ubuntu 20.04, the omero-server and omero-web users are created but without a usable bash environment. Would be nice to have those accounts be immediately usable:
1: currently it gives a /bin/sh shell instead of /bin/bash
2: add a .bash_profile and/or .bashrc that sets some of the required PATH and other env variables, e.g. for omero-server:
The text was updated successfully, but these errors were encountered: