diff --git a/Dockerfile b/Dockerfile index 52663c442..565a3e296 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,7 +37,4 @@ RUN { \ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server libmysqlclient-dev # Install timezone data -RUN apt-get install -y tzdata - -# https://github.com/opsxcq/docker-vulnerable-dvwa/issues/3 mysql does not start without "touching" the /mysql files -CMD chown -R mysql:mysql /var/lib/mysql && service mysql start && bash \ No newline at end of file +RUN apt-get install -y tzdata \ No newline at end of file diff --git a/concourse/scripts/run-tests.sh b/concourse/scripts/run-tests.sh index cd3fa24b4..9e9944b62 100755 --- a/concourse/scripts/run-tests.sh +++ b/concourse/scripts/run-tests.sh @@ -8,6 +8,7 @@ rbenv exec bundle install cp config/database.yml.example config/database.yml +# https://github.com/opsxcq/docker-vulnerable-dvwa/issues/3 mysql does not start without "touching" the /mysql files chown -R mysql:mysql /var/lib/mysql && service mysql start RAILS_ENV=test rbenv exec rake db:create