-
Notifications
You must be signed in to change notification settings - Fork 25
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
configuration options for omero docker #6
Comments
Hi @pr4deepr
Probably the easiest way is to change what type of mount you are using in Rather than using a volume within the docker-compose.yml (here called "omero") you can mount an external directory:
Definitely. |
Hi Josh So i did what you said:
ran the command: docker-compose up -d It recreated only the omeroserver container, BUT, when I tried to login via the omerowebclient it showed the error: I changed the line 30 in the yml back to: - "omero:/OMERO", ran the docker compose command and its working now. When i run lsblk to list all the blocks, it gives me:
What am I doing wrong? Cheers |
Does the container have permissions to write to /pvol? |
Good point.. Sorry, but how do I check permissions of the container?? How do I set it? For the directory permissions:
I gave it another shot to see if I missed anything. I changed the yml file to include /pvol again and got this warning (?):
Also, if it has changed successfully, will it show up as remaining free space when uploading images using omero.insight client? |
Hi I used I decided to use a subdirectory /pvol/OMERO for the omero data directory to make it easier rather than the whole external drive.
it didnt have write permissions, so I used the following to change permissions to read and write for the user (u) and the group (g)
This was all done as user: ubuntu not as root. Changed
Restarted docker containers. Now, I can see the ~1TB free space within omero insight client now BTW, I accessed the omero server container to get a bash prompt:
The user ubuntu also had userid 1000, hence the reason to set write permissions for/pvol/OMERO using ubuntu. Another question? How do I go about maintaining the server and installing any plugins if needed?? Cheers |
Hi Pradeep,
Yes. That's effectively part of the public API.
You'll want to change the ~Josh |
@will-moore may want to comment, but did you also update the server image to include the steps under https://github.com/ome/omero-figure#enabling-figure-export (Figure is special in that some steps are for omero-web and some are for omero-server) |
Thanks Now, the export option is active in Omero.Web, but when I export it, it gives the error that I need to install reportlab and markdown. What am I doing wrong? Should I be installing them somewhere else? Thanks |
Hi again I started an interactive bash prompt as root in the omeroserver container (container name is omeroserver): As mentioned in this link: https://github.com/ome/omero-figure#enabling-figure-export At the bash prompt within the omeroserver container:
I can now export pdfs and tiffs, which is great. I understand if I delete the containers and create them again, or if I want to create containers elsewhere, the export option will be gone. If I would like to automatically enable fIgure export in the future, do I create a custom dockerfile with the above commands? Thanks heaps. Pradeep |
@pr4deepr you are right, the installation steps will not be lost recreate the container. With the current infrastructure, your best option is probably to build your own image consuming the upstream diff --git a/docker-compose.yml b/docker-compose.yml
index 60fd75c..5c1dd02 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -14,7 +14,7 @@ services:
- "database:/var/lib/postgresql/data"
omeroserver:
- image: "openmicroscopy/omero-server:5.6"
+ build: omero-server
environment:
CONFIG_omero_db_host: database
CONFIG_omero_db_user: omero with an OMERO.server image defined as follows:
should start an OMERO.server with the server-side figure requirements when calling |
Hi @sbesson Just to summarise so I understand this well One question, from the output below, is it creating a container at each instance??? for ex, when it says intermediate container?? Output after running
Thanks |
@pr4deepr Docker images are composed of a succession of read-only layers, each of them corresponding to the instruction in the |
@sbesson and @joshmoore |
This issue has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/how-to-install-omero-web-add-on-apps-with-docker/47434/21 |
Hi
Thanks for making it possible to use OMERO via docker. It has simplified the process a lot.
I can get the omero server running on a virtual machine using:
docker-compose up -d
docker-compose logs -f
I can also login to OMERO.web and access the webclient.
I was running out of storage as the server has limited space. I have attached an external volume and mounted it. I would like to change the OMERO data directory to this external volume. This is under the assumption that all the image data will be stored in OMERO data directory.
If I've used the above 2 commands to setup the server, how do I access the configuration options within docker to change the data directory? Also, do I have to stop it, set it up and restart it? I only have a basic understanding of docker.
Thanks a lot.
Pradeep
The text was updated successfully, but these errors were encountered: