Giter Site home page Giter Site logo

kaneleven / sealvm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from labring/sealvm

0.0 0.0 0.0 245 KB

Virtual machine orchestography tool to facilitate the development and test integration of sealos

License: Apache License 2.0

Go 99.55% Makefile 0.45%

sealvm's Introduction

how to using it

Run sealvm command to install multipass vms

asciicast

  • install vm tools
sealvm install 
  • init vms
sealvm run --nodes=node:2,master:1
  • run actions
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 ntpdate -s ntp1.aliyun.com
  - copy:
      source: /Users/cuisongliu/Workspaces/go/src/github.com/labring/sealos/README.md
      target: /root/README.md
  - 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 /root/go/src/github.com/labring/sealos &&  source /etc/profile.d/golang.sh &&  make build
  - copyContent:
    content: |
      #!/bin/bash
      echo "deb [trusted=yes] https://apt.fury.io/labring/ /" | tee /etc/apt/sources.list.d/labring.list
      sudo apt-get update
      sudo apt-get install -y sealos
    target: /root/sealos-apt.sh
  ons:
  - role: master
sealvm action -f action.yaml

example: more actions is here

  • reset vms
sealvm reset

sealvm's People

Contributors

cuisongliu avatar whybeyoung avatar bxy4543 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.