Skip to main content

Balic - Command-line Linux Containers Toolset

Project description

Balič (read balitch) is a command-line toolset for working with LXC containers.

PyPI - License PyPI - Downloads
PyPI - Status PyPI - Format PyPI - Wheel
PyPI - Version PyPI - Python Versions PyPI - Implementation
coverage.io report

Installation

Install balic via pip:

pip install balic

Balic requires the following packages installed:

appdirs
cliff

Usage

Create a new container:

# create a new lxc container called test
balic create -n test

Build setup:

# create test build directory
mkdir test

# create build.sh that echos hello world inside the container
echo 'echo "hello world"' > test/build.sh

# copy test directory into the container and run build.sh
balic build -n test -d test

Multi-step builds can be done as well:

# create test_step2 build directory
mkdir test_step2

# create build.sh that echos "another step" inside the container
echo 'echo "another step"' > test_step2/build.sh

# copy test directory into container and run build.sh
balic build -n test -d test_step2

Pack the built container:

# pack test lxc container into rootfs.tar.gz
balic pack -n test -o rootfs.tar.gz

Destroy the container when no longer needed:

# destroy test lxc container
balic destroy -n test

Full workflow:

balic create -n test                 # creates lxc container names test
balic build -n test -d build_dir     # builds test lxc container using content of build_dir
balic build -n test -d build_dir2    # builds test lxc container using content of build_dir2
balic build -n test -d build_dir3    # builds test lxc container using content of build_dir3
...
balic pack -n test -o rootfs.tar.gz  # packs test lxc container into rootfs.tar.gz
balic destroy -n test                # destroy test lxc container

Documentation

Source of the documentaton is available in the Balic repository https://gitlab.com/markuz/balic/tree/master/docs/source

Development

Pull requests welcomed.

Balic git repository is available at https://gitlab.com/markuz/balic

For more information, see https://gitlab.com/markuz/balic/-/blob/master/docs/source/development.rst

License

BSD 3-clause Clear License

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

balic-0.0.4.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

balic-0.0.4-py2.py3-none-any.whl (9.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file balic-0.0.4.tar.gz.

File metadata

  • Download URL: balic-0.0.4.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for balic-0.0.4.tar.gz
Algorithm Hash digest
SHA256 637d1b214a86de8c67175278dc9b067f6e2991475cf0fda2ab833495a2121827
MD5 0dc33ebf15ec47d53f97ae6aa4cea375
BLAKE2b-256 8799063ea8a70ab6096564fc3665156d5ed3dd8376c0b333f2eab814c403a170

See more details on using hashes here.

File details

Details for the file balic-0.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: balic-0.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for balic-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4d3bc222eca89db382d379e7da66b169080141489951e84f69895c407eca728e
MD5 a8a653a0645294a4a6b11df890f340d4
BLAKE2b-256 44d59154876d9554ba7e90de4cabb9d505d56791f290d9a369b35ea3e1e37970

See more details on using hashes here.

Supported by

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