From 0577fe10fdc3c57cd56ca3b65198c03636ae4520 Mon Sep 17 00:00:00 2001 From: "Yuan (Bob) Gong" Date: Tue, 21 Jan 2020 13:25:36 +0800 Subject: [PATCH] Pin sample doc links during backend image build (#2880) * Pin sample doc links during backend image build * Update sample_config.json --- backend/Dockerfile | 3 +++ backend/src/apiserver/config/sample_config.json | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 6b032bb84aa..21c73234f2d 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -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 diff --git a/backend/src/apiserver/config/sample_config.json b/backend/src/apiserver/config/sample_config.json index 121658073d4..c2b1ebd1207 100644 --- a/backend/src/apiserver/config/sample_config.json +++ b/backend/src/apiserver/config/sample_config.json @@ -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" } ]