Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplified by adding the entrypoint to the liquibase_command script. … #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ VOLUME ["/changelogs"]

WORKDIR /

ENTRYPOINT ["/bin/bash"]
ENTRYPOINT ["/scripts/liquibase_command.sh"]
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ to automatically perform diff and update operations.
docker run -it \
--name $LIQUIBASE_CONTAINER \
--link $REFERENCE_DB_CONTAINER:db \
--entrypoint="/scripts/liquibase_command.sh" \
-e CONNECTION_STRING="jdbc:postgresql://$DB_IP:5432/$DB_NAME" \
-e DB_USER="$DB_USER" \
-e DB_PASS="$DB_PASS" \
Expand Down Expand Up @@ -62,7 +61,6 @@ By running the command above , you'll get on the volume:
docker run -it \
--name $LIQUIBASE_CONTAINER \
--link $DB_CONTAINER:db \
--entrypoint="/scripts/liquibase_command.sh" \
-v /$LIQUIBASE_CHANGELOGS:/changelogs \
-e CHANGELOG_FILE=$LIQUIBASE_CHANGELOG_FILE \
sequenceiq/docker-liquibase\
Expand All @@ -82,7 +80,6 @@ LIQUIBASE_CHANGELOG_FILE - the name of the changelog file to be applied
docker run -it \
--name $LIQUIBASE_CONTAINER \
--link $DB_CONTAINER:db \
--entrypoint="/scripts/liquibase_command.sh" \
-v /$LIQUIBASE_CHANGELOGS:/changelogs \
-e CHANGELOG_FILE=$LIQUIBASE_CHANGELOG_FILE \
-e DB_SCHEMA_NAME=$SCHEMA_NAME \
Expand Down
2 changes: 2 additions & 0 deletions scripts/liquibase_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ case "$1" in
echo "Generating changelog ..."
./scripts/liquibase_generate.sh
;;
* )
exec "$@"
esac