Skip to main content

Portable reproducible environments for Linux applications

Project description

prenv

portable reproducible environments for Linux applications

PyPi Code style: black

What is prenv?

prenv is a tool that allows regular users to deploy applications in a portable and reproducible way.

prenv does not require root privileges to be installed or used. The focus of prenv is to provide a tool that can be used to run applications in a reproducible way, without the need to install dependencies on the host system.

prenv does NOT aim to provide full isolation between environemtns and the host, for such kind case please consider using Docker or Podman.

Which applications can I run with prenv?

Currently you can run applications available to install from the following distributions:

- [Alpine Linux](https://alpinelinux.org/)
- [Arch Linux](https://www.archlinux.org/)
- [Void Linux](https://voidlinux.org/)

System Requirements

  • Linux or WSL2 (Kernel version >=4.18)
  • Python 3.8, 3.9, 3.10 or 3.11

How to install

pip install prenv

How to use

Create an ephemeral in-memory Alpine instance

Using Void Linux

prenv create voidlinux
xbps-install -Su
xbps-install -u xbps
xbps-install -S curl jq
curl -s https://www.githubstatus.com/api/v2/status.json

Using Alpine

prenv create alpine
apk update
apk add curl jq
curl -s https://www.githubstatus.com/api/v2/status.json

Using Arch Linux

prenv create archlinux
sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
sed -i '/CheckSpace/d' /etc/pacman.conf
pacman-key --init && pacman-key --populate archlinux
pacman -Sy curl jq
curl -s https://www.githubstatus.com/api/v2/status.json

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prenv-0.0.2.tar.gz (12.2 kB view hashes)

Uploaded Source

Built Distribution

prenv-0.0.2-py3-none-any.whl (10.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page