wait-for-it
wait-for-it copied to clipboard
wait-for-it.sh file if downloaded and unzipped using winrar - creates problem
If using windows operating system this may cause a problem. Desite supplying a command with host and port as below:
When using command in docker-compose
command: ["/wait-for-it.sh", "myservice:4444", "npm", "test"]
error
"Error: you need to provide a host and port to test."
Solution, download file manually by clicking 'raw' on github and downloading it.
You need to add in the "--" before the command you want to run. For example:
command: ["/wait-for-it.sh", "myservice:4444", "--", "npm", "test"]