Code Monkey home page Code Monkey logo

firefighter's Introduction

Firefighter

Firefighter is, for now, as set of scripts to download or build from source the firecracker and the firectl, download linux images and then eventually run them as a microvm.

For now, things are opinionated. But I'll fix it in the future and make everything configurable.

For starting a new microvm, run this:

git clone https://gitlab.com/moradian/firefighter
cd firefighter
./run_microvm.sh start alpine

You'll eventually be in a shell inside alpine. To enable networking and internet connectivity, run this:

The username and password is root.

ip addr add 172.16.0.2/24 dev eth0
ip route add default via 172.16.0.1 dev eth0
echo "nameserver 8.8.8.8" > /etc/resolv.conf
ping google.com

To stop the microvm, run restart inside microvm and then ./run_microvm.sh stop from your host.

firefighter's People

Contributors

mostafa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

firefighter's Issues

Enhancement: custom image run support

It will be useful if ./run_microvm.sh start custom_image_name is added.

Possible procedure to add custom_image:

  • Add custom image in /image folder (rootfs and kernel name should be the same).
  • refer the custom_image name in run command like above mentioned cmd.

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.