forked from ome/omero-server-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge master -Dorg -Snone: PR 72 (use ubuntu 20.04 as base instead of…
… CentOS7)
- Loading branch information
Showing
2 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters