-
Notifications
You must be signed in to change notification settings - Fork 141
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
Move hack dirs to scripts dir #295
Changes from 3 commits
9128736
6431670
ff5d370
f9889d0
15f03d2
88e2246
307de94
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ "$MINIO_SERVER" == "" ]; then | ||
MINIO_SERVER="http://localhost:8090" | ||
fi | ||
|
||
echo "creating minio alias to $MINIO_SERVER" | ||
mc alias set kfp $MINIO_SERVER minio minio123 | ||
|
||
echo "creating test bucket" | ||
mc mb kfp/test | ||
echo "copying data" | ||
# code modules | ||
mc cp --recursive ${REPOROOT}/transforms/code/code_quality/ray/test-data/input/ kfp/test/code_quality/input | ||
mc cp --recursive ${REPOROOT}/transforms/code/ingest_2_parquet/ray/test-data/input/data-processing-lib.zip kfp/test/ingest_2_parquet/input | ||
mc cp --recursive ${REPOROOT}/transforms/code/ingest_2_parquet/ray/test-data/languages/ kfp/test/ingest_2_parquet/languages | ||
mc cp --recursive ${REPOROOT}/transforms/code/proglang_select/ray/test-data/input/ kfp/test/proglang_select/input | ||
mc cp --recursive ${REPOROOT}/transforms/code/proglang_select/ray/test-data/languages/ kfp/test/proglang_select/languages | ||
mc cp --recursive ${REPOROOT}/transforms/code/malware/ray/test-data/input/ kfp/test/malware/input | ||
# language | ||
mc cp --recursive ${REPOROOT}/transforms/language/lang_id/ray/test-data/input/ kfp/test/lang_id/input | ||
# universal | ||
mc cp --recursive ${REPOROOT}/transforms/universal/doc_id/ray/test-data/input/ kfp/test/doc_id/input | ||
mc cp --recursive ${REPOROOT}/transforms/universal/ededup/ray/test-data/input/ kfp/test/ededup/input | ||
mc cp --recursive ${REPOROOT}/transforms/universal/fdedup/ray/test-data/input/ kfp/test/fdedup/input | ||
mc cp --recursive ${REPOROOT}/transforms/universal/filter/ray/test-data/input/ kfp/test/filter/input | ||
mc cp --recursive ${REPOROOT}/transforms/universal/noop/ray/test-data/input/ kfp/test/noop/input | ||
mc cp --recursive ${REPOROOT}/transforms/universal/tokenization/ray/test-data/ds01/input/ kfp/test/tokenization/ds01/input | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,19 +2,19 @@ | |
|
||
op=$1 | ||
|
||
source ${ROOT_DIR}/hack/common.sh | ||
source ${REPOROOT}/scripts/kind/common.sh | ||
|
||
deploy() { | ||
kubectl apply -f ${ROOT_DIR}/hack/ray_api_server_ingress.yaml | ||
kubectl apply -f ${REPOROOT}/scripts/kind/ray_api_server_ingress.yaml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you add sleep 10 before L:8 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added. Thanks |
||
if [[ "${DEPLOY_KUBEFLOW}" -eq 1 ]]; then | ||
kubectl apply -f ${ROOT_DIR}/hack/kfp_ingress.yaml | ||
kubectl apply -f ${REPOROOT}/scripts/kind/kfp_ingress.yaml | ||
fi | ||
} | ||
|
||
delete(){ | ||
kubectl delete -f ${ROOT_DIR}/hack/ray_api_server_ingress.yaml | ||
kubectl delete -f ${REPOROOT}/scripts/kind/ray_api_server_ingress.yaml | ||
if [[ "${DEPLOY_KUBEFLOW}" -eq 1 ]]; then | ||
kubectl delete -f ${ROOT_DIR}/hack/kfp_ingress.yaml | ||
kubectl delete -f ${REPOROOT}/scripts/kind/kfp_ingress.yaml | ||
fi | ||
} | ||
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is an inconsistent move. A) it is not a shell script and B) if we do this, we should also move .make.defaults, .make.versions,.make.transforms etc. But I'm not sure we want to do this. What was your motivation here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @daw3rd transforms/.make.workflows file remains under transforms... are you refering to other file? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you define a local variable
{REPOROOT}/scripts/kind
, we have too many references to it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed. Thanks