Skip to content

Commit

Permalink
install mysql client into environment so that we can load dbschema
Browse files Browse the repository at this point in the history
  • Loading branch information
justinlynn committed Mar 7, 2014
1 parent 231875e commit 2736c23
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Expand Up @@ -10,6 +10,7 @@ ADD env/dev-env/dev-solo.rb /srv/chef/dev-solo.rb
RUN cd /srv/chef && /opt/chef/embedded/bin/berks install --path /srv/chef/cookbooks
RUN chef-solo -c /srv/chef/dev-solo.rb -j /srv/chef/dev-solo.json

RUN apt-get install -y mysql-client
RUN npm install -g supervisor

RUN mkdir -p /srv/ripple/blobvault
Expand Down
16 changes: 16 additions & 0 deletions env/dev-env/build-db.sh
@@ -0,0 +1,16 @@
#!/bin/bash -e

echo "Setting up DB (blobvault) in docker environment..."
echo "with the following sql dump in (./):"
echo "---"

cat /srv/ripple/blobvault/dbsetup.sql

echo "---"

mysql -u root -h $DB_1_PORT_3306_TCP_ADDR -P $DB_1_PORT_3306_TCP_PORT blobvault < /srv/ripple/blobvault/dbsetup.sql

echo "finished loading schema"
echo "schema currently loaded:"
echo "---"
mysqldump -u root -h $DB_1_PORT_3306_TCP_ADDR -P $DB_1_PORT_3306_TCP_PORT --no-data blobvault

0 comments on commit 2736c23

Please sign in to comment.