Skip to content

Instantly share code, notes, and snippets.

verbose = <boolean>
quiet = <boolean>
timestamps = <boolean>
no-color = <boolean>
[build]
image-name = "<string>"
builder = "<string>"
buildpack = ["<string>"]
clear-cache = <boolean>
2019-10-19T16:05:02.936652+00:00 heroku[web.1]: Starting process with command `java -Dorg.slf4j.simpleLogger.defaultLogLevel=trace -jar webapp-runner.jar --port 53945 --session-store redis --session-store-pool-size 5 target/heroku-redisson-test.war`
2019-10-19T16:05:06.420909+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them.
2019-10-19T16:05:06.449034+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8
2019-10-19T16:05:07.067454+00:00 app[web.1]: Expanding heroku-redisson-test.war into /app/target/tomcat.53945/webapps/expanded
2019-10-19T16:05:07.067509+00:00 app[web.1]: Adding Context for /app/target/tomcat.53945/webapps/expanded
2019-10-19T16:05:07.107891+00:00 app[web.1]: Using redis session store: org.redisson.tomcat.RedissonSessionManager
2019-10-19T16:05:08.332571+00:00 app[web.1]: Oct 19, 2019 4:05:08 PM org.apache.coyote.AbstractProtocol init
2019-10-19T16:05:08.332585+00:00 app[web.1]:
package main
import (
"net/http"
"net/http/httputil"
_ "net/http/pprof"
"os"
"strings"
log "github.com/sirupsen/logrus"
@jkutner
jkutner / pom-config.xml
Last active August 15, 2019 13:05
defence against the docker arts
<configuration>
<from>
<image>gcr.io/distroless/java</image>
</from>
<container>
<appRoot>/workspace</appRoot>
<environment>
<JAVA_OPTS>-Xss512k</JAVA_OPTS>
</environment>
</container>

Keybase proof

I hereby claim:

  • I am jkutner on github.
  • I am codefinger (https://keybase.io/codefinger) on keybase.
  • I have a public key whose fingerprint is FF89 BF8F 2FA3 9802 F169 A7E7 91B1 693A 1657 7294

To claim this, I am signing this object:

[package]
id = "io.buildpacks.zulu"
name = "Azul Zulu Buildpack"
version = "0.0.9"
[detect]
provides = [
"jdk"
]
[[buildpacks]]
id = "io.buildpacks.npm-nodejs"
name = "NPM Node.js Buildpack"
version = "0.0.9"
[[buildpacks.order]]
group = [
{ id = "io.buildpacks.node", version = "0.0.5" },
{ id = "io.buildpacks.npm", version = "0.0.7" },
]
// In these examples
// transform args
module.exports = async (req, res, chain) => {
let ce = create_cloudevent(req, res)
chain.finalize(ce) // ends the chain, and calls the user function with these args
}
// or don't transform args
module.exports = async (req, res, chain) => {
package example;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
public class HelloPojo implements RequestHandler<RequestClass, ResponseClass>{
public ResponseClass handleRequest(RequestClass request, Context context){
String greetingString = String.format("Hello %s, %s.", request.firstName, request.lastName);
return new ResponseClass(greetingString);
$ cd elixir-cnb
$ curl -L https://github.com/heroku/cnb-shim/releases/download/v0.0.2/cnb-shim-v0.0.2.tgz | tar xz
$ cat > buildpack.toml << TOML
> [buildpack]
> id = "hashnuke.elixir"
> version = "0.1"
> name = "Elixir"
>