These instructions create an OMERO instance, then demonstrate how data.dir
is ignored when starting up in RO data directory mode.
Note: Initially I was dumping the database before shutting down the stack, then loading it again in during database initialisation, but this proved to be irrelevant so I have simplified the example to remove these steps.
# New instance initalised
docker-compose up -d
# Import an image
docker exec -it omero-docker_omeroserver_1 /omero-import-example.sh WwDgVUQ489LnPF
# Shutdown the stack
docker-compose down
Modify the Docker compose file to replace all references to /OMERO.old
with /OMERO.new
.
Switch to OMERO RO data directory mode by commenting in these lines:
CONFIG_omero_cluster_read__only.db: "false"
CONFIG_omero_cluster_read__only.repo: "true"
CONFIG_omero_pixeldata_memoizer_dir_local: "/tmp/BioFormatsCache"
# Start up the stack
docker-compose up -d
# Examine the repos
docker exec -it omero-docker_omeroserver_1 \
/opt/omero/server/OMERO.server/bin/omero \
-s localhost -u root -w WwDgVUQ489LnPF fs repos
The data.dir
setting is not respected and remains /OMERO.old
.
Created session for root@localhost:4064. Idle timeout: 10 min. Current group: system
# | Id | UUID | Type | Path
---+----+--------------------------------------+---------+-------------------------------------------------------------
0 | 58 | 46033d9c-bc2b-44d1-93a9-ab87b398bce2 | Public | /OMERO.old
1 | 59 | ScriptRepo | Script | /opt/omero/server/OMERO.server-5.6.3-ice36-b228/lib/scripts
2 | 60 | 335c6801-381e-4bc7-8c0d-177e55d23f7e | Managed | /OMERO.old/ManagedRepositor
This is in contrast to if the data.dir
setting is changed, but RO mode is not set; in that scenario, the repo correctly updates.