Sign inSign up

lucasdiedrich/ojs

By lucasdiedrich

Updated about 7 years ago

Open Journal Systems (OJS) is a journal management and publishing system.

Image
9

50K+

lucasdiedrich/ojs repository overview

OJS (Open Journal Systems) - PKP - Container/Docker

Open Journal Systems (OJS) is a journal management and publishing system that has been developed by the Public Knowledge Project through its federally funded efforts to expand and improve access to research.

This container was built based on buildpkg.sh from own pkp-ojs, 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 ojs \
           -p 8080:80 -p 8443:443 \
           -e SERVERNAME=... \
           -v /etc/localtime:/etc/localtime \
           -d lucasdiedrich/ojs

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 OJS_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
OJS_CLI_INSTALL0Used to install ojs automatically when start container
OJS_DB_HOSTlocalhostDatabase host
OJS_DB_USERojsDatabase username
OJS_DB_PASSWORDojsDatabase password
OJS_DB_NAMEojsDatabase 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 OJS

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 OJS database and files.

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

After the upgrade diff your config.inc.php with the version of the new OJS 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/php5/conf.d/0-ojs.ini, there are some optimized variables already, you can check at php.ini.

License

MIT © Lucas Diedrich

Tag summary

Content type

Image

Digest

Size

56 MB

Last updated

about 7 years ago

docker pull lucasdiedrich/ojs