Skip to content

Commit

Permalink
merge master -Dorg -Snone: PR 72 (use ubuntu 20.04 as base instead of…
Browse files Browse the repository at this point in the history
… CentOS7)
  • Loading branch information
snoopycrimecop committed Dec 2, 2022
2 parents d247696 + 1a9949f commit 697ccf1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
27 changes: 17 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,33 +1,40 @@
FROM centos:centos7.9.2009@sha256:dead07b4d8ed7e29e98de0f4504d87e8880d4347859d839686a31da35a3b532f
FROM ubuntu:20.04
LABEL maintainer="[email protected]"

ENV DEBIAN_FRONTEND=noninteractive


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 ca-certificates \
RUN apt update
RUN apt install -y ansible sudo ca-certificates dumb-init\
&& ansible-galaxy install -p /opt/setup/roles -r requirements.yml \
&& yum -y clean all \
&& rm -fr /var/cache
&& apt -y autoclean \
&& apt -y autoremove \
&& rm -rf /var/lib/apt/lists/* /tmp/*


ARG OMERO_VERSION=5.6.5
ARG OMEGO_ADDITIONAL_ARGS=
ENV OMERODIR=/opt/omero/server/OMERO.server/

RUN ansible-playbook playbook.yml \
-e omero_server_release=$OMERO_VERSION \
-e omero_server_omego_additional_args="$OMEGO_ADDITIONAL_ARGS" \
&& yum -y clean all \
&& rm -fr /var/cache
&& apt -y autoclean \
&& apt -y autoremove \
&& rm -rf /var/lib/apt/lists/* /tmp/*


RUN curl -L -o /usr/local/bin/dumb-init \
https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64 && \
chmod +x /usr/local/bin/dumb-init
ADD entrypoint.sh /usr/local/bin/
ADD 50-config.py 60-database.sh 90-public.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"]
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +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

0 comments on commit 697ccf1

Please sign in to comment.