Skip to content

Commit

Permalink
Pin sample doc links during backend image build (#2880)
Browse files Browse the repository at this point in the history
* Pin sample doc links during backend image build

* Update sample_config.json
  • Loading branch information
Bobgy authored and k8s-ci-robot committed Jan 21, 2020
1 parent 492cb1c commit 0577fe1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ COPY --from=compiler /samples/ /samples/
# Adding CA certificate so API server can download pipeline through URL
RUN apt-get update && apt-get install -y ca-certificates

# Pin sample doc links to the commit that built the backend image
RUN sed "s#/blob/master/#/blob/${COMMIT_SHA}/#g" -i /config/sample_config.json

# Expose apiserver port
EXPOSE 8888

Expand Down
12 changes: 6 additions & 6 deletions backend/src/apiserver/config/sample_config.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
[
{
"name": "[Sample] ML - XGBoost - Training with Confusion Matrix",
"description": "[GCP Permission requirements](https://github.com/kubeflow/pipelines/tree/1b04983d96d097a12245a2d79469d3c51af5c7f4/samples/core/xgboost_training_cm#requirements). [source code](https://github.com/kubeflow/pipelines/tree/0.1.40/samples/core/xgboost_training_cm). A trainer that does end-to-end distributed training for XGBoost models.",
"description": "[GCP Permission requirements](https://github.com/kubeflow/pipelines/blob/master/samples/core/xgboost_training_cm#requirements). [source code](https://github.com/kubeflow/pipelines/blob/master/samples/core/xgboost_training_cm). A trainer that does end-to-end distributed training for XGBoost models.",
"file": "/samples/core/xgboost_training_cm/xgboost_training_cm.py.yaml"
},
{
"name": "[Sample] Unified DSL - Taxi Tip Prediction Model Trainer",
"description": "[GCP Permission requirements](https://github.com/kubeflow/pipelines/blob/1b04983d96d097a12245a2d79469d3c51af5c7f4/samples/contrib/parameterized_tfx_oss#permission). [source code](https://console.cloud.google.com/mlengine/notebooks/deploy-notebook?q=download_url%3Dhttps%253A%252F%252Fraw.githubusercontent.com%252Fkubeflow%252Fpipelines%252F0.1.40%252Fsamples%252Fcore%252Fparameterized_tfx_oss%252Ftaxi_pipeline_notebook.ipynb). Example pipeline that does classification with model analysis based on a public tax cab BigQuery dataset.",
"description": "[GCP Permission requirements](https://github.com/kubeflow/pipelines/blob/master/samples/contrib/parameterized_tfx_oss#permission). [source code](https://console.cloud.google.com/mlengine/notebooks/deploy-notebook?q=download_url%3Dhttps%253A%252F%252Fraw.githubusercontent.com%252Fkubeflow%252Fpipelines%252F0.1.40%252Fsamples%252Fcore%252Fparameterized_tfx_oss%252Ftaxi_pipeline_notebook.ipynb). Example pipeline that does classification with model analysis based on a public tax cab BigQuery dataset.",
"file": "/samples/core/parameterized_tfx_oss/parameterized_tfx_oss.py.yaml"
},
{
"name": "[Sample] Basic - Sequential execution",
"description": "[source code](https://github.com/kubeflow/pipelines/blob/0.1.40/samples/core/sequential/sequential.py) A pipeline with two sequential steps.",
"description": "[source code](https://github.com/kubeflow/pipelines/blob/master/samples/core/sequential/sequential.py) A pipeline with two sequential steps.",
"file": "/samples/core/sequential/sequential.py.yaml"
},
{
"name": "[Sample] Basic - Parallel execution",
"description": "[source code](https://github.com/kubeflow/pipelines/blob/0.1.40/samples/core/parallel_join/parallel_join.py) A pipeline that downloads two messages in parallel and prints the concatenated result.",
"description": "[source code](https://github.com/kubeflow/pipelines/blob/master/samples/core/parallel_join/parallel_join.py) A pipeline that downloads two messages in parallel and prints the concatenated result.",
"file": "/samples/core/parallel_join/parallel_join.py.yaml"
},
{
"name": "[Sample] Basic - Conditional execution",
"description": "[source code](https://github.com/kubeflow/pipelines/blob/0.1.40/samples/core/condition/condition.py) A pipeline shows how to use dsl.Condition.",
"description": "[source code](https://github.com/kubeflow/pipelines/blob/master/samples/core/condition/condition.py) A pipeline shows how to use dsl.Condition.",
"file": "/samples/core/condition/condition.py.yaml"
},
{
"name": "[Sample] Basic - Exit Handler",
"description": "[source code](https://github.com/kubeflow/pipelines/blob/0.1.40/samples/core/exit_handler/exit_handler.py) A pipeline that downloads a message and prints it out. Exit Handler will run at the end.",
"description": "[source code](https://github.com/kubeflow/pipelines/blob/master/samples/core/exit_handler/exit_handler.py) A pipeline that downloads a message and prints it out. Exit Handler will run at the end.",
"file": "/samples/core/exit_handler/exit_handler.py.yaml"
}
]

0 comments on commit 0577fe1

Please sign in to comment.