Guest User

Untitled

a guest
Nov 29th, 2017
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. LIQUIBASE_HOME=/usr/local/liquibase
  4. M2_REPO=~/.m2/repository
  5. CLASSPATH="./postgresql-9.4.1208.jar"
  6.  
  7. # Fetch the NAT-ed port information for each of the database containers.
  8. BASE_DB_PORT=$(PORT_VAR=$(docker-compose port baselinedb 5432) ; echo ${PORT_VAR##*:})
  9. DELTA_DB_PORT=$(PORT_VAR2=$(docker-compose port deltadb 5432) ; echo ${PORT_VAR2##*:})
  10.  
  11. # Most of the parameters are contained within liquibase.properties. However
  12. # everything we specify here takes precedence.
  13. echo "Calling ${LIQUIBASE_HOME}/liquibase diffChangeLog..."
  14. ${LIQUIBASE_HOME}/liquibase --classpath=${CLASSPATH} \
  15. --url="jdbc:postgresql://localhost:${BASE_DB_PORT}/mydb" \
  16. --referenceUrl="jdbc:postgresql://localhost:${DELTA_DB_PORT}/mydb" \
  17. diffChangeLog
Add Comment
Please, Sign In to add comment