Commit d4e483db authored by Jaime L Magiera's avatar Jaime L Magiera
Browse files

Dockerfile for testing

parent 46cb8653
# omeka-s-rhel8
FROM ubi8/php-73
LABEL maintainer="Jaime Magiera <jaimelm@umich.edu>"
ENV BUILDER_VERSION 1.10
LABEL io.k8s.description="Platform for building omeka-s" \
io.k8s.display-name="Omeka-s" \
io.openshift.expose-services="8080:http" \
io.openshift.tags="builder,omeka"
USER root
RUN /bin/arch
RUN yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
RUN yum install -y gd msmtp && yum clean all -y
# TODO (optional): Copy the builder files into /opt/app-root
#COPY ./test/test-app/ /opt/app-root/
RUN mv $STI_SCRIPTS_PATH/run $STI_SCRIPTS_PATH/run-base \
&& mv $STI_SCRIPTS_PATH/assemble $STI_SCRIPTS_PATH/assemble-base
COPY ./s2i/bin/ /usr/libexec/s2i
COPY ./omeka-s-fresh/ /opt/app-root/src/omeka-s
COPY ./modules /opt/app-root/src/omeka-s/modules/
COPY ./themes /opt/app-root/src/omeka-s/themes/
RUN rm /opt/app-root/src/omeka-s/application/config/module.config.php
COPY ./config-application/application/config/module.config.php /opt/app-root/src/omeka-s/application/config/module.config.php
RUN rm /opt/app-root/src/omeka-s/application/src/Media/Ingester/OEmbed.php
COPY ./config-application/application/src/Media/Ingester/OEmbed.php /opt/app-root/src/omeka-s/application/src/Media/Ingester/OEmbed.php
# Replace config with correct mail properties
RUN rm /opt/app-root/src/omeka-s/config/local.config.php
COPY ./local.config.php /opt/app-root/src/omeka-s/config/local.config.php
# Set the smtp configuration to use msmtp instead of sendmail
RUN sed -i "s/sendmail/msmtp/g" /opt/app-root/src/omeka-s/application/config/module.config.php
RUN chown -R 1001:1001 /opt/app-root
USER 1001
EXPOSE 8080
CMD ["/usr/libexec/s2i/usage"]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment