Omeka S Docker Image based on GNU/Linux Debian Sindominio

master
Siroco 2 years ago
commit 6536cb4cbd
Signed by: siroco
GPG Key ID: 1324098302A514B0
  1. 88
      Dockerfile
  2. 35
      README.md
  3. 7
      database.ini
  4. 14
      omeka.conf

@ -0,0 +1,88 @@
FROM registry.sindominio.net/debian as builder
# Install dependencies
ENV DEBIAN_FRONTEND noninteractive
ENV MYSQL_DATABASE omeka
ENV MYSQL_USER omeka
ENV MYSQL_PASSWORD omeka
ENV MYSQL_HOST db
RUN apt-get update && apt-get install -y git imagemagick wget unzip
RUN apt-get update && \
apt-get -qy install \
php-fpm php-mysql php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip php-imagick\
ghostscript wget sudo curl openssl imagemagick\
poppler-utils && \
apt-get clean
RUN useradd omeka -d /sindominio/
COPY omeka.conf /etc/php/7.3/fpm/pool.d/www.conf
RUN mkdir /run/php/
RUN mkdir logs
# TODO: Change Policy for PDF convert - https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion
RUN curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
RUN bash nodesource_setup.sh
RUN apt-get install -y nodejs
# Install omeka
WORKDIR sindominio
RUN chown omeka:omeka /sindominio
USER omeka
RUN git clone --recursive https://github.com/omeka/omeka-s.git
RUN chmod 775 omeka-s
WORKDIR /sindominio/omeka-s
RUN npm install
RUN npx gulp init
COPY database.ini config/database.ini
# Install modules Nov 2020
# oai pmh module
RUN wget https://github.com/Daniel-KM/Omeka-S-module-OaiPmhRepository/releases/download/3.3.5/OaiPmhRepository-3.3.5.zip -O /tmp/oaipmh.zip
RUN unzip /tmp/oaipmh.zip -d modules/
# import from omeka 2
RUN wget https://github.com/omeka-s-modules/Omeka2Importer/releases/download/v1.4.0/Omeka2Importer-1.4.0.zip -O /tmp/importer.zip
RUN unzip /tmp/importer.zip -d modules/
# bulk edition
RUN wget https://github.com/Daniel-KM/Omeka-S-module-BulkEdit/releases/download/3.3.12.4/BulkEdit-3.3.12.4.zip -O /tmp/bulkedit.zip
RUN unzip /tmp/bulkedit.zip -d modules/
# custom vocab
RUN wget https://github.com/omeka-s-modules/CustomVocab/releases/download/v1.3.1/CustomVocab-1.3.1.zip -O /tmp/customvocab.zip
RUN unzip /tmp/customvocab.zip -d modules/
# extract pdf content to text field
RUN wget https://github.com/omeka-s-modules/ExtractText/releases/download/v1.2.0/ExtractText-1.2.0.zip -O /tmp/extract.zip
RUN unzip /tmp/extract.zip -d modules/
# metadata links
RUN wget https://github.com/omeka-s-modules/MetadataBrowse/releases/download/v1.4.0/MetadataBrowse-1.4.0.zip -O /tmp/metadata.zip
RUN unzip /tmp/metadata.zip -d modules/
# TODO: bulk check - https://gitlab.com/Daniel-KM/Omeka-S-module-BulkCheck - depend Logs & Generic
RUN rm -rf /tmp/*.zip
USER root
RUN apt-get purge -qy nodejs git curl wget openssl
RUN apt-get -qy clean
EXPOSE 9000
VOLUME /sindominio/
CMD ["/usr/sbin/php-fpm7.3","--nodaemonize"]]

@ -0,0 +1,35 @@
# Omeka S Docker Image
Imágen de docker de OmekaS
## Configuración
Edita el fichero _database.ini_ con la configuración de la base de datos
Por ejemplo:
```
user = "omeka"
password = "omeka"
dbname = "omeka"
host = "db"
```
## Uso en Docker Compose
```
...
omeka:
image: registry.sindominio.net/omeka-s
restart: always
container_name: sd_omeka_s
links:
- db
volumes:
- data:/sindominio/omeka-s
...
```

@ -0,0 +1,7 @@
user = "omeka"
password = "omeka"
dbname = "omeka"
host = "db"
;port =
;unix_socket =
;log_path =

@ -0,0 +1,14 @@
[omeka]
user = omeka
group = omeka
listen = 9000
listen.owner = omeka
listen.group = omeka
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
Loading…
Cancel
Save