From cc59aa7b1c4a59682b3e603998a0c34d6ec57471 Mon Sep 17 00:00:00 2001 From: HongwuLin Date: Thu, 30 Jul 2020 20:15:16 +0800 Subject: [PATCH] Add model zoo to playground --- sqlflow | 2 +- start.bash | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/sqlflow b/sqlflow index d5afe4b..f3f2b24 160000 --- a/sqlflow +++ b/sqlflow @@ -1 +1 @@ -Subproject commit d5afe4bb16eaca7c5009a80f20aa6a9a91949087 +Subproject commit f3f2b24e6561d3e92eacfe1618eb864afc937409 diff --git a/start.bash b/start.bash index 935af06..7009cd6 100755 --- a/start.bash +++ b/start.bash @@ -35,15 +35,19 @@ if [[ -d "/root/.sqlflow" ]]; then find /root/.sqlflow/* | xargs -I'{}' sh -c "docker load -i '{}' && sleep 10" touch /root/.sqlflow/.loaded fi + # use local step images for model zoo model + docker tag sqlflow/sqlflow:step sqlflow/sqlflow:latest else # c.f. https://github.com/sql-machine-learning/sqlflow/blob/develop/.travis.yml docker pull sqlflow/sqlflow:jupyter docker pull sqlflow/sqlflow:mysql docker pull sqlflow/sqlflow:server docker pull sqlflow/sqlflow:step + docker pull sqlflow/sqlflow:modelzooserver docker pull argoproj/argoexec:v2.7.7 docker pull argoproj/argocli:v2.7.7 docker pull argoproj/workflow-controller:v2.7.7 + docker tag sqlflow/sqlflow:modelzooserver sqlflow/sqlflow:model_zoo fi echo "Done." @@ -163,6 +167,7 @@ expose argo service/argo-server 9001:2746 expose default pod/sqlflow-server 8888:8888 expose default pod/sqlflow-server 3306:3306 expose default pod/sqlflow-server 50051:50051 +expose default pod/sqlflow-server 50055:50055 # Get Jupyter Notebook's token, for single-user mode, we disabled the token checking # jupyter_addr=$(kubectl logs pod/sqlflow-server notebook | grep -o -E "http://127.0.0.1[^?]+\?token=.*" | head -1) @@ -176,6 +181,7 @@ Access Jupyter Notebook at: http://localhost:8888 Access Kubernetes Dashboard at: http://localhost:9000 Access Argo Dashboard at: http://localhost:9001 Access SQLFlow with cli: ./sqlflow --data-source="\"$mysql_addr\"" +Access SQLFlow Model Zoo at: localhost:50055 Stop minikube with: minikube stop Stop vagrant vm with: vagrant halt