Skip to content
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

Possibility to set UID and GID of omero-server user #18

Open
tstoeter opened this issue Jan 14, 2025 · 1 comment
Open

Possibility to set UID and GID of omero-server user #18

tstoeter opened this issue Jan 14, 2025 · 1 comment

Comments

@tstoeter
Copy link

Is there a possibility for the omero server container to set the UID and GID of the omero-server user, i.e. to respect the user setting from the docker-compose.yml?

  ...
  omeroserver:
    # This container uses the tag for the latest server release of OMERO 5
    # To upgrade to the next major release, increment the major version number
    image: "openmicroscopy/omero-server:5"
    user: 1234:2468
    environment:
      CONFIG_omero_db_host: database
      CONFIG_omero_db_user: omero
    ...

This would facilitate managing permissions of bind mounts for data storage on the host, e.g. having /OMERO on the host file system.

Currently, the omero-server user has 1000:992 as fixed UID:GID.

@joshmoore
Copy link
Member

joshmoore commented Jan 14, 2025

It's possible, but may require some coordination with assumptions in the upstream repositories.

https://github.com/search?q=repo%3Aome%2Fomero-server-docker%201000&type=code for example says that you also need to tell the ansible playbook which UID to use.

https://github.com/ome/omero-test-infra/blob/cda3ec65052d6933052c8683d080677c6c33dc73/docker#L267 looks to have a hard-coding as well, but that's less critical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants