shellcheck --version or "online"): latestN/A
$ docker run --rm koalaman/shellcheck --version
container_linux.go:265: starting container process caused "exec: \"/bin/shellcheck\": stat /bin/shellcheck: not a directory"
docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused "exec: \"/bin/shellcheck\": stat /bin/shellcheck: not a directory"
: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.
$ docker run --rm koalaman/shellcheck --version
ShellCheck - shell script analysis tool
version: 0.4.6
license: GNU General Public License, version 3
website: http://www.shellcheck.net
Agreed. Same problem over here.
Broke our latest build: https://travis-ci.org/inspircd/inspircd-docker/builds/285878851#L2925-L2942
Same here
Fix this ASAP!
You are not tagging builds in dockerhub correctly. The last VERSION tag you have is v0.4.6 from 6 months ago. There should at least be a v0.4.7 that corresponds to this latest build form 3 days ago. If you are going to use the LATEST as a tag you need to provide alternative version tags so we can PIN to a previous version that actually WORKS.
@composer22 You can pin it to v0.4.6 which does still work just fine. That’s what I did and it’s working like a charm. Only the latest tag has this problem.
I would also like to see more tags. Would you be willing to automate this with your CI provider? I know TravisCI offers deployment to docker hub.
As part of any upload step, the script would ideally smoke test the image to ensure it runs properly. It won’t catch all errors, but it would catch most.
Thanks!
Oops. This is now fixed.
I've added a stable tag that is currently the same as v0.4.6 so that you can depend on a stable version without hard coding one. latest is still the latest git commit.
Travis already builds and autodeploys. Smoke tests would indeed have been a good idea.
Oops. This is now fixed.
Thank you, @koalaman!
Travis already builds and autodeploys. Smoke tests would indeed have been a good idea.
Ah ok. Is it possible to add this script to a pre-deploy script?
Yes, I'll make sure the images can at least run --version before they're deployed in the future.
@koalaman Thank you! I am happy to help if you need any. ✨
Most helpful comment
Oops. This is now fixed.
I've added a
stabletag that is currently the same asv0.4.6so that you can depend on a stable version without hard coding one.latestis still the latest git commit.Travis already builds and autodeploys. Smoke tests would indeed have been a good idea.