diff --git a/sheets/jo b/sheets/jo deleted file mode 100644 index cb907d5..0000000 --- a/sheets/jo +++ /dev/null @@ -1,11 +0,0 @@ -# jo -# JSON output from a shell - -# Create an object -jo -p name=jo n=17 parser=false - -# Create an array -seq 1 10 | jo -a - -# Create a json with nested objects and arrays -jo -p name=Jane point[]=1 point[]=2 geo[lat]=10 geo[lon]=20 diff --git a/sheets/pack b/sheets/pack new file mode 100644 index 0000000..e186741 --- /dev/null +++ b/sheets/pack @@ -0,0 +1,26 @@ +# pack +# CLI for building apps using Cloud Native Buildpacks + +# List recommended builders +pack builder suggest + +# Use a builder to build an image +pack build --builder + +# Example: Build a node app +pack build testbuild --builder paketobuildpacks/builder:base +# $ cat app.js +# var http = require('http'); +# http.createServer(function (request, response) { +# response.writeHead(200, {'Content-Type': 'text/plain'}); +# response.end('Hello world!'); +# }).listen(8080); +# +# $ pack build testbuild --builder paketobuildpacks/builder:base +# (..) +# Successfully built image testbuild +# +# $ docker run --rm -p 8080:8080 testbuild +# +# $ curl http://127.0.0.1:8080 +# Hello world!