dvs

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: MIT Imports: 7 Imported by: 0

README

Build Status Go Report Card Latest Version License Repo Size

Docker-based Virtual System

dvs is a command-line tool for creating isolated sandbox

Required: Docker

Features:

  • Cross platform support (Windows is coming soon)
  • Creating an isolated Linux environment based on a sandbox
  • No residue. The container is deleted every time the process exits, don't worry it will fill up your disk space

Usage

# linux repl
$ dvs

# run command in the linux sandbox
$ dvs run ls -lh

# Run the specified sandbox with Docker Image's name
$ dvs --image node:latest run node --version

Installation

If you are using Linux/MacOS. you can install it with following command:

# install latest version
wget -qO- https://raw.githubusercontent.com/axetroy/dvs/master/install.sh | bash
# or install specified version
wget -qO- https://raw.githubusercontent.com/axetroy/dvs/master/install.sh | bash -s v0.1.0

Or

Download the executable file for your platform at release page

Then set the environment variable.

eg, the executable file is in the ~/bin directory.

# ~/.bash_profile
export PATH="$PATH:~/bin"

finally, try it out.

dvs --help

Upgrade

You can re-download the executable and overwrite the original file.

or run the following command to upgrade

$ dvs upgrade # upgrade to latest
$ dvs upgrade v0.2.0 # Update to specified version

Uninstall

just delete dvs executable file

Build from source code

Make sure you have Golang@v1.13.1 installed.

$ git clone https://github.com/axetroy/dvs.git $GOPATH/src/github.com/axetroy/dvs
$ cd $GOPATH/src/github.com/axetroy/dvs
$ make build

Test

$ make test

License

The MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
dir
fs

Jump to

Keyboard shortcuts

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