Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 1.36 KB

README-v0.0.MD

File metadata and controls

51 lines (41 loc) · 1.36 KB

how to using it in your project

  • install vm tools
sealvm install 
  • init vms
sealvm run --nodes=1 
  • init vms add dev
 sealvm run --nodes=1 --dev --dev-mounts /Users/cuisongliu/Workspaces/go/src/github.com/labring/sealos:/root/go/src/github.com/labring/sealos 
  • reset vms
sealvm reset
  • install gcc
sealvm exec -r golang "sudo apt-get update"
sealvm exec -r golang "sudo apt-get install -y make gcc-aarch64-linux-gnu gcc-x86-64-linux-gnu"
  • install golang
sealvm exec -r golang "bash golang-init"
sealvm exec -r golang "source /etc/profile.d/golang.sh && echo \$PATH"
sealvm exec -r golang "git config --global --add safe.directory /root/go/src/github.com/labring/sealos"
sealvm exec -r golang "cd /root/go/src/github.com/labring/sealos &&  source /etc/profile.d/golang.sh &&  make build"
  • sync time
sealvm exec -r golang "sudo apt-get update"
sealvm exec -r golang "sudo apt-get install -y ntpdate"
sealvm exec -r golang "sudo ntpdate -s ntp1.aliyun.com"
  • install k8s
sealvm exec -r golang "scp -o \"StrictHostKeyChecking no\" /root/go/src/github.com/labring/sealos/bin/linux_arm64/sealos [email protected]:/usr/bin/"
sealvm exec --hostnames  default-node-0 "sealos version" 
sealvm exec --hostnames  default-node-0 "sealos run labring/kubernetes:v1.25.0 --single"