Last active
August 29, 2015 14:05
-
-
Save thaJeztah/aca082a2303b68875c4a to your computer and use it in GitHub Desktop.
Some incorrect Dockerfiles for testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMD '["echo", "Well, JSON in a string is JSON too?"]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMD "[\"echo\", \"Phew, I just managed to escaped those double quotes\"]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMD ['echo','single quotes are invalid JSON'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMD ["echo", "Please, close the brackets when you're done" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMD ["echo", "look ma, no quote!] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As discussed here; https://github.com/docker/docker/pull/7461/files
Not really sure if parsing the JSON itself is something that needs testing (as it is core functionality of Go), but how to handle the errors, i.e. what kind of feedback is given back to the user might be worth describing :)