open-code-review · Podman
Open Code Review is Alibaba's code-review CLI, packaged on the agentimg foundations. This page runs it on Podman with copy-paste examples; every file in this directory is shown below exactly as it exists in the repository.
See the tool overview for image variants, tags, and registries.
Requirements
- Docker or a compatible runtime
Quick start
bash
podman run -it --rm --userns=keep-id:uid=1000,gid=1000 \
-v "$PWD:/workspace:Z" \
ghcr.io/hambn/open-code-review:latestFiles in this directory
run.sh
bash
#!/usr/bin/env bash
# Run OCR rootlessly against the current directory; :Z supports SELinux hosts.
set -euo pipefail
IMAGE="${OCR_IMAGE:-ghcr.io/hambn/open-code-review:latest}"
podman run -it --rm --userns=keep-id:uid=1000,gid=1000 \
-v "$PWD:/workspace:Z" \
"$IMAGE" "$@"More examples
Run it as a systemd user service (quadlet)
Save as ~/.config/containers/systemd/open-code-review.container, then run systemctl --user daemon-reload && systemctl --user start open-code-review:
ini
[Unit]
Description=open-code-review container
[Container]
AutoUpdate=registry
Image=ghcr.io/hambn/open-code-review:latest
Volume=%h/workspace:/workspace:Z
[Service]
Restart=on-failure
[Install]
WantedBy=default.targetRootless with SELinux labeling
:Z relabels the bind mount for container use on SELinux hosts; drop it on non-SELinux systems if you prefer.