Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install mysql client into environment so that we can load dbschema
- Loading branch information
1 parent
231875e
commit 2736c23
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |