Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update omeka Dockefile to use version 3.1.1 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.1-apache
FROM php:7.4-apache

RUN a2enmod rewrite

Expand All @@ -9,19 +9,20 @@ RUN apt-get -qq update && apt-get -qq -y --no-install-recommends install \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libpng-dev \
libjpeg-dev \
libmemcached-dev \
zlib1g-dev \
imagemagick

# install the PHP extensions we need
RUN docker-php-ext-install -j$(nproc) iconv mcrypt \
pdo pdo_mysql mysqli gd
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
RUN pecl install mcrypt-1.0.4
RUN docker-php-ext-enable mcrypt
RUN docker-php-ext-install -j$(nproc) iconv pdo pdo_mysql mysqli gd
RUN docker-php-ext-configure gd --with-jpeg=/usr/include/ --with-freetype=/usr/include/

RUN curl -J -L -s -k \
'https://github.com/omeka/omeka-s/releases/download/v1.0.0-beta3/omeka-s.zip' \
'https://github.com/omeka/omeka-s/releases/download/v3.1.1/omeka-s-3.1.1.zip' \
-o /var/www/omeka-s.zip \
&& unzip -q /var/www/omeka-s.zip -d /var/www/ \
&& rm /var/www/omeka-s.zip \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Omeka-S in docker
# Omeka-S in docker

There is also example of docker-compose.yml file which can be used for development.
It creates 3 containers:
Expand Down
26 changes: 14 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
version: '2'
version: '2.4'

services:
db:
image: mysql:5.7
restart: always
environment:
image: mariadb:10.6
volumes:
- omekadb:/var/lib/mysql
restart: unless-stopped
environment: # the mysql user is 'root'
MYSQL_ROOT_PASSWORD: omeka
MYSQL_DATABASE: omeka
MYSQL_USER: omeka
MYSQL_PASSWORD: omeka

db_admin:
image: phpmyadmin/phpmyadmin
restart: always
links:
- db:db
restart: unless-stopped
ports:
- "8080:80"

omeka-s:
omeka:
depends_on:
- db
build: ./
image: klokantech/omeka-s
build: .
image: fsg/omeka-s
ports:
- "80:80"
- "8000:80"
volumes:
- ./modules/:/var/www/html/modules/
- ./themes/custom/:/var/www/html/themes/custom/
restart: always
restart: unless-stopped

volumes:
omekadb: