Skip to content

Commit

Permalink
Fix ERD generation build step
Browse files Browse the repository at this point in the history
Do not depend on snapshot version of SchemaSpy. Pegging it to 6.1.0 since it seems to work for the build.
  • Loading branch information
chunky56 committed Sep 8, 2020
1 parent fb99b92 commit 72b6c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci-erdGeneration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ wget https://raw.githubusercontent.com/OpenLMIS/openlmis-ref-distro/master/setti
&& mkdir output \
&& chmod 777 output \
&& export COMPOSE_PROJECT_NAME_LOWER_CASE=`echo "$COMPOSE_PROJECT_NAME" | tr '[:upper:]' '[:lower:]'` \
&& (docker run --rm --network ${COMPOSE_PROJECT_NAME_LOWER_CASE//.}_default -v $WORKSPACE/erd/output:/output schemaspy/schemaspy:snapshot -t pgsql -host db -port 5432 -db open_lmis -s referencedata -u postgres -p p@ssw0rd -I "(data_loaded)|(schema_version)|(jv_.*)" -norows -hq &) \
&& (docker run --rm --network ${COMPOSE_PROJECT_NAME_LOWER_CASE//.}_default -v $WORKSPACE/erd/output:/output schemaspy/schemaspy:6.1.0 -t pgsql -host db -port 5432 -db open_lmis -s referencedata -u postgres -p p@ssw0rd -I "(data_loaded)|(schema_version)|(jv_.*)" -norows -hq &) \
&& sleep 30 \
&& /usr/local/bin/docker-compose down --volumes \
&& sudo chown -R $USER:$USER output \
Expand Down

0 comments on commit 72b6c89

Please sign in to comment.