forked from lucasdiedrich/ojs
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
625 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
php73 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Set your journal Tag: | ||
COMPOSE_PROJECT_NAME=journal | ||
PROJECT_DOMAIN=journal.localhost | ||
SERVERNAME=$PROJECT_DOMAIN | ||
|
||
# Warning: Dockerfile is not taking this variable yet. | ||
# OJS_BRANCH=ojs-stable-3_1_2-0 | ||
|
||
# IMPORTANT: Set a non used port. | ||
HTTP_PORT=8081 | ||
HTTPS_PORT=8481 | ||
ADMINER_HTTP=9081 | ||
|
||
# Remember this to fill your installation form in a clean installatio | ||
# MYSQL_VERSION=10.3 | ||
MYSQL_ROOT_PASSWORD=root | ||
MYSQL_USER=ojs | ||
MYSQL_PASSWORD=ojs | ||
MYSQL_DATABASE=ojs | ||
|
||
# OJS variables | ||
OJS_CLI_INSTALL=0 | ||
OJS_DB_HOST=db | ||
OJS_DB_DRIVER=mysqli | ||
OJS_DB_USER=ojs | ||
OJS_DB_PASSWORD=ojs | ||
OJS_DB_NAME=ojs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
FROM alpine:3.11 | ||
|
||
LABEL maintainer="Public Knowledge Project <[email protected]>" | ||
|
||
WORKDIR /var/www/html | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER=1 \ | ||
SERVERNAME="localhost" \ | ||
HTTPS="on" \ | ||
OJS_VERSION=3_3_0-7 \ | ||
OJS_CLI_INSTALL="0" \ | ||
OJS_DB_HOST="localhost" \ | ||
OJS_DB_USER="ojs" \ | ||
OJS_DB_PASSWORD="ojs" \ | ||
OJS_DB_NAME="ojs" \ | ||
OJS_WEB_CONF="/etc/apache2/conf.d/ojs.conf" \ | ||
OJS_CONF="/var/www/html/config.inc.php" | ||
|
||
|
||
# PHP_INI_DIR to be symmetrical with official php docker image | ||
ENV PHP_INI_DIR /etc/php/7.3 | ||
|
||
# When using Composer, disable the warning about running commands as root/super user | ||
ENV COMPOSER_ALLOW_SUPERUSER=1 | ||
|
||
# Basic packages | ||
ENV PACKAGES \ | ||
apache2 \ | ||
apache2-ssl \ | ||
apache2-utils \ | ||
ca-certificates \ | ||
curl \ | ||
ttf-freefont \ | ||
dcron \ | ||
patch \ | ||
php7 \ | ||
php7-apache2 \ | ||
runit \ | ||
supervisor | ||
|
||
# PHP extensions | ||
ENV PHP_EXTENSIONS \ | ||
php7-bcmath \ | ||
php7-bz2 \ | ||
php7-calendar \ | ||
php7-ctype \ | ||
php7-curl \ | ||
php7-dom \ | ||
php7-exif \ | ||
php7-fileinfo \ | ||
php7-ftp \ | ||
php7-gettext \ | ||
php7-intl \ | ||
php7-iconv \ | ||
php7-json \ | ||
php7-mbstring \ | ||
php7-mysqli \ | ||
php7-opcache \ | ||
php7-openssl \ | ||
php7-pdo_mysql \ | ||
php7-phar \ | ||
php7-posix \ | ||
php7-session \ | ||
php7-shmop \ | ||
php7-simplexml \ | ||
php7-sockets \ | ||
php7-sysvmsg \ | ||
php7-sysvsem \ | ||
php7-sysvshm \ | ||
php7-tokenizer \ | ||
php7-xml \ | ||
php7-xmlreader \ | ||
php7-xmlwriter \ | ||
php7-zip \ | ||
php7-zlib | ||
|
||
# Required to build OJS: | ||
ENV BUILDERS \ | ||
git \ | ||
nodejs \ | ||
npm | ||
|
||
# To make a smaller image, we start with the copy. | ||
# This let us joining runs in a single layer. | ||
COPY exclude.list /tmp/exclude.list | ||
|
||
RUN set -xe \ | ||
&& apk add --no-cache --virtual .build-deps $BUILDERS \ | ||
&& apk add --no-cache $PACKAGES \ | ||
&& apk add --no-cache $PHP_EXTENSIONS \ | ||
# Building OJS: | ||
# Configure and download code from git | ||
&& git config --global url.https://.insteadOf git:// \ | ||
&& git config --global advice.detachedHead false \ | ||
&& git clone --depth 1 --single-branch --branch $OJS_VERSION --progress https://github.com/pkp/ojs.git . \ | ||
&& git submodule update --init --recursive >/dev/null \ | ||
# Composer vudu: | ||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer.phar \ | ||
# To avoid timeouts with gitHub we use tokens: | ||
# TODO: Replace personal token by an official one. | ||
# && composer.phar config -g github-oauth.github.com 58778f1c172c09f3add6cb559cbadd55de967d47 \ | ||
# Install Composer Deps: | ||
&& composer.phar --working-dir=lib/pkp install --no-dev \ | ||
&& composer.phar --working-dir=plugins/paymethod/paypal install --no-dev \ | ||
&& composer.phar --working-dir=plugins/generic/citationStyleLanguage install --no-dev \ | ||
# Node joins to the party: | ||
&& npm install -y && npm run build \ | ||
# Create directories | ||
&& mkdir -p /var/www/files /run/apache2 /run/supervisord/ \ | ||
&& cp config.TEMPLATE.inc.php config.inc.php \ | ||
&& chown -R apache:apache /var/www/* \ | ||
# Prepare freefont for captcha | ||
&& ln -s /usr/share/fonts/TTF/FreeSerif.ttf /usr/share/fonts/FreeSerif.ttf \ | ||
# Prepare crontab | ||
&& echo "0 * * * * ojs-run-scheduled" | crontab - \ | ||
# Prepare httpd.conf | ||
&& sed -i -e '\#<Directory />#,\#</Directory>#d' /etc/apache2/httpd.conf \ | ||
&& sed -i -e "s/^ServerSignature.*/ServerSignature Off/" /etc/apache2/httpd.conf \ | ||
# Clear the image (list of files to be deleted in exclude.list). | ||
&& cd /var/www/html \ | ||
&& rm -rf $(cat /tmp/exclude.list) \ | ||
&& apk del --no-cache .build-deps \ | ||
&& rm -rf /tmp/* \ | ||
&& rm -rf /root/.cache/* \ | ||
# Some folders are not required (as .git .travis.yml test .gitignore .gitmodules ...) | ||
&& find . -name ".git" -exec rm -Rf '{}' \; \ | ||
&& find . -name ".travis.yml" -exec rm -Rf '{}' \; \ | ||
&& find . -name "test" -exec rm -Rf '{}' \; \ | ||
&& find . \( -name .gitignore -o -name .gitmodules -o -name .keepme \) -exec rm -Rf '{}' \; | ||
|
||
COPY root/ / | ||
|
||
EXPOSE 80 443 | ||
|
||
VOLUME [ "/var/www/files", "/var/www/html/public" ] | ||
|
||
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"] |
57 changes: 57 additions & 0 deletions
57
versions/3_3_0-7/alpine/apache/php73/docker-compose-local.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# File: docker-compose.yml | ||
# Access via "http://localhost:8081" | ||
# | ||
# Call example: | ||
# $ docker-compose up | ||
|
||
version: "3.6" | ||
|
||
networks: | ||
inside: | ||
external: false | ||
|
||
services: | ||
db: | ||
image: mariadb:10.2 | ||
# env_file: | ||
# - .env | ||
container_name: "ojs_db_${COMPOSE_PROJECT_NAME:-demo}" | ||
environment: | ||
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD:-ojsPwd}" | ||
MYSQL_DATABASE: "${MYSQL_DATABASE:-ojs}" | ||
MYSQL_USER: "${MYSQL_USER:-ojs}" | ||
MYSQL_PASSWORD: "${MYSQL_PASSWORD:-ojsPwd}" | ||
# volumes: | ||
# - ./volumes/db:/var/lib/mysql | ||
# - ./volumes/logs/db:/var/log/mysql | ||
# - ./volumes/config/db.charset.conf:/etc/mysql/conf.d/charset.cnf | ||
# - ./volumes/migration:/docker-entrypoint-initdb.d | ||
networks: | ||
- inside | ||
restart: always | ||
|
||
ojs: | ||
image: local/ojs:3_3_0-7 | ||
# env_file: | ||
# - .env | ||
container_name: "ojs_app_${COMPOSE_PROJECT_NAME:-demo}" | ||
hostname: "${COMPOSE_PROJECT_NAME:-demo}" | ||
restart: always | ||
ports: | ||
- "${HTTP_PORT:-8080}:80" | ||
- "${HTTPS_PORT:-443}:443" | ||
# volumes: | ||
# - /etc/localtime:/etc/localtime | ||
# - ./volumes/private:/var/www/files | ||
# - ./volumes/public:/var/www/html/public | ||
# - ./volumes/logs/app:/var/log/apache2 | ||
# # WARNING: You can only enable file-volumes if file exists in the container. | ||
# - ./volumes/config/ojs.config.inc.php:/var/www/html/config.inc.php | ||
# - ./volumes/config/apache.htaccess:/var/www/html/.htaccess | ||
# - ./volumes/php.custom.ini:/usr/local/etc/php/conf.d/custom.ini | ||
|
||
networks: | ||
- inside | ||
depends_on: | ||
- db | ||
restart: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# File: docker-compose.yml | ||
# Access via "http://localhost:8081" | ||
# | ||
# Call example: | ||
# $ docker-compose up | ||
|
||
version: "3.6" | ||
|
||
networks: | ||
inside: | ||
external: false | ||
|
||
services: | ||
db: | ||
image: mariadb:10.2 | ||
# env_file: | ||
# - .env | ||
container_name: "ojs_db_${COMPOSE_PROJECT_NAME:-demo}" | ||
environment: | ||
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD:-ojsPwd}" | ||
MYSQL_DATABASE: "${MYSQL_DATABASE:-ojs}" | ||
MYSQL_USER: "${MYSQL_USER:-ojs}" | ||
MYSQL_PASSWORD: "${MYSQL_PASSWORD:-ojsPwd}" | ||
# volumes: | ||
# - ./volumes/db:/var/lib/mysql | ||
# - ./volumes/logs/db:/var/log/mysql | ||
# - ./volumes/config/db.charset.conf:/etc/mysql/conf.d/charset.cnf | ||
# - ./volumes/migration:/docker-entrypoint-initdb.d | ||
networks: | ||
- inside | ||
restart: always | ||
|
||
ojs: | ||
image: pkpofficial/ojs:3_3_0-7 | ||
# env_file: | ||
# - .env | ||
container_name: "ojs_app_${COMPOSE_PROJECT_NAME:-demo}" | ||
hostname: "${COMPOSE_PROJECT_NAME:-demo}" | ||
restart: always | ||
ports: | ||
- "${HTTP_PORT:-8080}:80" | ||
- "${HTTPS_PORT:-443}:443" | ||
# volumes: | ||
# - /etc/localtime:/etc/localtime | ||
# - ./volumes/private:/var/www/files | ||
# - ./volumes/public:/var/www/html/public | ||
# - ./volumes/logs/app:/var/log/apache2 | ||
# # WARNING: You can only enable file-volumes if file exists in the container. | ||
# - ./volumes/config/ojs.config.inc.php:/var/www/html/config.inc.php | ||
# - ./volumes/config/apache.htaccess:/var/www/html/.htaccess | ||
# - ./volumes/php.custom.ini:/usr/local/etc/php/conf.d/custom.ini | ||
|
||
networks: | ||
- inside | ||
depends_on: | ||
- db | ||
restart: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
.babelrc | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.js | ||
.git | ||
.openshift | ||
.postcssrc.js | ||
.scrutinizer.yml | ||
.travis.yml | ||
/root/.composer | ||
/root/.npm | ||
/usr/local/bin/composer | ||
/var/cache/apk/* | ||
babel.config.js | ||
cypress | ||
dbscripts/xml/data/locale/en_US/sample.xml | ||
dbscripts/xml/data/sample.xml | ||
docs/dev | ||
lib/pkp/.git | ||
lib/pkp/cypress | ||
lib/pkp/js/lib/pnotify/build-tools | ||
lib/pkp/lib/components/*.css | ||
lib/pkp/lib/components/*.js | ||
lib/pkp/lib/swordappv2/.git | ||
lib/pkp/lib/swordappv2/.git | ||
lib/pkp/lib/swordappv2/test | ||
lib/pkp/lib/vendor/alex198710/pnotify/.git | ||
lib/pkp/lib/vendor/ezyang/htmlpurifier/smoketests/ | ||
lib/pkp/lib/vendor/ezyang/htmlpurifier/tests/ | ||
lib/pkp/lib/vendor/michelf/php-markdown/test | ||
lib/pkp/lib/vendor/adodb/adodb-php/.git | ||
lib/pkp/lib/vendor/nikic/fast-route/test/ | ||
lib/pkp/lib/vendor/oyejorge/less.php/test | ||
lib/pkp/lib/vendor/phpmailer/phpmailer/test/ | ||
lib/pkp/lib/vendor/pimple/pimple/ext/pimple/tests/ | ||
lib/pkp/lib/vendor/pimple/pimple/src/Pimple/Tests/ | ||
lib/pkp/lib/vendor/robloach/component-installer/tests/ | ||
lib/pkp/lib/vendor/robloach/component-installer/tests/ComponentInstaller/Test/ | ||
lib/pkp/lib/vendor/sebastian | ||
lib/pkp/lib/vendor/symfony/process/Tests/ | ||
lib/pkp/lib/vendor/symfony/translation/Tests/ | ||
lib/pkp/plugins/*/*/tests | ||
lib/pkp/tests | ||
lib/pkp/tools/travis | ||
lib/pkp/tools/travis | ||
lib/ui-library | ||
node_modules | ||
package-lock.json | ||
package.json | ||
plugins/*/*/tests | ||
plugins/auth/ldap | ||
plugins/blocks/relatedItems | ||
plugins/generic/announcementFeed | ||
plugins/generic/backup | ||
plugins/generic/browse | ||
plugins/generic/citationStyleLanguage/lib/vendor/citation-style-language/locales/.git | ||
plugins/generic/citationStyleLanguage/lib/vendor/guzzle/guzzle/tests/ | ||
plugins/generic/citationStyleLanguage/lib/vendor/guzzle/guzzle/tests/Guzzle/Tests/ | ||
plugins/generic/citationStyleLanguage/lib/vendor/satooshi/php-coveralls/tests/ | ||
plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/tests/ | ||
plugins/generic/citationStyleLanguage/lib/vendor/seboettg/collection/tests/ | ||
plugins/generic/citationStyleLanguage/lib/vendor/symfony/config/Tests/ | ||
plugins/generic/citationStyleLanguage/lib/vendor/symfony/config/Tests/ | ||
plugins/generic/citationStyleLanguage/lib/vendor/symfony/console/Tests/ | ||
plugins/generic/citationStyleLanguage/lib/vendor/symfony/debug/ | ||
plugins/generic/citationStyleLanguage/lib/vendor/symfony/event-dispatcher/Tests/ | ||
plugins/generic/citationStyleLanguage/lib/vendor/symfony/filesystem/Tests/ | ||
plugins/generic/citationStyleLanguage/lib/vendor/symfony/stopwatch/Tests/ | ||
plugins/generic/citationStyleLanguage/lib/vendor/symfony/yaml/Tests/ | ||
plugins/generic/coins | ||
plugins/generic/cookiesAlert | ||
plugins/generic/counter | ||
plugins/generic/customLocale | ||
plugins/generic/externalFeed | ||
plugins/generic/lucene | ||
plugins/generic/phpMyVisites | ||
plugins/generic/recommendBySimilarity | ||
plugins/generic/translator | ||
plugins/importexport/duracloud | ||
plugins/importexport/sample | ||
plugins/oaiMetadataFormats/jats | ||
plugins/paymethod/paypal/vendor/guzzle/guzzle/docs/ | ||
plugins/paymethod/paypal/vendor/guzzle/guzzle/tests/ | ||
plugins/paymethod/paypal/vendor/guzzle/guzzle/tests/Guzzle/Tests/ | ||
plugins/paymethod/paypal/vendor/omnipay/common/tests/ | ||
plugins/paymethod/paypal/vendor/omnipay/paypal/tests/ | ||
plugins/paymethod/paypal/vendor/symfony/event-dispatcher/ | ||
plugins/paymethod/paypal/vendor/symfony/http-foundation/Tests/ | ||
plugins/reports/subscriptions | ||
tests | ||
tools/buildpkg.sh | ||
tools/genLocaleReport.sh | ||
tools/genTestLocale.php | ||
tools/test | ||
vue.config.js | ||
webpack.config.js |
Oops, something went wrong.