Created
April 21, 2014 03:49
-
-
Save chuyskywalker/11131716 to your computer and use it in GitHub Desktop.
quick docker contained app
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
# echo '{"test":123, "peso": [1,2,3]}' | docker run -i --rm --networking=false app /bin/bash -c 'cat - | php app.php' | |
object(stdClass)#1 (2) { | |
["test"]=> | |
int(123) | |
["peso"]=> | |
array(3) { | |
[0]=> | |
int(1) | |
[1]=> | |
int(2) | |
[2]=> | |
int(3) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment