在云环境中实施所有权和数据安全的工具
probator的Python项目详细描述
遗嘱认证人
用于验证基础结构的安全性和法规遵从性工具。有关完整文档,请转到https://probator.gitlab.io/
码头工人
使用提供的Dockerfile
构建一个包含每次
运行后端、调度程序和工作进程所必需的。
构建参数
dockerfile当前支持3个参数作为--build-arg
变量
Name | Description |
---|---|
pip_flags | Used to pass any extra configuration arguments to the pip install command. An example of this could be to pass in the ^{ |
extra_packages | Any extra python packages you would like to install, such as custom plugins |
timezone | The timezone to set in the container, used for the schedulers. Defaults to ^{ |
限制
容器没有数据库,需要外部提供。你 还需要映射到包含配置文件的卷中
示例
使用来自私有存储库的自定义插件构建
此示例使用pip_flags
和extra_packages
安装自定义插件probator-auth-openid
docker build . -t probator:latest --build-arg pip_flags="--extra-index-url https://pypi.company.tld/simple/" --build-arg extra_packages="probator-auth-openid"
示例执行
要运行系统的任何部分,您需要在配置文件夹中传递所需的文件(config.json
、logging.json
和ssl/private.key
),这些文件存在于容器中的/usr/local/etc/probator
。
下面的示例将执行调度程序
docker run --rm -v probator-config:/usr/local/etc/probator probator:latest probator scheduler
下一个示例演示如何使用生产api服务器的端口映射运行api服务器
docker run --rm -p 5000:5000 -v probator-config:/usr/local/etc/probator probator:latest gunicorn -w 6 -b 0.0.0.0:5000 -k gthread -t 60 "probator.wsgi:run()"
学分
基于防暴游戏的工作Cloud Inquisitor