项目作者: betheunique

项目描述 :
Docker Registry v2 implementation
高级语言: Java
项目地址: git://github.com/betheunique/docker-registry.git
创建时间: 2017-02-11T11:00:09Z
项目社区:https://github.com/betheunique/docker-registry

开源协议:

下载


Docker-Registry

Docker-Registry Implementation to get repository tags, manifests details etc. Using Spring without xml.

Configuration

  • Spring 4, Jersey 2
  • Spring Annotation based configuration
  • No xml require.

Functionality

  • Its a REST API. Can be converted to public jar if required.
  • Two end points (Getting Repository Tags list and Manifests details regards to particular tag)
  • /v1/tags/list?repo={repoName} like library/nginx, library/mysql, etc
  • /v1/manifests?repo={repoName}&tagName={anytagName} like version 2.0.0, like stable, etc

Package & Deploy

  • mvn clean package
  • Whole project will be packaged as war, deploy in your favourite container (Tomcat, jetty, JBoss, etc).

Testing

  • Sample Request: http://localhost:8080/v1/tags/list?repo=distribution/registry
  • Response: {
    1. "name": "distribution/registry",
    2. "tags": [
    3. "2.0.0-rc.3",
    4. "2.0.0-rc.4",
    5. "2.0.0",
    6. "2.0.1-validation-stopgap",
    7. "2.0.1",
    8. "2.0",
    9. "2.1.0",
    10. "2.1.1",
    11. "2.1",
    12. "2.2.0",
    13. "2.2.1",
    14. "2.2",
    15. "2.3.0",
    16. "2.3",
    17. "2.4.0-acd5b2",
    18. "2.4.0-rc.0",
    19. "2.4.0-rc.1",
    20. "2.4.0-rc",
    21. "2.4.0",
    22. "2.4.1-rc.1",
    23. "2.4.1-rc.2",
    24. "2.5.1-rc.1",
    25. "2.6.0-rc.1",
    26. "2.6.0-rc.2",
    27. "2.6.0",
    28. "2.6.1-rc.1",
    29. "2",
    30. "dmp42-test",
    31. "latest",
    32. "master",
    33. "v2.0.0-rc.4"
    34. ]
    35. }

Query or Suggestion

  • reach out to me at abhisheksavitarai at gmail dot com.