(Add Base: Discuz!) x3.2

This commit is contained in:
Medicean 2016-08-24 20:43:43 +08:00
parent 7b784b1f7d
commit bd365880ca
6 changed files with 53051 additions and 0 deletions

View File

@ -0,0 +1,28 @@
FROM medicean/vulapps:base_lamp
MAINTAINER Medici.Yan <Medici.Yan@Gmail.com>
COPY src/Discuz_X3.2_SC_UTF8.zip /tmp/discuz.zip
COPY src/install.zip /tmp/install.zip
COPY src/discuz.sql /tmp/discuz.sql
RUN apt-get install -y unzip
WORKDIR /tmp
RUN set -x \
&& apt-get install -y php5-mysql php5-dev php5-gd php5-memcache php5-pspell php5-snmp snmp php5-xmlrpc libapache2-mod-php5 php5-cli unzip \
&& rm -rf /var/www/html/* \
&& unzip -x /tmp/discuz.zip \
&& unzip -x /tmp/install.zip \
&& cp -r /tmp/upload/* /var/www/html/ \
&& cp -r /tmp/install/* /var/www/html/ \
&& /etc/init.d/mysql start \
&& mysql -e "CREATE DATABASE discuz DEFAULT CHARACTER SET utf8;" -uroot -proot \
&& mysql -e "use discuz;source /tmp/discuz.sql;" -uroot -proot \
&& rm -rf /tmp/* \
&& chown -R www-data:www-data /var/www/html
COPY src/start.sh /start.sh
RUN chmod a+x /start.sh
EXPOSE 80
CMD ["/start.sh"]

View File

@ -0,0 +1,27 @@
## Discuz! x3.2 环境
> 后续相关 Discuz! x3.2 漏洞环境基础镜像
### 信息
类型 | 用户名 | 密码
:-:|:-:|:-:
Mysql | root | root
/admin.php | admin | admin123
### 获取环境:
1. 拉取镜像到本地
```
$ docker pull medicean/vulapps:base_discuz_x3.2
```
2. 启动环境
```
$ docker run -d -p 8000:80 medicean/vulapps:base_discuz_x3.2
```
> `-p 8000:80` 前面的 8000 代表物理机的端口,可随意指定。

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1,4 @@
#!/bin/bash
/etc/init.d/mysql start
/etc/init.d/apache2 restart
/usr/bin/tail -f /dev/null