跳转到主要内容

从容器中拉取并转换为systemd-nspawn的操作系统树。

项目描述

您可以拉取Docker容器

pip install ostree
ostree pull python:3.7-alpine ./alpine

并使用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.
>>>

警告

这是一个alpha版本的软件。预期会有一些问题。

支持的注册表

以下注册表目前被支持

  • Docker(仅公共注册表)
  • Google Container Registry(公共,私有与服务帐户和json密钥文件)

要求

  • POSIX
  • Python 3.6+

运行测试

pip install -e '.[test]'
py.test ostree

约定

Ostree尽可能遵循PEP8。要验证它,请运行

pip install -e '.[test]'
flake8 ostree

Ostree使用语义版本化

许可协议

Ostree在MIT许可下发布

变更日志

0.1.1 (2018-09-07)

  • 添加了OSTREE_AUTH、OSTREE_CACHE和OSTREE_PROTOCOL环境变量。[href]

0.1.0 (2018-09-06)

  • 添加了对Google Container Registry的支持。[href]

  • 实现了缓存清除。[href]

  • 如果没有给出协议,则显示错误。[href]

  • 将缓存路径更改为非root用户的~/.cache/seantis/ostree。[href]

0.0.0 (2018-08-24)

  • 初始发布。[href]

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分发

ostree-0.1.1.tar.gz (8.4 kB 查看散列值

上传时间

构建分发

ostree-0.1.1-py3-none-any.whl (10.4 kB 查看散列值

上传时间 Python 3

由以下支持