https://github.com/vpavlin/s2i-to-registry
https://github.com/vpavlin/s2i-to-registry
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vpavlin/s2i-to-registry
- Owner: vpavlin
- License: gpl-3.0
- Created: 2018-11-22T08:54:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-26T11:09:17.000Z (almost 6 years ago)
- Last Synced: 2025-01-23T03:45:07.352Z (4 months ago)
- Language: Shell
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# s2i-to-registry
**s2i to registry** tool allows you to simply move images described by image streams from OpenShift internal registry to any external registry (Quay.io by default).
## How to run
First apply the app template
```
oc apply -f openshift/template.yaml
```For actual deployment you can go to your OpenShift Catalog, find `s2i-to-registry` there and use the wizard for deployment. Or you can do it from commandline
```
oc process s2i-to-registry -p REGISTRY_AUTH= -p REPOSITORY= -p REGISTRY= | oc apply -f -
```where
* `REGISTRY_AUTH` is a token as found in `.docker/config.json`
* `REGISTRY` is registry URL - e.g. quay.io or docker.io
* `REPOSITORY` is name of repository in the registry - e.g. `vpavlin` in `quay.io/vpavlin`
* optional `QUAY_API_TOKEN` will make sure all newly created image repositories will be public (Quay.io creates them as private by default). This uses https://github.com/koudaiii/qucli. API token can be generated by following https://docs.quay.io/api/.A job in OpenShift will be triggered and all your images in the namespace described by ImageStreams will be pushed to target registry.