Skip to content

Commit 8316039

Browse files
committed
Release playground iamge and update doc
1 parent 1743a70 commit 8316039

File tree

3 files changed

+25
-11
lines changed

3 files changed

+25
-11
lines changed

dev.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,14 @@ According to this [tutorial](https://www.techrepublic.com/article/how-to-import-
4949
5050
To run SQLFlow on a desktop computer running Windows, Linux, or macOS, you need to download
5151
52-
1. the released `SQLFlowPlayground.ova`, directly download from [here](http://cdn.sqlflow.tech/latest/SQLFlowPlayground.ova), or use wget:
52+
1. the released VirtualBox `.ova` file, you have two choices:
53+
- the minimized image (about 600M): shipped with all bootstrap files but no dependency docker images. When you start the playground, you will wait for a while to download the latest docker images, minikube framework and other packages.
5354
```bash
54-
wget -c http://cdn.sqlflow.tech/latest/SQLFlowPlayground.ova
55+
wget -c http://cdn.sqlflow.tech/latest/SQLFlowPlaygroundBare.ova
56+
```
57+
- the full installed image (about 2G): with all dependencies, no extra downloading is needed when starting. Note that in this case, the images will not be updated automatically, you will do it manually when needed.
58+
```bash
59+
wget -c http://cdn.sqlflow.tech/latest/SQLFlowPlaygroundFull.ova
5560
```
5661
1. optional, the [sqlflow](https://github.com/sql-machine-learning/sqlflow/blob/develop/doc/run/cli.md) command-line tool released by SQLFlow CI.
5762

provision.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ if which minikube > /dev/null; then
6161
echo "minikube installed. Skip."
6262
else
6363
$VAGRANT_SHARED_FOLDER/sqlflow/scripts/travis/install_minikube.sh
64+
minikube config set WantUpdateNotification false
6465
fi
6566
echo "Done."
6667

start.bash

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,22 @@ fi
2929
filebase=/root/scripts
3030

3131
echo "Docker pull dependency images, you can comment this if already have them ..."
32-
# c.f. https://github.com/sql-machine-learning/sqlflow/blob/develop/.travis.yml
33-
docker pull sqlflow/sqlflow:jupyter
34-
docker pull sqlflow/sqlflow:mysql
35-
docker pull sqlflow/sqlflow:server
36-
docker pull sqlflow/sqlflow:step
37-
docker pull argoproj/argoexec:v2.7.7
38-
docker pull argoproj/argocli:v2.7.7
39-
docker pull argoproj/workflow-controller:v2.7.7
32+
if [[ -d "/root/.cache" ]]; then
33+
echo "Cache found at /root/.cache ..."
34+
if [[ ! -f "/root/.cache/.loaded" ]]; then
35+
find /root/.cache/* | xargs -I'{}' docker load -i '{}'
36+
touch /root/.cache/.loaded
37+
fi
38+
else
39+
# c.f. https://github.com/sql-machine-learning/sqlflow/blob/develop/.travis.yml
40+
docker pull sqlflow/sqlflow:jupyter
41+
docker pull sqlflow/sqlflow:mysql
42+
docker pull sqlflow/sqlflow:server
43+
docker pull sqlflow/sqlflow:step
44+
docker pull argoproj/argoexec:v2.7.7
45+
docker pull argoproj/argocli:v2.7.7
46+
docker pull argoproj/workflow-controller:v2.7.7
47+
fi
4048
echo "Done."
4149

4250
# NOTE: According to https://stackoverflow.com/a/16619261/724872,
@@ -167,7 +175,7 @@ Congratulations, SQLFlow playground is up!
167175
Access Jupyter Notebook at: http://localhost:8888
168176
Access Kubernetes Dashboard at: http://localhost:9000
169177
Access Argo Dashboard at: http://localhost:9001
170-
Access SQLFlow with cli: ./sqlflow --datasource="\"$mysql_addr\""
178+
Access SQLFlow with cli: ./sqlflow --data-source="\"$mysql_addr\""
171179
172180
Stop minikube with: minikube stop
173181
Stop vagrant vm with: vagrant halt

0 commit comments

Comments
 (0)