-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add orb instance from interface (#37)
* refactor(main): delete install funcs Signed-off-by: cuisongliu <[email protected]> * refactor(main): add orb interface Signed-off-by: cuisongliu <[email protected]> * refactor(main): add orb interface for lanuch vm server Signed-off-by: cuisongliu <[email protected]> * refactor(main): add orb interface for lanuch vm server Signed-off-by: cuisongliu <[email protected]> * refactor(main): add orb instance for lanuch vm server Signed-off-by: cuisongliu <[email protected]> --------- Signed-off-by: cuisongliu <[email protected]>
- Loading branch information
1 parent
6d9719b
commit a9fe172
Showing
32 changed files
with
979 additions
and
590 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## orb配置 | ||
需要注意一下,orb不必需要mount和unmount 默认会挂载/Users/cuisongliu目录到Linux服务器,需要调整对应的配置 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: virtual-machine.sealos.io/v1 | ||
kind: Action | ||
spec: | ||
data: | ||
- mount: | ||
source: /Users/cuisongliu/Workspaces/go/src/github.com/labring/sealos | ||
target: /root/go/src/github.com/labring/sealos | ||
- exec: | | ||
sudo apt-get -y update | ||
sudo apt-get install -y make gcc-aarch64-linux-gnu gcc-x86-64-linux-gnu | ||
sudo apt-get install -y ntpdate | ||
sudo apt-get install -y git | ||
sudo ntpdate -s ntp1.aliyun.com | ||
- copyContent: | ||
content: | | ||
#!/bin/bash | ||
version=1.20.1 | ||
arch=arm64 | ||
rm -rf /root/go${version}.linux-${arch}.tar.gz | ||
wget https://studygolang.com/dl/golang/go${version}.linux-${arch}.tar.gz -O /root/go${version}.linux-${arch}.tar.gz | ||
rm -rf /usr/local/go && tar -C /usr/local -zxvf /root/go${version}.linux-${arch}.tar.gz | ||
echo "export PATH=\$PATH:/usr/local/go/bin" > /etc/profile.d/golang.sh | ||
chmod 0755 /etc/profile.d/golang.sh | ||
rm -rf /root/go${version}.linux-${arch}.tar.gz | ||
mkdir -p /root/go/src/github.com/labring /root/go/bin /root/go/pkg | ||
source /etc/profile.d/golang.sh | ||
go env -w GOPROXY="https://goproxy.io,direct" | ||
target: /root/golang-install.sh | ||
- exec: | | ||
bash /root/golang-install.sh | ||
source /etc/profile.d/golang.sh && echo $PATH | ||
git config --global --add safe.directory /root/go/src/github.com/labring/sealos | ||
cd /Users/cuisongliu/Workspaces/go/src/github.com/labring/sealos && source /etc/profile.d/golang.sh && make build | ||
ons: | ||
- role: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: virtual-machine.sealos.io/v1 | ||
kind: Action | ||
spec: | ||
data: | ||
- exec: | | ||
cd /Users/cuisongliu/Workspaces/go/src/github.com/labring/sealos && source /etc/profile.d/golang.sh && make build | ||
cp bin/linux_arm64/sealos /usr/bin/ | ||
cp bin/linux_arm64/sealctl /usr/bin/ | ||
ons: | ||
- role: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.