weasel

command module
v0.1.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

WeaSeL

A tool for running WSL distributions as easy as docker containers.

Description

WeaSeL tries to simplify the developer workflow by utilizing the Windows subsystem for Linux (WSL) for quickly spinning up a development environment containing your favourite tools.

The environment is defined like for any other docker container using a Dockerfile or also pre-existing images from the registry can be used.

The advantages compared to docker are that you get the simplicity of the docker workflow combined with higher performance as well as a better integration of Linux for Windows machines.

Quick Start

WSL uses so-called distributions which are technically an archive containing the Linux filesystem. For building such an archive out of an existing docker image (in this case debian:buster-slim), you have to call:

weasel build --tag demo hub:debian:buster-slim

After executing this command it will be automatically stored and registered for the use with WeaSeL. For spinnung up the distribution as an instance and create an interactive session, call:

weasel run demo

If you just need to execute a command inside this distribution, it is also possible to append it to this command:

weasel run demo echo works!

Installation

We directly provide the WeaSeL executable at the release page that must be downloaded. Then it can be placed at a location that is in the PATH variable.

There is even a simpler way to integrate WeaSeL in an exisiting repository. For that just download the wrapper batch script also available at the release section and place it at the root directory or the repository. When calling it, it automatically downloads the executable and executes it with the provided arguments.

⚠ Note that there is only the executable for Windows because WSL is not available on other operating systems.

Documentation

Overview

Copyright © 2021 Christoph Swoboda

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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