Giter Club home page Giter Club logo

devpod-provider-multipass's Introduction

Open in DevPod!

Prerequisites

Getting started

The provider is available for auto-installation using DevPod CLI

devpod provider add minhio/devpod-provider-multipass
devpod provider use minhio/devpod-provider-multipass

Or the desktop app

desktop-app-add-provider

Customize the Multipass Instance

This provider has the following options

NAME REQUIRED DESCRIPTION DEFAULT
MULTIPASS_PATH true Path to multipass binary. multipass
MULTIPASS_IMAGE true Image to launch. lts
MULTIPASS_CPUS true Number of CPUs to allocate. 2
MULTIPASS_DISK_SIZE true Disk space to allocate. 40G
MULTIPASS_MEMORY true Amount of memory to allocate. 4G
MULTIPASS_MOUNTS false Comma separated list of mounts.

See https://multipass.run/docs/launch-command for more detailed description of options.

MULTIPASS_MOUNTS is a comma separated list of /absolute/local/path->/instance/path.

  • Relative instance path will be mounted in the /home/devpod directory.
  • If instance path is omitted, the mount point will be the same as the local path. With the exception of windows, where it will be mounted in /home/devpod.

Examples:

  • /Users/minh/.aws->/home/devpod/.aws: local path /Users/minh/.aws mounts to instance path /home/devpod/.aws
    • /Users/minh/.aws->.aws is the same as above
  • /Users/minh: local path /Users/minh mounts to instance path /Users/minh
  • C:\Users\minh: local path C:\Users\minh mounts to instance path /home/devpod/C:/Users/minh

The MULTIPASS_MOUNTS option enable users to mount local path to devcontainer via the multipass instance.

For example, to mount user's local /Users/minh/.aws directory to the devcontainer:

  • Set MULTIPASS_MOUNTS=/Users/minh/.aws->/home/devpod/.aws
  • Configure devcontainer mounts
{
    "name": "Ubuntu",
    "image": "mcr.microsoft.com/devcontainers/base:jammy",
    "mounts": [
        "source=/home/devpod/.aws,target=/home/vscode/.aws,type=bind,consistency=cached"
    ]
}

devpod-provider-multipass's People

Contributors

minhio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

visionarylab

devpod-provider-multipass's Issues

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.