notepad

command module
v0.0.0-...-66eb115 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

README

notepad

Build binary

go build

Build & Push image

docker login quay.io -u <username>
docker build -t quay.io/<username>/appbinding-demo-notepad .
docker push quay.io/<username>/appbinding-demo-notepad

Deploy

sed -e 's,REPLACE_IMAGE,quay.io/<username>/appbinding-demo-notepad,g' deploy.yaml | oc apply -f -
oc apply -f service.yaml
oc apply -f route.yaml

Use notepad application

Discover notepad endpoint
export NOTEPAD_ENDPOINT="$(oc get route notepad-route -o jsonpath='{.spec.host}')/note"
Get content
curl -XGET "$NOTEPAD_ENDPOINT"
Append content
curl -XPOST -H "ContentType=text/plain" -d "text to append" "$NOTEPAD_ENDPOINT"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL