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
## ├── Dockerfile | |
## ├── backend | |
## │ ├── service | |
## │ └── service.config | |
## ├── backend.tar.gz | |
## └── frontend | |
## ├── app | |
## └── app.config | |
FROM debian:8.0 |
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
# Requires socat on host and boot2docker | |
# OSX - brew install socat | |
# boot2docker - tce-load -wi socat | |
# change your ssh key path | |
sudo socat "UNIX-LISTEN:/var/run/docker.sock,reuseaddr,fork" EXEC:'ssh -i /Users/aaron.feng/.ssh/id_boot2docker [email protected] socat STDIO UNIX-CONNECT\:/var/run/docker.sock' | |
# own the unix socket on host | |
sudo chown aaron.feng /var/run/docker.sock |
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
POST /_bulk HTTP/1.1 | |
Host: 172.17.0.36:9200 | |
User-Agent: Go 1.1 package http | |
Content-Length: 97 | |
Accept: application/json | |
Accept-Encoding: gzip | |
{"index":{"_index":"2015.03.31","_type":"7d98073d388e"}} | |
{"bar":"boo","log":"awesome"} | |
HTTP/1.1 400 Bad Request |
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
{"log": "awesome1"} | |
{"log": "awesome2"} | |
{"log": "awesome3"} | |
{"log": "awesome4"} | |
{"log": "awesome5"} | |
{"log": "awesome6"} | |
{"log": "awesome7"} | |
{"log": "awesome8"} | |
{"log": "awesome9"} | |
{"log": "awesome10"} |
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
local cjson = require("cjson") | |
function process_message() | |
local payload_str = read_message("Payload") | |
local ok, payload = pcall(cjson.decode, payload_str) | |
if not ok then | |
return -1 | |
end |
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
[foo_decoder] | |
type = "SandboxDecoder" | |
filename = "/etc/heka/foo_decoder.lua" | |
[Logs] | |
type = "LogstreamerInput" | |
log_directory = "/var/log" | |
file_match = 'foo/(?P<Logger>[0-9a-z]+)-json\.log' | |
priority = ["^Logger"] | |
differentiator = ["Logger"] |
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
„I{"index":{"_index":"31559528a22df380c968a77866c9ba4fa30ded7a7bae0ae52a1c9ee34b266c80-2015.03.30","_type":"logfile-31559528a22d"}} | |
nil{"index":{"_index":"31559528a22df380c968a77866c9ba4fa30ded7a7bae0ae52a1c9ee34b266c80-2015.03.30","_type":"logfile-31559528a22d"}} | |
nil{"index":{"_index":"31559528a22df380c968a77866c9ba4fa30ded7a7bae0ae52a1c9ee34b266c80-2015.03.30","_type":"logfile-31559528a22d"}} | |
nil{"index":{"_index":"31559528a22df380c968a77866c9ba4fa30ded7a7bae0ae52a1c9ee34b266c80-2015.03.30","_type":"logfile-31559528a22d"}} | |
nil{"index":{"_index":"31559528a22df380c968a77866c9ba4fa30ded7a7bae0ae52a1c9ee34b266c80-2015.03.30","_type":"logfile-31559528a22d"}} |
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
[ 20%] Completed 'lua-5_1_5' | |
[ 20%] Built target lua-5_1_5 | |
Makefile:147: recipe for target 'all' failed | |
make[3]: *** [all] Error 2 | |
CMakeFiles/lua_sandbox.dir/build.make:110: recipe for target 'ep_base/Stamp/lua_sandbox/lua_sandbox-build' failed | |
make[2]: *** [ep_base/Stamp/lua_sandbox/lua_sandbox-build] Error 2 | |
CMakeFiles/Makefile2:1707: recipe for target 'CMakeFiles/lua_sandbox.dir/all' failed | |
make[1]: *** [CMakeFiles/lua_sandbox.dir/all] Error 2 | |
Makefile:147: recipe for target 'all' failed | |
make: *** [all] Error 2 |
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
[user] | |
name = Aaron Feng | |
email = [email protected] | |
[diff] | |
tool = vimdiff | |
[color] | |
ui = auto | |
status = auto |
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
docker-machine-wrapper() { | |
CONFIG_NAME="$1" | |
shift | |
docker $(docker-machine config "$CONFIG_NAME") $@ | |
} | |
alias dm="docker-machine-wrapper" |
NewerOlder