opa

Opa Docker Image

仅包含Open Policy Agent二进制文件的Docker镜像,可作为命令行工具使用。

下载次数: 0状态:社区镜像维护者:cromrots仓库类型:镜像最近更新:
下载命令
点击查看

Open Policy Agent Docker image

This project builds a binary-only docker image for the https://www.openpolicyagent.org/ command line tool.

Source

Visit the https://github.com/SebastiaanPasterkamp/opa-docker for the source code.

Usage:

The docker image can be used as a drop-in command line tool:

bash
docker run --rm -i cromrots/opa fmt < policy.rego

Or as a CI image:

yaml
  ...

  - name: rego:test
    image: cromrots/opa
    commands:
      - opa test -v internal/policy/rego/
      - opa test -v internal/policy/testdata/

  ...

Security

The binary is build using the official golang image, by calling go install github.com/open-policy-agent/opa. The final base image is FROM scratch, and runs as a non-root user/group 1000:2000 in /etc/passwd.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 opa 镜像标签

docker pull docker.xuanyuan.run/cromrots/opa:<标签>

DockerHub 原生拉取命令

docker pull cromrots/opa:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告