sealvm

command module
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

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"
  • install k8s
sealvm exec -r golang "scp -o \"StrictHostKeyChecking no\" /root/go/src/github.com/labring/sealos/bin/linux_arm64/sealos root@192.168.64.55:/usr/bin/"
sealvm exec --hostnames  default-node-0 "sealos version" 
sealvm exec --hostnames  default-node-0 "sealos run labring/kubernetes:v1.25.0 --single" 

Documentation

Overview

Copyright © 2022 cuisongliu@qq.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL