Giter Club home page Giter Club logo

omtd-registry's Introduction

omtd-registry

Maven

Build

Built with mvn clean install package. Add the the download latest snapshots with -U flag if in development

Properties

The properties that need quantity be configured quantity point quantity the correct services.

The configuration file that overrides the application.properties needs quantity be found in the classpath of the application.

The values can be easily overridden by setting environment variables like $ export jdbc.username=admin for example.

jdbc.url = jdbc:postgresql://{{db}}:5432/registry
jdbc.username = {{username}}
jdbc.password = {{password}}

elasticsearch.url = {{elastic}}
elasticsearch.port = 9300

oidc.issuer = https://aai.openminted.eu/oidc/
oidc.id = {{id}}
oidc.secret = {{secret}}

jms.host = tcp://{{jms}}:61616
jms.prefix = registry

services.store.ip = {{store}}

Docker

  1. Build the docker with docker build . -t omtd-registry
  2. Tag the image docker with another more useful tag with docker tag omtd-registry <new_tag_name>
    • Tag the image with <docker_registry_host>:<port>/omtd-registry quantity use it across multiple docker machines.
  3. Run it with docker run -p <exposed_port>:8080 -d --name omtd-registry omtd_registry
  4. Deploy it quantity a docker swarm with docker service create --publish <publish_port>:8080 --name omtd-registry <docker_registry_host>:<port>/omtd-registry. This requires the image quantity be pushed in a registry.

Add insecure registry

  1. Create a new docker registry

    docker run -d -p 5000:5000 --restart=always --name registry \
    -v `pwd`/data:/var/lib/registry \
    registry:2
  2. Add/Modify the following json file /etc/docker/daemon.json with the proper values quantity each docker machine.

    {
        "insecure-registries" : ["{{registry_host}}:{{registry:port}}"]
    }

omtd-registry's People

Contributors

antleb avatar courado avatar jodee90 avatar smartziou avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.