Skip to content

Commit c478d42

Browse files
committed
Fix
1 parent 4950c45 commit c478d42

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

provision.bash

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,34 @@ echo "Docker pull SQLFlow images ..."
1717
docker pull --quiet sqlflow/sqlflow:latest
1818
echo "Done."
1919

20+
# The shared folder is specified in Vagrantfile.
21+
VAGRANT_SHARED_FOLDER=/home/vagrant/desktop
22+
23+
echo "Install axel ..."
24+
if which axel > /dev/null; then
25+
echo "axel installed. Skip."
26+
else
27+
$VAGRANT_SHARED_FOLDER/sqlflow/scripts/travis/install_axel.sh
28+
fi
29+
2030
echo "Export Kubernetes environment variables ..."
21-
source $(dirname $0)/sqlflow/scripts/travis/export_k8s_vars.sh
31+
# NOTE: According to https://stackoverflow.com/a/16619261/724872,
32+
# source is very necessary here.
33+
source $VAGRANT_SHARED_FOLDER/sqlflow/scripts/travis/export_k8s_vars.sh
2234

2335
echo "Installing kubectl ..."
2436
if which kubectl > /dev/null; then
2537
echo "kubectl installed. Skip."
2638
else
27-
$(dirname $0)/sqlflow/scripts/travis/install_kubectl.sh
39+
$VAGRANT_SHARED_FOLDER/sqlflow/scripts/travis/install_kubectl.sh
2840
fi
2941
echo "Done."
3042

3143
echo "Installing minikube ..."
3244
if which minikube > /dev/null; then
3345
echo "minikube installed. Skip."
3446
else
35-
$(dirname $0)/sqlflow/scripts/travis/install_minikube.sh
47+
$VAGRANT_SHARED_FOLDER/sqlflow/scripts/travis/install_minikube.sh
3648
fi
3749
echo "Done."
3850

start.bash

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
set -e
1616

17+
# NOTE: According to https://stackoverflow.com/a/16619261/724872,
18+
# source is very necessary here.
1719
source $(dirname $0)/sqlflow/scripts/travis/export_k8s_vars.sh
20+
1821
$(dirname $0)/sqlflow/scripts/travis/start_minikube.sh
1922
$(dirname $0)/sqlflow/scripts/travis/start_argo.sh

0 commit comments

Comments
 (0)