File tree Expand file tree Collapse file tree 4 files changed +69
-0
lines changed Expand file tree Collapse file tree 4 files changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ * .log
2
+ * ~
3
+ .vagrant
Original file line number Diff line number Diff line change
1
+ # Provision SQLFlow Desktop for Linux
2
+
3
+ I use Ubuntu 18.04 as the base Vagrant image. The following commands
4
+ download the VM image, starts a VM, and SSH into this VM.
5
+
6
+ ``` bash
7
+ vagrant init ubuntu/bionic64
8
+ vagrant up
9
+ vagrant ssh
10
+ ```
11
+
12
+ In the VM, I need to install Docker.
13
+
14
+ ``` bash
15
+ sudo apt update
16
+ sudo apt install -y docker.io
17
+ ```
Original file line number Diff line number Diff line change
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ Vagrant . configure ( "2" ) do |config |
5
+ config . vm . box = "ubuntu/bionic64"
6
+ config . vm . provision "shell" , path : "provision.sh"
7
+
8
+ config . vm . network "forwarded_port" , guest : 22 , host : 2222
9
+ config . vm . network "forwarded_port" , guest : 3306 , host : 3306
10
+ config . vm . network "forwarded_port" , guest : 50051 , host : 50051
11
+ config . vm . network "forwarded_port" , guest : 8888 , host : 8888
12
+
13
+ config . vm . provider "virtualbox" do |v |
14
+ v . memory = 16384
15
+ v . cpus = 8
16
+ end
17
+ end
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e # Exit script if any error
4
+
5
+ echo " Installing Docker ..."
6
+ # c.f. https://dockr.ly/3cExcay
7
+ if which docker > /dev/null; then
8
+ echo " Docker had been installed. Skip."
9
+ else
10
+ curl -fsSL https://get.docker.com | sh -
11
+ usermod -aG docker vagrant
12
+ fi
13
+
14
+ echo " Installing minikube ..."
15
+ # c.f. https://kubernetes.io/docs/tasks/tools/install-minikube/
16
+ if which minikube > /dev/null; then
17
+ echo " minikube installed. Skip."
18
+ else
19
+ SITE=" https://storage.googleapis.com/minikube/releases"
20
+ curl -sLo /usr/local/bin/minikube " $SITE /latest/minikube-linux-amd64"
21
+ chmod +x /usr/local/bin/minikube
22
+ fi
23
+
24
+ echo " Installing kubectl ..."
25
+ if which kubectl > /dev/null; then
26
+ echo " kubectl installed. Skip."
27
+ else
28
+ SITE=" https://storage.googleapis.com/kubernetes-release/release"
29
+ curl -sLo /usr/local/bin/kubectl \
30
+ " $SITE " /$( curl -s " $SITE /stable.txt" ) " /bin/linux/amd64/kubectl"
31
+ chmod +x /usr/local/bin/kubectl
32
+ fi
You can’t perform that action at this time.
0 commit comments