Skip to content

Commit

Permalink
增加dokuwiki新版本
Browse files Browse the repository at this point in the history
  • Loading branch information
lion committed Nov 14, 2018
1 parent 109bb06 commit 8d45324
Show file tree
Hide file tree
Showing 7 changed files with 141 additions and 0 deletions.
1 change: 1 addition & 0 deletions ubuntu/16.04/files/hooks/supervisord-pre.d/01_supervisord
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
# Default empty script - supervisord fails if this doesn't exist. Override it in child images if required

exit 0
/hooks/log.after/
2 changes: 2 additions & 0 deletions ubuntu16.04-nginx1.12.1-php/7.1.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ RUN cd /home/work/_src \
# 修改配置文件
# -----------------------------------------------------------------------------
&& mkdir -p /home/work/_logs/php /home/work/_app/php7.1.9/session \
&& chmod o=rwx -R /home/work/_app/php7.1.9/session \
&& sed -i "s/pdo_mysql.default_socket=/pdo_mysql.default_socket=\/tmp\/mysql.sock/" /home/work/_app/php7.1.9/etc/php.ini \
&& sed -i "s/;date.timezone =.*/date.timezone = Asia\/Shanghai/" /home/work/_app/php7.1.9/etc/php.ini \
&& sed -i 's/max_execution_time = 30/max_execution_time = 300/g' /home/work/_app/php7.1.9/etc/php.ini \
&& sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 256M/g' /home/work/_app/php7.1.9/etc/php.ini \
Expand Down
1 change: 1 addition & 0 deletions ubuntu16.04-tengine2.2.0-php/7.1.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ RUN cd /home/work/_src \
&& mkdir -p /home/work/_logs/php \
&& sed -i "s/;date.timezone =.*/date.timezone = Asia\/Shanghai/" /home/work/_app/php7.1.9/etc/php.ini \
&& sed -i 's/max_execution_time = 30/max_execution_time = 300/g' /home/work/_app/php7.1.9/etc/php.ini \
&& sed -i 's/pdo_mysql.default_socket=/pdo_mysql.default_socket=/tmp/mysqld.sock/g' /home/work/_app/php7.1.9/etc/php.ini \
&& sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 256M/g' /home/work/_app/php7.1.9/etc/php.ini \
&& sed -i 's/post_max_size = 8M/post_max_size = 512M/g' /home/work/_app/php7.1.9/etc/php.ini \
&& sed -i 's/memory_limit = 128M/memory_limit = 256M/g' /home/work/_app/php7.1.9/etc/php.ini \
Expand Down
22 changes: 22 additions & 0 deletions ubuntu16.04-tengine2.2.0-php7.1.9-dokuwiki/2018-04-22a/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM idoall/ubuntu16.04-tengine2.2.0-php:7.1.9
MAINTAINER lion <[email protected]>

ENV DOKUWIKI_VERSION 2018-04-2a
ENV DOKUWIKI_HASH 8a269cc015a64b40e4c918699f1e1142


RUN wget -O /home/work/_src/dokuwiki.tgz https://download.dokuwiki.org/out/dokuwiki-$DOKUWIKI_HASH.tgz \
&& cd /home/work/_src \
&& tar xzvf dokuwiki.tgz \
&& mv dokuwiki/* /home/work/_app/nginx/html


# -----------------------------------------------------------------------------
# 清除
# -----------------------------------------------------------------------------
RUN chmod 755 /hooks \
&& chown -R work:work /home/work/* \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/cache/apt/archives/apt-fast/* \
&& rm -rf /home/work/_src/*
46 changes: 46 additions & 0 deletions ubuntu16.04-tengine2.2.0-php7.1.9-dokuwiki/2018-04-22a/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 目录

[TOC]

# Docker-Dokuwiki-PHP7.1.9-Tengine/2.2.0 (Nginx/1.8.1)-Ubuntu/16.04



This repository contains the sources for the following base images:
- [`idoall/idoall/ubuntu16.04-tengine2.2.0-php:7.1.9`](https://hub.docker.com/r/idoall/ubuntu16.04-tengine2.2.0-php/)



## Developing

```bash
# Pull image
git clone https://github.com/idoall/docker.git
cd ubuntu16.04-tengine2.2.0-php7.1.9-dokuwiki/2018-04-22a

# hack hack hack

# build
docker build -t idoall/ubuntu16.04-tengine2.2.0-php7.1.9-dokuwiki:20180412a .

# run
docker run -it \
--rm \
--name dokuwiki \
--hostname dokuwiki \
-p 80:80 \
idoall/ubuntu16.04-tengine2.2.0-php7.1.9-dokuwiki:20180412a

# Then setup dokuwiki using installer at URL http://localhost/install.php
```


## Where is the data stored? 

The dokuwiki container uses host mounted volumes to store persistent data:

| Local location | Container location |
| ---------------------- | ---------------------------------------- |
| `/srv/dokuwiki_folder` | `/home/work/_app/nginx/html` |

You can fine tune these directories to meet your requirements.
23 changes: 23 additions & 0 deletions ubuntu16.04-tengine2.2.0-php7.1.9-zentao/10.5.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM idoall/ubuntu16.04-tengine2.2.0-php:7.1.9
MAINTAINER lion <[email protected]>

ENV ZENTAO_VERSION 10.5.1

RUN mkdir -p /home/work/_app/php7.1.9/session \
&& chmod o=rwx -R /home/work/_app/php7.1.9/session

RUN wget -O /home/work/_src/zenTaoPMS.zip http://dl.cnezsoft.com/zentao/10.5.1/ZenTaoPMS.$ZENTAO_VERSION.zip \
&& cd /home/work/_src \
&& unzip zenTaoPMS.zip \
&& mv zentaopms/* /home/work/_app/nginx/html


# -----------------------------------------------------------------------------
# 清除
# -----------------------------------------------------------------------------
RUN chmod 755 /hooks \
&& chown -R work:work /home/work/* \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/cache/apt/archives/apt-fast/* \
&& rm -rf /home/work/_src/*
46 changes: 46 additions & 0 deletions ubuntu16.04-tengine2.2.0-php7.1.9-zentao/10.5.1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 目录

[TOC]

# Docker-Dokuwiki-PHP7.1.9-Tengine/2.2.0 (Nginx/1.8.1)-Ubuntu/16.04



This repository contains the sources for the following base images:
- [`idoall/idoall/ubuntu16.04-tengine2.2.0-php:7.1.9`](https://hub.docker.com/r/idoall/ubuntu16.04-tengine2.2.0-php/)



## Developing

```bash
# Pull image
git clone https://github.com/idoall/docker.git
cd ubuntu16.04-tengine2.2.0-php7.1.9-zentao/10.5.1

# hack hack hack

# build
docker build -t idoall/ubuntu16.04-tengine2.2.0-php7.1.9-zentao:10.5.1 .

# run
docker run -it \
--rm \
--name zentao \
--hostname zentao \
-p 80:80 \
idoall/ubuntu16.04-tengine2.2.0-php7.1.9-zentao:10.5.1

# Then setup dokuwiki using installer at URL http://localhost/www/index.php
```


## Where is the data stored? 

The dokuwiki container uses host mounted volumes to store persistent data:

| Local location | Container location |
| ---------------------- | ---------------------------------------- |
| `/srv/dokuwiki_folder` | `/home/work/_app/nginx/html` |

You can fine tune these directories to meet your requirements.

0 comments on commit 8d45324

Please sign in to comment.