Skip to content

Commit df8f1e2

Browse files
authored
Merge pull request #40 from sql-machine-learning/modify_doc
Disable Jupyter Notebook token checking
2 parents 17288bc + 2c5eedb commit df8f1e2

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

provision.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ VAGRANT_SHARED_FOLDER=/home/vagrant/desktop
88
source $VAGRANT_SHARED_FOLDER/sqlflow/docker/dev/find_fastest_resources.sh
99

1010
echo "Setting apt-get mirror..."
11-
rm /etc/apt/sources.list && sync
11+
rm -rf /var/lib/apt/lists/*
1212
find_fastest_apt_source >/etc/apt/sources.list
1313
apt-get update
1414

publish.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ VBoxManage sharedfolder remove "$vm" --name home_vagrant_desktop
3232
VBoxManage sharedfolder remove "$vm" --name vagrant
3333
echo "Done."
3434

35+
echo "Rebind serial port file"
36+
VBoxManage modifyvm "$vm" --uartmode1 file /tmp/playground.log
37+
echo "Done."
38+
3539
echo "Exporting vm ..."
3640
VBoxManage export "$vm" -o SQLFlowPlayground.ova
3741
echo "Done."

sqlflow

Submodule sqlflow updated 94 files

start.bash

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,15 @@ expose default pod/sqlflow-server 8888:8888
156156
expose default pod/sqlflow-server 3306:3306
157157
expose default pod/sqlflow-server 50051:50051
158158

159-
jupyter_addr=$(kubectl logs pod/sqlflow-server notebook | grep -o -E "http://127.0.0.1[^?]+\?token=.*" | head -1)
159+
# Get Jupyter Notebook's token, for single-user mode, we disabled the token checking
160+
# jupyter_addr=$(kubectl logs pod/sqlflow-server notebook | grep -o -E "http://127.0.0.1[^?]+\?token=.*" | head -1)
160161
mysql_addr="mysql://root:root@tcp($(kubectl get -o jsonpath='{.status.podIP}' pod/sqlflow-server))/?maxAllowedPacket=0"
161162

162163
echo -e "
163164
\033[32m
164165
Congratulations, SQLFlow playground is up!
165166
166-
Access Jupyter Notebook at: $jupyter_addr
167+
Access Jupyter Notebook at: http://localhost:8888
167168
Access Kubernetes Dashboard at: http://localhost:9000
168169
Access Argo Dashboard at: http://localhost:9001
169170
Access SQLFlow with cli: ./sqlflow --datasource="\"$mysql_addr\""

0 commit comments

Comments
 (0)