Skip to content

Commit

Permalink
restructure dataflow component structure (#338)
Browse files Browse the repository at this point in the history
* restructure dataflow components

* add . directory before the script name
  • Loading branch information
gaoning777 authored and k8s-ci-robot committed Nov 21, 2018
1 parent 33f191f commit da6ff9c
Show file tree
Hide file tree
Showing 21 changed files with 28 additions and 28 deletions.
8 changes: 4 additions & 4 deletions .cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,19 @@ steps:
# Build the Dataflow-based pipeline component images
- name: 'gcr.io/cloud-builders/docker'
entrypoint: '/bin/bash'
args: ['-c', 'cd /workspace/components/dataflow/containers/predict && ./build.sh -p $PROJECT_ID -t $COMMIT_SHA']
args: ['-c', 'cd /workspace/components/dataflow/predict && ./build_image.sh -p $PROJECT_ID -t $COMMIT_SHA']
id: 'buildPredictComponent'
- name: 'gcr.io/cloud-builders/docker'
entrypoint: '/bin/bash'
args: ['-c', 'cd /workspace/components/dataflow/containers/tfdv && ./build.sh -p $PROJECT_ID -t $COMMIT_SHA']
args: ['-c', 'cd /workspace/components/dataflow/tfdv && ./build_image.sh -p $PROJECT_ID -t $COMMIT_SHA']
id: 'buildTFDVComponent'
- name: 'gcr.io/cloud-builders/docker'
entrypoint: '/bin/bash'
args: ['-c', 'cd /workspace/components/dataflow/containers/tft && ./build.sh -p $PROJECT_ID -t $COMMIT_SHA']
args: ['-c', 'cd /workspace/components/dataflow/tft && ./build_image.sh -p $PROJECT_ID -t $COMMIT_SHA']
id: 'buildTFTComponent'
- name: 'gcr.io/cloud-builders/docker'
entrypoint: '/bin/bash'
args: ['-c', 'cd /workspace/components/dataflow/containers/tfma && ./build.sh -p $PROJECT_ID -t $COMMIT_SHA']
args: ['-c', 'cd /workspace/components/dataflow/tfma && ./build_image.sh -p $PROJECT_ID -t $COMMIT_SHA']
id: 'buildTMAComponent'

# Build the Kubeflow-based pipeline component images
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@


mkdir -p ./build
rsync -arvp "../../tfdv"/ ./build/
rsync -arvp "../../tft"/ ./build/
rsync -arvp "../../tfma"/ ./build/
rsync -arvp "../../predict"/ ./build/
cp ../../../license.sh ./build
cp ../../../third_party_licenses.csv ./build
rsync -arvp "../tfdv/src"/ ./build/
rsync -arvp "../tft/src"/ ./build/
rsync -arvp "../tfma/src"/ ./build/
rsync -arvp "../predict/src"/ ./build/
cp ../../license.sh ./build
cp ../../third_party_licenses.csv ./build

docker build -t ml-pipeline-dataflow-base .
rm -rf ./build
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fi

# build base image
pushd ../base
./build.sh
./build_image.sh
popd

docker build -t ${LOCAL_IMAGE_NAME} .
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fi

# build base image
pushd ../base
./build.sh
./build_image.sh
popd

docker build -t ${LOCAL_IMAGE_NAME} .
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fi

# build base image
pushd ../base
./build.sh
./build_image.sh
popd

docker build -t ${LOCAL_IMAGE_NAME} .
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fi

# build base image
pushd ../base
./build.sh
./build_image.sh
popd

docker build -t ${LOCAL_IMAGE_NAME} .
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions samples/kubeflow-tf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ The pipeline requires one argument:
## Components source

Preprocessing:
[source code](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/tft),
[container](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/containers/tft)
[source code](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/tft/src),
[container](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/tft)

Training:
[source code](https://github.com/kubeflow/pipelines/tree/master/components/kubeflow/launcher/src),
[container](https://github.com/kubeflow/pipelines/tree/master/components/kubeflow/launcher)

Prediction:
[source code](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/predict),
[container](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/containers/predict)
[source code](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/predict/src),
[container](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/predict)

Confusion Matrix:
[source code](https://github.com/kubeflow/pipelines/tree/master/components/local/evaluation),
Expand Down
12 changes: 6 additions & 6 deletions samples/tfx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ The pipeline requires two arguments:
## Components source

Preprocessing:
[source code](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/tft)
[container](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/containers/tft)
[source code](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/tft/src)
[container](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/tft)

Training:
[source code](https://github.com/kubeflow/pipelines/tree/master/components/kubeflow/launcher/src)
[container](https://github.com/kubeflow/pipelines/tree/master/components/kubeflow/launcher)

Analysis:
[source code](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/tfma)
[container](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/containers/tfma)
[source code](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/tfma/src)
[container](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/tfma)

Prediction:
[source code](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/predict)
[container](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/containers/predict)
[source code](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/predict/src)
[container](https://github.com/kubeflow/pipelines/tree/master/components/dataflow/predict)
8 changes: 4 additions & 4 deletions test/sample_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ spec:
- name: image-suffix
value: "{{inputs.parameters.dataflow-tft-image-suffix}}"
- name: build-script
value: components/dataflow/containers/tft/build.sh
value: components/dataflow/tft/build_image.sh
- name: build-dataflow-predict-image
template: build-image-by-script
arguments:
Expand All @@ -124,7 +124,7 @@ spec:
- name: image-suffix
value: "{{inputs.parameters.dataflow-predict-image-suffix}}"
- name: build-script
value: components/dataflow/containers/predict/build.sh
value: components/dataflow/predict/build_image.sh
- name: build-dataflow-tfma-image
template: build-image-by-script
arguments:
Expand All @@ -136,7 +136,7 @@ spec:
- name: image-suffix
value: "{{inputs.parameters.dataflow-tfma-image-suffix}}"
- name: build-script
value: components/dataflow/containers/tfma/build.sh
value: components/dataflow/tfma/build_image.sh
- name: build-dataflow-tfdv-image
template: build-image-by-script
arguments:
Expand All @@ -148,7 +148,7 @@ spec:
- name: image-suffix
value: "{{inputs.parameters.dataflow-tfdv-image-suffix}}"
- name: build-script
value: components/dataflow/containers/tfdv/build.sh
value: components/dataflow/tfdv/build_image.sh
- name: build-dataproc-create-cluster-image
template: build-image-by-script
arguments:
Expand Down

0 comments on commit da6ff9c

Please sign in to comment.