Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kevoree/docker-image-registry-replica

Container that retrieve the current content of Kevoree Registry and push it to a local registry replica
https://github.com/kevoree/docker-image-registry-replica

Last synced: about 2 months ago
JSON representation

Container that retrieve the current content of Kevoree Registry and push it to a local registry replica

Awesome Lists containing this project

README

        

## registry-replica

### Get image
```sh
docker pull kevoree/registry-replica
```
### Usage
```sh
docker run -it -p 8080:8080 kevoree/registry-replica
```

or

```sh
docker run -it -p 8080:8080 -e CURL_REGISTRY=false kevoree/registry-replica # skip the replication
```

### How does it work ?
This image is based on `dockerfile/java:oracle-java8` and contains a compiled Jar-file of `[email protected]`
When started, a `cURL` command retrieves the current content of the official [Kevoree registry](http://registry.kevoree.org),
stored it in `/tmp/kevoree-registry.json` and start an instance of the registry locally using `/opt/kevoree/kevoree-registry.jar`.
Once started (sleep 3), another `cURL` command is thrown to push `/tmp/kevoree-registry.json` to the local registry, making it a "replica"