ome / omero-test-infra

Test infrastructure for decoupled repositories
BSD 2-Clause "Simplified" License
3 stars 14 forks source link

Document how web-apps should be configured #30

Open manics opened 5 years ago

manics commented 5 years ago

The only example of a web-app that requires configuration is mapr: https://github.com/ome/omero-mapr/blob/0.2.3/.omeroci/app-config But the configuration file /opt/omero/web/config/10-mapr.omero is ignored because the config files are only loaded on startup, and the OMERO.web Docker container is already running.

joshmoore commented 5 years ago

Do you know of a mechanism that would allow what's attempted here?

manics commented 5 years ago

You'd need to install the app and the config before starting the container. In practice that probably means building the container in docker-compose (run the app-config and install scripts at build time). Conveniently that could also deal with https://github.com/openmicroscopy/omero-test-infra/issues/29

joshmoore commented 5 years ago

With the current setup, probably the only way to make that work would be to either have the equivalent of app-config in the app's Dockerfile or to have a whole infra directory:

# docker-compose.yml
build: ../.omeroci/infra-image

(if the latter will even work)

manics commented 5 years ago

I briefly tried that last week, and it turned out to be more complicated since you effectively need to run all the app stages during build, which means rearchitecting this repo. A separate infra-image dir would work but means duplicating the code used in the existing setup stages.