咏叹调

apache-ariatosca的Python项目详细描述


Build StatusAppveyor Build StatusLicensePyPI releasePython VersionsWheelContributorsOpen Pull RequestsClosed Pull Requests

什么是咏叹调?

ARIA是开源的, TOSCA为 编制并供项目使用构建基于TOSCA的资源和 服务编排

任何组织都可以利用ARIA来实现基于TOSCA的编排 解决方案,无论是多云企业应用程序,还是针对多个 虚拟基础架构管理器

使用aria,您可以利用tosca的云可移植性来开发、测试和运行 应用程序,从模板到部署。

ARIA是Apache Software Foundation下的一个孵化项目

安装

咏叹调是available on PyPI

aria需要python 2.7。当前不支持Python3。

要直接从pypi安装aria(使用wheel),请使用:

pip install --upgrade pip setuptools
pip install apache-ariatosca

要从源代码安装aria,请从下载源tarball PyPI,提取并将cd放入提取目录, 然后运行:

pip install --upgrade pip setuptools
pip install .
源包附带了相关的示例、文档,requirements.txt(对于
特别安装aria测试所用的冻结依赖项版本)等等。

aria有额外的可选依赖项。这些是通过ssh运行操作所必需的。
下面介绍如何安装这些依赖项,包括所需的系统
每个操作系统的依赖关系。

注意:这些依赖项可能有不同的许可证,这些许可证可能与apache许可证不兼容
2.0.

ubuntu/debian(在ubuntu 14.04和ubuntu 16.04上测试):

apt-get install -y python-dev gcc libffi-dev libssl-dev
pip install apache-ariatosca[ssh]

centos/fedora(在centos 6.6和centos 7上测试):

yum install -y python-devel gcc libffi-devel openssl-devel
pip install apache-ariatosca[ssh]

arch Linux

pacman -Syu --noconfirm python2 gcc libffi openssl
pip2 install apache-ariatosca[ssh]

windows(在Windows 10上测试):

# no additional system requirements are needed
pip install apache-ariatosca[ssh]

macos

# TODO

要安装pip,请使用操作系统的包管理系统,或运行:

wget http://bootstrap.pypa.io/get-pip.py
python get-pip.py

开始

本节将描述如何运行一个简单的“hello world”示例。

首先,为aria提供aria“hello world”服务模板并命名它(例如 my-service-template):

aria service-templates store examples/hello-world/hello-world.yaml my-service-template

现在基于这个服务模板创建一个服务并命名它(例如my-service):

aria services create my-service -t my-service-template

最后,在my-service上启动install工作流执行,如下所示:

aria executions start install -s my-service

现在应该在本地计算机上运行一个简单的web服务器。你可以试试看 http://localhost:9090查看已部署的应用程序。

要卸载和清理环境,请执行以下步骤:

aria executions start uninstall -s my-service
aria services delete my-service
aria service-templates delete my-service-template

资源

通过向<group>-subscribe@ariatosca.incubator.apache.org(例如 dev-subscribe@ariatosca.incubator.apache.org)请参阅有关如何订阅邮件的信息 列表here

有关过去的信件,请参阅 dev mailing list archive

许可证

Aria是根据 Apache License 2.0

贡献

欢迎并鼓励您参与并为aria项目做出贡献。

请看我们的指南 Contributing to ARIA

也可以在邮件列表上提供反馈(参见Resources) 章节)。

行为准则

Aria Tosca项目如下 the Apache Code of Conduct

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
在Grails中集成javaapplet   动态设置片段时发生java错误   JavaSpringVelocity模板电子邮件?   SpringHateOAS中java自定义json输出   java wait()和notify()相关问题   正则表达式中的单词边界是什么?   使用外部库将项目部署到glassfish后发生java NoClassDefFoundError   java为什么在这里初始化ListNode两次?   java libGDX移动三维模型   java使线程等待另一个线程的执行   正则表达式如何在java中使用正则表达式解析给定字符串   java SWT ScrolledComposite在32768像素后切断画布生成的图像