Code Monkey home page Code Monkey logo

jailer's Introduction

Jailer

TLDR

The goal of Jailer is to solve the same problems that Docker solved on Linux, but for FreeBSD. Imagine a project where next to your already existing Dockerfile you have a Jailerfile, which can be used to start a FreeBSD jail running your installed & configurated application.

Warning

This software is in it's infancy. Use at your own risk. Have fun.

Status

License Unit test Coverage Issues
License Unittest codecov GitHub issues

Quick Start

Jailerfile

A jail can be described in a Jailerfile. The goal is to keep the syntax as similar to a Dockerfile as possible.

Example:

FROM freebsd
RUN echo "Hello Jailer!"

Supported commands

Not all commands are implemented yet. Most commands need to run as root:

Usage:
  jailer [flags]
  jailer [command]

Available Commands:
  build       Build an image from a Jailerfile
  config      Print current config
  dev         Subcommand for development only
  exec        Execute a command inside an existing jail
  fetch       Fetch base from FreeBSD mirror
  help        Help about any command
  info        Display system-wide information
  init        Init for jailer. Creates zfs datasets
  ps          List active jails
  restart     Restart one or more jails
  rm          Remove one or more jails
  run         Run a command in a new jail
  start       Start one or more stopped jails
  stop        Stop one or more running jails
  storage     Manages jail & image storage
  top         Run top inside a jail
  version     Print current version

Flags:
  -c, --config string   Config file (default is $PWD/jailer.yaml)
  -h, --help            help for jailer
  -v, --verbose         Verbose output

Use "jailer [command] --help" for more information about a command.

Development

Dependencies

  • FreeBSD 12.1
    • ZFS
  • Go (tested with 1.13)
    • Cobra
    • Viper
    • Logrus
  • gmake

Setup

cp jailer.example.yml jailer.yml
zfs create -o mountpoint=/jailer $ZROOT/jailer

Resources

Internal

External

jailer's People

Contributors

tobiashienzsch avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

jailer's Issues

Add support for container and image namespaces

It would be cool if this project could support the newer namespaced docker commands as aliases to the existing top-level commands. This would allow someone to alias docker=jailer and get roughly the same functionality.

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.