Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
Moved mysql start command from docker to test run script
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Kasatkin <[email protected]>
  • Loading branch information
Ka Hin Ng authored and Vladimir Kasatkin committed Apr 17, 2018
1 parent fb670d5 commit d24ed53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
RUN apt-get install -y tzdata
1 change: 1 addition & 0 deletions concourse/scripts/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d24ed53

Please sign in to comment.