Skip to content

Commit

Permalink
Merge pull request #75 from jburel/rocky9
Browse files Browse the repository at this point in the history
Rocky9
  • Loading branch information
jburel authored Dec 8, 2023
2 parents 87b855b + cc49fa9 commit 6685b72
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 29 deletions.
24 changes: 15 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
FROM centos:centos7.9.2009@sha256:be65f488b7764ad3638f236b7b515b3678369a5124c47b8d32916d6487418ea4
FROM rockylinux:9
LABEL maintainer="[email protected]"

ENV LANG en_US.utf-8

RUN mkdir /opt/setup
WORKDIR /opt/setup
ADD playbook.yml requirements.yml /opt/setup/

RUN yum -y install epel-release \
&& yum -y install ansible sudo \
&& ansible-galaxy install -p /opt/setup/roles -r requirements.yml \
&& yum -y clean all \
RUN dnf -y install epel-release
RUN dnf install -y glibc-langpack-en
ENV LANG en_US.utf-8

RUN dnf -y install ansible-core sudo
RUN ansible-galaxy collection install ansible.posix
RUN ansible-galaxy collection install community.general

RUN ansible-galaxy install -p /opt/setup/roles -r requirements.yml \
&& dnf -y clean all \
&& rm -fr /var/cache

RUN ansible-playbook playbook.yml \
&& yum -y clean all \
RUN ansible-playbook playbook.yml -e 'ansible_python_interpreter=/usr/bin/python3' \
&& dnf -y clean all \
&& rm -fr /var/cache


RUN curl -L -o /usr/local/bin/dumb-init \
https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 && \
https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64 && \
chmod +x /usr/local/bin/dumb-init
ADD entrypoint.sh /usr/local/bin/
ADD 50-config.py 60-default-web-config.sh 98-cleanprevious.sh 99-run.sh /startup/
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ OMERO.web Docker

[![Actions Status](https://github.com/ome/omero-web-docker/workflows/Build/badge.svg)](https://github.com/ome/omero-web-docker/actions)

A CentOS 7 based Docker image for OMERO.web.
A RockyLinux 9 based Docker image for OMERO.web.

Also see [SUPPORT.md](./SUPPORT.md)

Running OMERO with docker-compose
---------------------------------

The [omero-deployment-examples repository](https://github.com/ome/omero-deployment-examples/) repository
The [omero-deployment-examples repository](https://github.com/ome/omero-deployment-examples/) repository
contains a number of different ways of deployment OMERO. Unless you are looking for something
specific, *we suggest starting with [docker-example-omero](https://github.com/ome/docker-example-omero).*

Expand All @@ -26,18 +26,19 @@ This image also includes these OMERO.web plugins with a default configuration:
- [iviewer](https://www.openmicroscopy.org/omero/iviewer/)
- [mapr](https://pypi.org/project/omero-mapr/)
- [parade](https://pypi.org/project/omero-parade/)
- [autotag](https://pypi.org/project/omero-autotag/)
- [tagsearch](https://pypi.org/project/omero-webtagging-tagsearch)

The following plugins are installed but disabled:
- [fpbioimage](https://pypi.org/project/omero-fpbioimage/)
- [autotag](https://pypi.org/project/omero-webtagging-autotag/)
- [tagsearch](https://pypi.org/project/omero-webtagging-tagsearch/)


To enable them or to change the configuration of a default plugin see the relevant plugin documentation.


To run the Docker image you can set a single OMERO.server to connect to by defining `OMEROHOST`:

docker run -d --name omero-web \
docker run -d --name omero-web-standalone \
-e OMEROHOST=omero.example.org \
-p 4080:4080 \
openmicroscopy/omero-web-standalone
Expand Down
4 changes: 0 additions & 4 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
- role: ome.omero_web
- role: ome.java
vars:
ice_version: "3.6"
ice_install_devel: False
ice_install_python: False
ice_python_wheel: https://github.com/ome/zeroc-ice-py-centos7/releases/download/0.1.0/zeroc_ice-3.6.4-cp27-cp27mu-linux_x86_64.whl
omero_web_systemd_setup: False
omero_web_setup_nginx: False
# These defaults can be overriden at runtime
Expand Down
11 changes: 2 additions & 9 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# External Ansible roles required by this repository

- name: ome.basedeps
version: 1.2.0

- src: ome.java
version: 2.1.0

- src: ome.omero_common
version: 0.3.4
version: 2.2.0

- name: ome.omero_web
version: 4.0.1
version: 5.0.0
10 changes: 10 additions & 0 deletions standalone/01-default-webapps.omero
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,15 @@ config append -- omero.web.mapr.config '{"menu": "anyvalue", "config":{"default"
config append -- omero.web.apps '"omero_parade"'
config append -- omero.web.ui.center_plugins '["Parade", "omero_parade/init.js.html", "omero_parade"]'

# Add autotag to webclient
config append omero.web.apps '"omero_autotag"'
config append omero.web.ui.center_plugins '["Auto Tag", "omero_autotag/auto_tag_init.js.html", "auto_tag_panel"]'

# Add tagsearch to webclient
config append omero.web.apps '"omero_tagsearch"'


# Top links
config set -- omero.web.ui.top_links '[["Data", "webindex", {"title": "Browse Data via Projects, Tags etc"}],["History", "history", {"title": "History"}], ["Mapr", {"viewname": "maprindex_anyvalue"}, {"title": "Find Any Value"}], ["Figure", "figure_index", {"title": "Open Figure in new tab", "target": "_blank"}], ["Help", "https://help.openmicroscopy.org/", {"title":"Open OMERO user guide in a new tab", "target":"new"}]]'

config append omero.web.ui.top_links '["Tag Search", "tagsearch"]'
4 changes: 2 additions & 2 deletions standalone/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ RUN /opt/omero/web/venv3/bin/pip install \
omero-fpbioimage \
omero-mapr \
omero-parade \
omero-webtagging-autotag \
omero-webtagging-tagsearch \
omero-autotag \
omero-tagsearch \
whitenoise

ADD 01-default-webapps.omero /opt/omero/web/config/
Expand Down

0 comments on commit 6685b72

Please sign in to comment.