Giter Club home page Giter Club logo

wslcnab's Introduction

CNAB bundle for WSL distro

Prerequesites

  1. Have Windows 10 Insiders 18305 minimum
    • It will work in the Windows 10 1903 release (no Insider need)
  2. Have a WSL store distro installed
  3. Have Porter installed
  4. Have the docker cli installed on WSL
    • You can also work with docker.exe directly by setting the variable DOCKER_SOURCE=docker.exe
  5. The path of both DISTRO_SOURCE and DISTRO_PATH must be on the Windows filesystem (/mnt/c/...)
    • In my config, I created a symlink /github to /mnt/c/github

Install a new distro

The only limitation here is: the distro needs to be in a container registry (read for 99%: https://hub.docker.com)

Test online

  • If you only want to try it out with Alpine you can also run:
curl https://raw.githubusercontent.com/nunix/wslcnab/master/cnab-setenv.sh | bash -s install

Run offline

  1. Clone the repository:
git clone https://github.com/nunix/wslcnab.git
  1. Modify the values in cnab-setenv.sh script:
    • DISTRO_IMAGE: name of the container image and the version can be added: export DOCKER_IMAGE=ubuntu:19.04
    • DISTRO_NAME: name of your distro, MUST BE UNIQUE, which will be listed/called by wsl.exe
  2. Install a new distro
./cnab-setenv.sh install
  1. Uninstall your distro
./cnab-setenv.sh uninstall

Enjoy!

wslcnab's People

Contributors

nunix avatar

Stargazers

 avatar Nathan Smyth avatar Jorge Arteiro avatar

Watchers

James Cloos avatar  avatar Jorge Arteiro 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.