Open ruimarinho opened 7 years ago
Please provide a little more context on what you're doing/how your running the script. It runs correctly whenever we use the included docker-compose.yml which is associated with our {server,signer}.Dockerfile
images, which are both built on golang:1.7.3-alpine
.
It's a convenience script to bring local dev databases up to date in a docker-compose context so as long as it runs there, we're not overly concerned about it running elsewhere.
I faced the same problem trying to get the script running on a Ubuntu based image because alpine is not available for my target architecture. One should not specify 'env sh' and use bash syntax at the same time.
The migrate.sh is not currently POSIX compliant. For example, in POSIX sh,
[[ ]]
is undefined, so the script does not run ongolang:1.7-alpine
.Ideally it would be POSIX compliant.