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

Build an ARM docker image for the OMERO server #87

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rockylinux:9
FROM rockylinux:9.3
LABEL maintainer="[email protected]"

RUN dnf -y install epel-release
Expand All @@ -13,6 +13,8 @@ ADD playbook.yml requirements.yml /opt/setup/

RUN dnf install -y ansible-core sudo ca-certificates
RUN ansible-galaxy install -p /opt/setup/roles -r requirements.yml


RUN dnf -y clean all
RUN rm -fr /var/cache

Expand All @@ -27,17 +29,21 @@ RUN ansible-playbook playbook.yml -vvv -e 'ansible_python_interpreter=/usr/bin/p
RUN dnf -y clean all
RUN rm -fr /var/cache

RUN curl -L -o /usr/local/bin/dumb-init \
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
WORKDIR /opt

RUN source omero/server/venv3/bin/activate

ADD entrypoint.sh /usr/local/bin/
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/d/dumb-init-1.2.5-7.el8.aarch64.rpm

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check this line please

8 or 9

ADD entrypoint.sh /usr/bin/
ADD 50-config.py 60-database.sh 99-run.sh /startup/


USER omero-server
EXPOSE 4063 4064
ENV PATH=$PATH:/opt/ice/bin

VOLUME ["/OMERO", "/opt/omero/server/OMERO.server/var"]

ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

ENTRYPOINT ["/usr/bin/entrypoint.sh"]
3 changes: 1 addition & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/local/bin/dumb-init /bin/bash

#!/usr/bin/dumb-init /bin/bash
set -e
source /opt/omero/server/venv3/bin/activate

Expand Down
2 changes: 2 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# External Ansible roles required by this repository
- name: ome.omero_server
src: https://github.com/khaledk2/ansible-role-omero-server/
version: aarch64_josh
Loading