Sign inSign up

lucasdiedrich/omp

By lucasdiedrich

Updated about 7 years ago

Open Monograph Press is an open source software platform for managing the editorial workflow.

Image
1

552

lucasdiedrich/omp repository overview

OMP (Open Monograph Press) - PKP - Container/Docker

Open Monograph Press is an open source software platform for managing the editorial workflow required to see monographs, edited volumes and, scholarly editions through internal and external review, editing, cataloguing, production, and publication. OMP can operate, as well, as a press website with catalog, distribution, and sales capacities.

This container was built based on buildpkg.sh from own pkp-ocs, so all the dependencies are already included and the software is ready to run. Also is built on top of Alpine Linux which is incredible lightweight.

How to use

docker run --name omp \
           -p 8080:80 -p 8443:443 \
           -e SERVERNAME=... \
           -v /etc/localtime:/etc/localtime \
           -d lucasdiedrich/omp

Now just access http://127.0.0.1:8080/index/install and continue through web installation and finish your install and configs. To install automatically when the container init you can use PKP_CLI_INSTALL=1, and use the others environment variables to automatize the process.

Versions

All version tags can be found at Docker Hub Tags tab.

Environment Variables

NAMEDefaultInfo
SERVERNAMElocalhostUsed to generate httpd.conf and certificate
PKP_CLI_INSTALL0Used to install omp automatically when start container
PKP_DB_HOSTlocalhostDatabase host
PKP_DB_USERompDatabase username
PKP_DB_PASSWORDompDatabase password
PKP_DB_NAMEompDatabase name

Special Volumes

VolumeInfo
/var/www/html/publicAll public files
/var/www/html/config.inc.phpIf not provided a new one will be created
/var/www/filesAll uploaded files
/etc/ssl/apache2/server.pemSSL crt certificate
/etc/ssl/apache2/server.keySSL key certificate
/var/log/apache2Apache2 Logs
/var/www/html/.htaccessApache2 HTAccess
/usr/local/etc/php/conf.d/custom.iniPHP5 custom.init
/etc/localtimeTo set container clock as the host clock

Upgrading OMP

The update process is easy and straightforward, once the container running the new version just run the exec command below, and it will upgrade the OMP database and files.

docker exec -it omp /usr/local/bin/omp-upgrade

After the upgrade diff your config.inc.php with the version of the new OMP version, in some new version new variables can be added to the file.

Docker-compose

There is an example docker-compose docker-compose, to run it download the raw file to an folder and exec the command below:

docker-compose up

SSL

By default at the start of Apache one script will check if the SSL certificate is valid and its CN matches your SERVERNAME, if don't it will generate a new one. The certificate can be overwrite using the volume mount.

index.php

By default the restful_url are enable and apache its already configured, so there is no need to use index.php over url.

php.ini

Any custom php configuration can be made at /etc/php7/conf.d/0-omp.ini, there are some optimized variables already, you can check at php.ini.

License

MIT © Lucas Diedrich

Tag summary

Content type

Image

Digest

Size

76.9 MB

Last updated

about 7 years ago

docker pull lucasdiedrich/omp