Pulls containers and turns them into OS trees for systemd-nspawn.
You can pull a Docker container:
pip install ostree ostree pull python:3.7-alpine ./alpine
And run it with systemd-nspawn:
sudo systemd-nspawn --directory ./alpine python Spawning container alpine on /home/denis/alpine. Press ^] three times within 1s to kill container. Timezone UTC does not exist in container, not updating container timezone. Python 3.7.0 (default, Aug 22 2018, 20:39:59) [GCC 6.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>>
This is alpha-quality software. Things are intended to break.
The following registries are currently supported:
- Docker (public registry only)
- Google Container Registry (public, private with service account and json keyfile)
- Python 3.6+
Run the Tests
pip install -e '.[test]' py.test ostree
Ostree follows PEP8 as closely as possible. To validate it run:
pip install -e '.[test]' flake8 ostree
Ostree uses Semantic Versioning.
Ostree is released under the MIT license
- Adds environment variables for OSTREE_AUTH, OSTREE_CACHE and OSTREE_PROTOCOL. [href]
Adds support for Google Container Registry. [href]
Implements cache purging. [href]
Shows an error if no protocol is given. [href]
Changes the cache path to
~/.cache/seantis/ostreefor non-root users. [href]
- Initial Release. [href]
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size ostree-0.1.1-py3-none-any.whl (10.4 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size ostree-0.1.1.tar.gz (8.4 kB)||File type Source||Python version None||Upload date||Hashes View|