Skip to content

Commit 7789235

Browse files
committed
Update
1 parent 3e2b6be commit 7789235

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Vagrant.configure("2") do |config|
55
config.vm.box = "ubuntu/bionic64"
6-
config.vm.provision "shell", path: "provision.sh"
6+
config.vm.provision "shell", path: "provision.bash"
77

88
# Don't forward 22. Even if we do so, the exposed port only binds
99
# to 127.0.0.1, but not 0.0.0.0. Other ports binds to all IPs.

provision.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
set -e # Exit script if any error
44

5-
65
echo "Installing Docker ..."
76
# c.f. https://dockr.ly/3cExcay
87
if which docker > /dev/null; then
@@ -13,15 +12,13 @@ else
1312
fi
1413
echo "Done."
1514

16-
1715
echo "Docker pull SQLFlow images ..."
1816
# c.f. https://github.com/sql-machine-learning/sqlflow/blob/develop/.travis.yml
1917
docker pull --quiet sqlflow/sqlflow:latest
2018
echo "Done."
2119

22-
2320
echo "Export Kubernetes environment variables ..."
24-
$(dirname $0)/sqlflow/scripts/travis/export_k8s_vars.sh
21+
source $(dirname $0)/sqlflow/scripts/travis/export_k8s_vars.sh
2522

2623
echo "Installing kubectl ..."
2724
if which kubectl > /dev/null; then
@@ -31,7 +28,6 @@ else
3128
fi
3229
echo "Done."
3330

34-
3531
echo "Installing minikube ..."
3632
if which minikube > /dev/null; then
3733
echo "minikube installed. Skip."
@@ -40,7 +36,6 @@ else
4036
fi
4137
echo "Done."
4238

43-
4439
echo "Configure minikube ..."
4540
mkdir -p /home/vagrant/.kube /home/vagrant/.minikube
4641
touch /home/vagrant/.kube/config

start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414

1515
set -e
1616

17-
$(dirname $0)/sqlflow/scripts/travis/export_k8s_vars.sh
17+
source $(dirname $0)/sqlflow/scripts/travis/export_k8s_vars.sh
1818
$(dirname $0)/sqlflow/scripts/travis/start_minikube.sh
1919
$(dirname $0)/sqlflow/scripts/travis/start_argo.sh

0 commit comments

Comments
 (0)