Add pack
parent
7bb6a96700
commit
9c0d57edf6
@ -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
|
@ -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 <image-name> --builder <builder-to-use>
|
||||
|
||||
# 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!
|
Loading…
Reference in New Issue