Metadata-Version: 2.1
Name: oc-mirror
Version: 0.1.3
Summary: A utility that can be used to mirror OpenShift releases between docker registries.
Home-page: https://pypi.org/project/oc-mirror/
Author: Richard Davis
Author-email: crashvb@gmail.com
License: GNU General Public License v3.0
Project-URL: Bug Reports, https://github.com/crashvb/oc-mirror/issues
Project-URL: Source, https://github.com/crashvb/oc-mirror
Keywords: integrity mirror oc oc-mirror openshift sign signatures verify
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: aiofiles
Requires-Dist: click
Requires-Dist: docker-registry-client-async (>=0.2.1)
Requires-Dist: docker-sign-verify (>=2.0.2)
Requires-Dist: pretty-bad-protocol (>=3.1.1)
Requires-Dist: pyyaml
Provides-Extra: dev
Requires-Dist: black ; extra == 'dev'
Requires-Dist: pylint ; extra == 'dev'
Requires-Dist: pyopenssl ; extra == 'dev'
Requires-Dist: pytest ; extra == 'dev'
Requires-Dist: pytest-asyncio ; extra == 'dev'
Requires-Dist: pytest-docker-apache-fixtures ; extra == 'dev'
Requires-Dist: pytest-docker-registry-fixtures ; extra == 'dev'
Requires-Dist: pytest-docker-squid-fixtures (>=0.1.2) ; extra == 'dev'
Requires-Dist: pytest-gnupg-fixtures ; extra == 'dev'
Requires-Dist: twine ; extra == 'dev'
Requires-Dist: wheel ; extra == 'dev'

# oc-mirror

## Overview

A utility that can be used to mirror OpenShift releases between docker registries.

## Compatibility

* Tested with python 3.8

## Installation
### From [pypi.org](https://pypi.org/project/oc-mirror/)

```
$ pip install oc_mirror
```

### From source code

```bash
$ git clone https://github.com/crashvb/oc-mirror
$ cd oc-mirror
$ virtualenv env
$ source env/bin/activate
$ python -m pip install --editable .[dev]
```

## Usage

```bash
DRCA_CREDENTIALS_STORE=~/.docker/quay.io-pull-secret.json \
  atomic \
    --signature-store=https://mirror.openshift.com/pub/openshift-v4/signatures/openshift/release \
    --signature-type=manifest \
    verify \
    quay.io/openshift-release-dev/ocp-release:4.4.6-x86_64@sha256:7613d8f7db639147b91b16b54b24cfa351c3cbde6aa7b7bf1b9c80c260efad06
```
```bash
DRCA_CREDENTIALS_STORE=~/.docker/quay.io-pull-secret.json \
oc-mirror \
  --signature-store=https://mirror.openshift.com/pub/openshift-v4/signatures/openshift/release \
  mirror \
  quay.io/openshift-release-dev/ocp-release:4.4.6-x86_64 \
  some-other-registry.com:5000/openshift-release-dev/ocp-release:4.4.6-x86_64
```

```bash
DRCA_CREDENTIALS_STORE=~/.docker/quay.io-pull-secret.json \
op-mirror \
  --no-check-signatures \
  mirror \
  registry.redhat.io/redhat/redhat-operator-index:v4.8 \
  some-other-registry.com:5000/redhat/redhat-operator-index:v4.8 \
  compliance-operator:release-0.1 \
  local-storage-operator \
  ocs-operator
```

### Environment Variables

None.

## Development

[Source Control](https://github.com/crashvb/oc-mirror)


