Sign inSign up

demaniak/omeka-classic-base

By demaniak

Updated over 1 year ago

An image that can be used as a base for Omeka-classic 3.1.2.

Image
Content management system
0

445

demaniak/omeka-classic-base repository overview

Please see https://omeka.org/classic/docs/Installation/Installing/

This image can be used as a base for other images running Omeka Classic 3.1.2.

It aims to bundled the crucial applications and related PHP plugins needed by Omeka Classic.

For example, your docker file could look like this:

FROM demaniak/omeka-classic-base:3.1.2

# Omeka-Classic web publishing platform for digital heritage collections (https://omeka.org/classic/)

LABEL maintainer_name="Your Name Here"
LABEL maintainer_email="you@somewhere"

ARG version=3.1.2

WORKDIR /var/www/html

RUN rm -rf /var/www/html/*.htm*; rm -rf /var/www/html/*.php
ADD https://github.com/omeka/Omeka/releases/download/v${version}/omeka-${version}.zip /tmp/omeka-classic.zip
RUN unzip -d /tmp/ /tmp/omeka-classic.zip && \
mv -nv /tmp/omeka-${version}/plugins/* /var/www/html/plugins/ && \
mv -nv /tmp/omeka-${version}/themes/* /var/www/html/themes/ && \
rm -Rfv /tmp/omeka-${version}/themes; rm -Rfv /tmp/omeka-${version}/plugins && \
mv /tmp/omeka-${version}/* /var/www/html/ && \
rm -rf /tmp/omeka-classic*

WORKDIR /var/www/html

# Optional: copy some plugins and themes from a companion image
#COPY --from=demaniak/omeka-classic-mods:3.1.2.4 /var/www/html/themes /var/www/html/themes/
#COPY --from=demaniak/omeka-classic-mods:3.1.2.4 /var/www/html/plugins /var/www/html/plugins/

# Also note: some details around db.ini, php.ini and so on omitted. You can, for example, bind mount such assents into the container at run time

VOLUME [ "/var/www/html/files" ]

# set the file-rights
RUN chown -R www-data:www-data /var/www/html/ && \
chmod -R +w /var/www/html/files


#enable the rewrite module of apache
RUN a2enmod rewrite

EXPOSE 80

# Running Apache in foreground
CMD ["apache2-foreground"]

# Assumes you have a suitable startup script "docker-entrypoint.sh"
COPY docker-entrypoint.sh /var/www/html/docker-entrypoint.sh
RUN chmod 755 /var/www/html/docker-entrypoint.sh

ENTRYPOINT [ "/var/www/html/docker-entrypoint.sh" ]

Tag summary

Content type

Image

Digest

sha256:7f0bef356

Size

290.8 MB

Last updated

over 1 year ago

docker pull demaniak/omeka-classic-base:3.1.2