Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM php:8.2-cli

RUN apt-get update && \
apt-get install -y git

WORKDIR /var/www

Comment thread
afilina marked this conversation as resolved.
ADD https://api.github.com/repos/php/phd/git/refs/heads/master version-phd.json
ADD https://api.github.com/repos/php/doc-base/git/refs/heads/master version-doc-base.json

RUN git clone --depth 1 https://github.com/php/phd.git && \
git clone --depth 1 https://github.com/php/doc-base.git
Comment thread
afilina marked this conversation as resolved.

RUN echo 'memory_limit = 512M' >> /usr/local/etc/php/conf.d/local.ini

CMD php doc-base/configure.php --disable-segfault-error && \
php phd/render.php --docbook doc-base/.manual.xml --output=/var/www/en/output --package PHP --format xhtml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
entities.*.xml
output
6 changes: 6 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ Please refer to the README file within the [doc-base repository](https://github.
For information related to creating this setup, see:

http://doc.php.net/tutorial/local-setup.php

Running With Docker

- Install Docker (https://docs.docker.com/get-docker/)
- Rebuild the documentation using `docker-compose up`
- Open output/php-chunked-xhtml/ in your browser.
Comment thread
afilina marked this conversation as resolved.
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '3'

services:
doc:
build: .docker
working_dir: /var/www
volumes:
- .:/var/www/en