mirror of https://github.com/knative/docs.git
Add install instructions from public GitHub repo (#192)
* Use public build template URLs * include buildpack samples
This commit is contained in:
parent
bfc05e671f
commit
67cae4aaac
|
@ -137,7 +137,7 @@ template](https://github.com/knative/build-templates/blob/master/kaniko/kaniko.y
|
||||||
in the [build-templates](https://github.com/knative/build-templates/) repo.
|
in the [build-templates](https://github.com/knative/build-templates/) repo.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl apply -f kaniko.yaml
|
kubectl apply -f https://raw.githubusercontent.com/knative/build-templates/master/kaniko/kaniko.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
### Using this in Configuration.
|
### Using this in Configuration.
|
||||||
|
|
|
@ -19,7 +19,7 @@ in the [build-templates](https://github.com/knative/build-templates/) repo.
|
||||||
First, install the Buildpack build template from that repo:
|
First, install the Buildpack build template from that repo:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl apply -f buildpack.yaml
|
kubectl apply -f https://raw.githubusercontent.com/knative/build-templates/master/buildpack/buildpack.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
Then you can deploy this to Knative Serving from the root directory via:
|
Then you can deploy this to Knative Serving from the root directory via:
|
||||||
|
@ -82,5 +82,5 @@ To clean up the sample service:
|
||||||
# Clean up the serving resources
|
# Clean up the serving resources
|
||||||
kubectl delete -f serving/samples/buildpack-app-dotnet/sample.yaml
|
kubectl delete -f serving/samples/buildpack-app-dotnet/sample.yaml
|
||||||
# Clean up the build template
|
# Clean up the build template
|
||||||
kubectl delete -f buildpack.yaml
|
kubectl delete buildtemplate buildpack
|
||||||
```
|
```
|
||||||
|
|
|
@ -19,7 +19,7 @@ in the [build-templates](https://github.com/knative/build-templates/) repo.
|
||||||
First, install the Buildpack build template from that repo:
|
First, install the Buildpack build template from that repo:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl apply -f buildpack.yaml
|
kubectl apply -f https://raw.githubusercontent.com/knative/build-templates/master/buildpack/buildpack.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
Then you can deploy this to Knative Serving from the root directory via:
|
Then you can deploy this to Knative Serving from the root directory via:
|
||||||
|
@ -79,5 +79,8 @@ $ curl http://${SERVICE_IP}/ -H "Host: $SERVICE_HOST" -H "Content-Type: applicat
|
||||||
To clean up the sample service:
|
To clean up the sample service:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
# Clean up the serving resources
|
||||||
kubectl delete -f serving/samples/buildpack-function-nodejs/sample.yaml
|
kubectl delete -f serving/samples/buildpack-function-nodejs/sample.yaml
|
||||||
|
# Clean up the build template
|
||||||
|
kubectl delete buildtemplate buildpack
|
||||||
```
|
```
|
||||||
|
|
|
@ -89,7 +89,7 @@ perl -pi -e "s@DOCKER_REPO_OVERRIDE@$REPO@g" sample.yaml
|
||||||
|
|
||||||
# Install the Kaniko build template used to build this sample (in the
|
# Install the Kaniko build template used to build this sample (in the
|
||||||
# build-templates repo).
|
# build-templates repo).
|
||||||
kubectl apply -f kaniko.yaml
|
kubectl apply -f https://raw.githubusercontent.com/knative/build-templates/master/kaniko/kaniko.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
Now, if you look at the `status` of the revision, you will see that a build is in progress:
|
Now, if you look at the `status` of the revision, you will see that a build is in progress:
|
||||||
|
|
Loading…
Reference in New Issue