Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dainst/ojs-docker
DAI specific OJS3 Dockerfile
https://github.com/dainst/ojs-docker
Last synced: 3 months ago
JSON representation
DAI specific OJS3 Dockerfile
- Host: GitHub
- URL: https://github.com/dainst/ojs-docker
- Owner: dainst
- License: gpl-3.0
- Archived: true
- Created: 2018-10-15T22:11:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-09T19:16:04.000Z (almost 3 years ago)
- Last Synced: 2024-05-31T20:59:19.704Z (5 months ago)
- Language: Shell
- Size: 214 KB
- Stars: 2
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ojs3-docker
## Description
This repository offers a fully dockerized version of [PKP's](https://pkp.sfu.ca/) OJS 3 in addition to a set of DAI specific plugins.
## Usage
### Git submodules
Initialize submodules by running
git submodule update --init --recursive
### OJS SQL dump
The repository provides the SQL dump of a minimal installation. To use the minimal setup see the [README](mariadb_data/README.md). Alternatively you can your own SQL dump into [mariadb_data](mariadb_data) instead of using the [mariadb_data/init.sql_template](mariadb_data/init.sql_template).
### .env file
Copy the .env-default templatecp .env-default .env
and customize its contents. If you use the default init.sql, you should be ready to go without any changes.
### Docker
Managing the image is done by docker-compose.
Build the image with
docker-compose build
Start the container with
docker-compose up
Stop the container by terminating the process (ctrl+C) or using
docker-compose stop
Destroy all existing containers (including all changes to mariadb) withdocker-compose down -v
## XDebugThe repo is configured for using xdebug. However, one needs to make the appropriate settings inside one's own ide. Dependig on which type one is using, this differ a little.
### VSCode
If you don't have a lunch.json
Click on Debug -> Start debugging. In the opening popup choose php as option.
Now you have a autogenerated lunch.json, the countend should look like this.
You need to add the pathMappings, and adjust the path to your lokal folder.```json
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/var/www/html": "/path/to/workspace/ojs"
}
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}
```Now you can start a debug session. Navigate to the debug tab on the right side of your screen and hit the small run symbol in your upper part of the righthand column.
A small overlay with a play, stop and other buttons should open.
## License
Licensed under GPL-3.0. For further information see LICENSE.
## Troubleshooting
### Error (Windows): standard_init_linux.go:211: exec user process caused "no such file or directory"
- change EOL conversion for docker-entrypoint.sh. and docker-entrypoint-install.sh => change from CRLF (Windows) to LF (Linux),
cf. https://stackoverflow.com/questions/51508150/standard-init-linux-go190-exec-user-process-caused-no-such-file-or-directory### Error: Access denied for user 'root'@'172######' (using password: NO/YES)
- add user to db-container via SQL, following:
https://medium.com/tech-learn-share/docker-mysql-access-denied-for-user-172-17-0-1-using-password-yes-c5eadad582d3