ERROR: Invalid argument: ./wait-for-it.sh
The Dockerfile for that image says:
ENTRYPOINT ["flyway"]CMD ["-?"]
These two parts are concatenated together, and anything you type as parameters to docker run
only replaces the CMD
part. That is, in effect you're running flyway ./wait-for-it.sh ...
, and the flyway
command doesn't understand what to do with it.
If you want to continue on this path, probably your easiest next step is to write your own custom image FROM boxfuse/flyway
that COPY wait-for-it.sh
into the image, then adds its own entrypoint script that does the wait-for-it
step and ends with exec flyway "$@"
.