new config based on https://github.com/DistributedProofreaders/dproofreaders/blob/master/SETUP/INSTALL.md
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -1,9 +1,9 @@
|
||||
FROM php:5.6-apache
|
||||
FROM php:8.1-apache
|
||||
|
||||
RUN mkdir -p /src && \
|
||||
cd /src && \
|
||||
curl -L -O https://www.phpbb.com/files/release/phpBB-3.0.14.tar.bz2 && \
|
||||
curl -L -O https://downloads.sourceforge.net/project/dproofreaders/dproofreaders/R201701/dproofreaders.R201701.tgz
|
||||
curl -L -O https://download.phpbb.com/pub/release/3.3/3.3.10/phpBB-3.3.10.tar.bz2 && \
|
||||
curl -L https://github.com/DistributedProofreaders/dproofreaders/archive/refs/tags/R202303.tar.gz -o dproofreaders.R202303.tar.gz
|
||||
|
||||
# libpng12-dev for php gd extension
|
||||
# libyaz4-dev for php yaz extension
|
||||
@@ -11,18 +11,18 @@ RUN mkdir -p /src && \
|
||||
# aspell is for WordCheck
|
||||
# vim-tiny, less are just for debugging
|
||||
RUN apt-get update && \
|
||||
apt-get install -y libpng12-dev libyaz4-dev unzip aspell mariadb-client vim-tiny less
|
||||
apt-get install -y libpng-dev libyaz4-dev unzip aspell mariadb-client vim-tiny less
|
||||
|
||||
# mysql is for dproofreaders
|
||||
# mysqli is for phpBB3 (note: things break if mysql is used instead of mysqli)
|
||||
RUN docker-php-ext-install mysql mysqli gd gettext && \
|
||||
pecl install yaz-1.2.1
|
||||
RUN docker-php-ext-install mysqli gd gettext && \
|
||||
pecl install yaz-1.2.4
|
||||
|
||||
COPY app /app
|
||||
RUN mkdir -p /var/www/html/ && \
|
||||
cd /var/www/html/ && \
|
||||
tar xzf /src/dproofreaders.R201701.tgz && \
|
||||
tar xjf /src/phpBB-3.0.14.tar.bz2
|
||||
tar xzf /src/dproofreaders.R202303.tar.gz && \
|
||||
tar xjf /src/phpBB-3.3.10.tar.bz2
|
||||
|
||||
# TODO: chmod
|
||||
RUN cd /var/www/html && \
|
||||
|
||||
6
LATEST-VERSION-SETUP
Normal file
6
LATEST-VERSION-SETUP
Normal file
@@ -0,0 +1,6 @@
|
||||
1) setup network:
|
||||
```docker network create dp```
|
||||
2) setup MariaDB:
|
||||
```docker volume create dp-sql```
|
||||
```echo MARIADB_ROOT_PASSWORD=MyP@55w0rd >mariadb.env```
|
||||
```docker run -d --name dp-sql --network dp --env-file mariadb.env -v dp-sql:/var/lib/mysql mariadb```
|
||||
1
mariadb.env
Normal file
1
mariadb.env
Normal file
@@ -0,0 +1 @@
|
||||
MARIADB_ROOT_PASSWORD=tbgwnmhgb
|
||||
Reference in New Issue
Block a user