Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
# json-log.conf - log all useful nginx variables in json formatted log | |
# for details about these variables, see http://nginx.org/en/docs/http/ngx_http_core_module.html#variables | |
log_format json-log '{' | |
# $arg_* | |
# $args | |
# $binary_remote_addr | |
'"body_bytes_sent":"$body_bytes_sent",' | |
'"bytes_sent":"$bytes_sent",' | |
'"connection":"$connection",' | |
# $connection_requests |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
#!groovy | |
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
def label = "mypod-${UUID.randomUUID().toString()}" | |
podTemplate(label: label, yaml: """ | |
spec: | |
containers: | |
- name: mvn | |
image: maven:3.3.9-jdk-8 |