updated debian to 9.2 and migrated to mariadb
This commit is contained in:
parent
dba6e6179a
commit
67fb5939f7
19
Dockerfile
19
Dockerfile
@ -1,4 +1,4 @@
|
|||||||
FROM debian:jessie
|
FROM debian:9.2
|
||||||
|
|
||||||
LABEL maintainer "opsxcq@strm.sh"
|
LABEL maintainer "opsxcq@strm.sh"
|
||||||
|
|
||||||
@ -6,15 +6,16 @@ RUN apt-get update && \
|
|||||||
apt-get upgrade -y && \
|
apt-get upgrade -y && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||||
debconf-utils && \
|
debconf-utils && \
|
||||||
echo mysql-server-5.5 mysql-server/root_password password vulnerables | debconf-set-selections && \
|
echo mariadb-server mysql-server/root_password password vulnerables | debconf-set-selections && \
|
||||||
echo mysql-server-5.5 mysql-server/root_password_again password vulnerables | debconf-set-selections && \
|
echo mariadb-server mysql-server/root_password_again password vulnerables | debconf-set-selections && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||||
apache2 \
|
apache2 \
|
||||||
mysql-server \
|
mariadb-server \
|
||||||
php5 \
|
php \
|
||||||
php5-mysql \
|
php-mysql \
|
||||||
|
php-pgsql \
|
||||||
php-pear \
|
php-pear \
|
||||||
php5-gd \
|
php-gd \
|
||||||
&& \
|
&& \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
@ -27,6 +28,10 @@ COPY config.inc.php /var/www/html/config/
|
|||||||
RUN chown www-data:www-data -R /var/www/html && \
|
RUN chown www-data:www-data -R /var/www/html && \
|
||||||
rm /var/www/html/index.html
|
rm /var/www/html/index.html
|
||||||
|
|
||||||
|
RUN service mysql start && \
|
||||||
|
sleep 3 && \
|
||||||
|
mysql -uroot -pvulnerables -e "CREATE USER app@localhost IDENTIFIED BY 'vulnerables';CREATE DATABASE dvwa;GRANT ALL privileges ON dvwa.* TO 'app'@localhost;"
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
COPY main.sh /
|
COPY main.sh /
|
||||||
|
@ -17,7 +17,7 @@ $DBMS = 'MySQL';
|
|||||||
$_DVWA = array();
|
$_DVWA = array();
|
||||||
$_DVWA[ 'db_server' ] = '127.0.0.1';
|
$_DVWA[ 'db_server' ] = '127.0.0.1';
|
||||||
$_DVWA[ 'db_database' ] = 'dvwa';
|
$_DVWA[ 'db_database' ] = 'dvwa';
|
||||||
$_DVWA[ 'db_user' ] = 'root';
|
$_DVWA[ 'db_user' ] = 'app';
|
||||||
$_DVWA[ 'db_password' ] = 'vulnerables';
|
$_DVWA[ 'db_password' ] = 'vulnerables';
|
||||||
|
|
||||||
# Only used with PostgreSQL/PGSQL database selection.
|
# Only used with PostgreSQL/PGSQL database selection.
|
||||||
|
2
php.ini
2
php.ini
@ -41,7 +41,7 @@ file_uploads = On
|
|||||||
upload_max_filesize = 2M
|
upload_max_filesize = 2M
|
||||||
max_file_uploads = 20
|
max_file_uploads = 20
|
||||||
allow_url_fopen = On
|
allow_url_fopen = On
|
||||||
allow_url_include = On
|
allow_url_include = 1
|
||||||
default_socket_timeout = 60
|
default_socket_timeout = 60
|
||||||
[CLI Server]
|
[CLI Server]
|
||||||
cli_server.color = On
|
cli_server.color = On
|
||||||
|
Loading…
Reference in New Issue
Block a user