Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buildpack sample edits #222

Merged
merged 9 commits into from
Jul 22, 2018
Merged

Buildpack sample edits #222

merged 9 commits into from
Jul 22, 2018

Conversation

samodell
Copy link
Contributor

  • Edits nodejs and dotnet buildpack samples

@google-prow-robot google-prow-robot added approved size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 20, 2018
@@ -1,14 +1,14 @@
# Buildpack Sample App

A sample app that demonstrates usage of Cloud Foundry buildpacks on Knative Serving,
A sample app that demonstrates using Cloud Foundry buildpacks on Knative Serving,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we link to Cloud Foundry here? Not everyone may know what that is.

@@ -22,11 +22,13 @@ First, install the Buildpack build template from that repo:
kubectl apply -f buildpack.yaml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do I get this file from? Maybe call out to save it from the [Buildpack build template] link?

REPO="gcr.io/<your-project-here>"
# Replace <your-project-here> with your own registry
export REPO="gcr.io/<your-project-here>"

perl -pi -e "s@DOCKER_REPO_OVERRIDE@$REPO@g" serving/samples/buildpack-app-dotnet/sample.yaml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea what this command does. Can we replace it with the instructions to update the yaml file we use elsewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't 100% sure either, but I was worried that this was an important part of the sample. It looks like @mattmoor added this in this PR: knative/serving#851

Matt, what does perl -pi -e "s@DOCKER_REPO_OVERRIDE@$REPO@g" serving/samples/buildpack-app-dotnet/sample.yaml do? Do we need that command for this sample to work?

REPO="gcr.io/<your-project-here>"
# Replace <your-project-here> with your own registry
export REPO="gcr.io/<your-project-here>"

perl -pi -e "s@DOCKER_REPO_OVERRIDE@$REPO@g" serving/samples/buildpack-app-dotnet/sample.yaml

# Create the Kubernetes resources
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our other samples use the URL relative to the project folder, not the repo. Not sure what the best practice is, but we should be consistent.

@@ -1,20 +1,20 @@
# Buildpack Sample Function
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think my comments above apply here too, so I won't repeat them.

grantr referenced this pull request in grantr/knative-docs-old Jul 20, 2018
…ion (#222)

* Added port-forwarding information to telemetry documentation to prevent exposing Prometheus and Grafana publicly.
* Removed public IP option for Prometheus UI (this is mainly used for debugging and can be done using port forwarding)
* Changed the order of installation of Prometheus in the build file. Previous ordering was causing an error on a brand new cluster and required retrying the step to succeed. I still need to root cause the issue but checking this in as a mitigation/workaround for the time being.
@rgregg
Copy link
Contributor

rgregg commented Jul 22, 2018

/lgtm
/approve

@google-prow-robot google-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 22, 2018
@google-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rgregg, samodell

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-prow-robot google-prow-robot merged commit b3feaf4 into knative:master Jul 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants