Skip to content

Commit eeaaaa0

Browse files
committed
Formatting update for builder docs
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 73dc9de commit eeaaaa0

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

docs/openfaas-pro/builder.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,16 @@ PAYLOAD=$(kubectl get secret -n openfaas payload-secret -o jsonpath='{.data.payl
181181

182182
HMAC=$(cat req.tar | openssl dgst -sha256 -hmac $PAYLOAD | sed -e 's/^.* //')
183183

184-
curl -H "X-Build-Signature: sha256=$HMAC" -s http://127.0.0.1:8081/build -X POST --data-binary @req.tar | jq
184+
curl -H "X-Build-Signature: sha256=$HMAC" --silent \
185+
http://127.0.0.1:8081/build -X POST --data-binary @req.tar | jq
186+
```
187+
188+
You'll see output like this:
185189

186-
....
190+
```json
191+
{
192+
"log": [
193+
"v: 2021-10-20T16:48:34Z [ship 1/16] WORKDIR /home/app/",
187194
"v: 2021-10-20T16:48:34Z exporting to image 8.01s"
188195
],
189196
"image": "ttl.sh/alexellis2/test-image-hello:0.1.0",
@@ -193,6 +200,8 @@ curl -H "X-Build-Signature: sha256=$HMAC" -s http://127.0.0.1:8081/build -X POST
193200

194201
The initial build is likely to take some time, however, if you run the build again or only change some text within a file the subsequent build could complete with single-digit seconds.
195202

203+
If you receive an error, try removing `|jq` and add -v to the `curl` command.
204+
196205
### Remote builds with a HTTP client
197206

198207
A HTTP client has three tasks to perform:

0 commit comments

Comments
 (0)