Commit bc21bced authored by Johan Vervloet's avatar Johan Vervloet

Clone remote instance, #112.

This will do. Closes #112.
parent 0c680a17
Pipeline #111296843 passed with stages
in 4 minutes and 36 seconds
......@@ -6,6 +6,7 @@
- Correction lines, #93.
- More dealer related acceptance tests, #53
- Script to automatically clone remote instance, #112.
### Changed
......
#!/usr/bin/env bash
EVENT_STORE_TABLE='event_store';
REMOTE_DATABASE='dikdikdik';
source=$1;
# credentials should match the ones in docker-compose.yml
local_mysql_command="mysql -h 127.0.0.1 -u symfony -psymfony symfony"
if [[ -z "$source" ]]
then
cat << EOF
USAGE: $0 [email protected]
Copies the remote event store, and replays locally.
It is assumed that a ~/.my.cnf is in place on the server so that
the script can connect to the database without having to provide a password.
EOF
exit 1
fi
ssh $source "mysqldump $REMOTE_DATABASE $EVENT_STORE_TABLE" | $local_mysql_command
docker-compose exec php make replay
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment