mirror of
https://github.com/Medicean/VulApps.git
synced 2025-05-07 19:16:32 +00:00
(Add Base: Discuz!) x3.2
This commit is contained in:
parent
7b784b1f7d
commit
bd365880ca
28
base/discuz/x3.2/Dockerfile
Normal file
28
base/discuz/x3.2/Dockerfile
Normal 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"]
|
27
base/discuz/x3.2/README.md
Normal file
27
base/discuz/x3.2/README.md
Normal 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 代表物理机的端口,可随意指定。
|
||||
|
BIN
base/discuz/x3.2/src/Discuz_X3.2_SC_UTF8.zip
Normal file
BIN
base/discuz/x3.2/src/Discuz_X3.2_SC_UTF8.zip
Normal file
Binary file not shown.
52992
base/discuz/x3.2/src/discuz.sql
Normal file
52992
base/discuz/x3.2/src/discuz.sql
Normal file
File diff suppressed because one or more lines are too long
BIN
base/discuz/x3.2/src/install.zip
Normal file
BIN
base/discuz/x3.2/src/install.zip
Normal file
Binary file not shown.
4
base/discuz/x3.2/src/start.sh
Normal file
4
base/discuz/x3.2/src/start.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
/etc/init.d/mysql start
|
||||
/etc/init.d/apache2 restart
|
||||
/usr/bin/tail -f /dev/null
|
Loading…
x
Reference in New Issue
Block a user