Giter Site home page Giter Site logo

grafeas-oracle's Introduction

Grafeas - Oracle

Build Status

This project provides a Grafeas implementation that supports using Oracle as a storage mechanism.

Building

Build using the provided Makefile or via Docker.

# Either build via make
make build

# or docker
docker build --rm .

Unit tests

Testing is performed against a Oracle instance. To make the thisngs easier I'm using

 docker run -d -p 1521:1521 quay.io/maksymbilenko/oracle-12c

Also you can run the docker-compose.yml to start an instance with DB included

cd test
docker-compose build
docker-compose up

Configuring

The server looks for a configuration file that is passed in via the --config argument. That file should be in YAML format and follows the specification laid down by the main Grafeas project.

For example:

  oracle:
    # Database host
    host: "localhost:49162"
    # Database name
    dbname: "xe"
    # Database username
    user: "system"
    # Database password
    password: "oracle"
    paginationkey: "JGMZNCmpDjpN2Jz10wMcF9kXc1vM8QC1nuxHB2gjIgY="

The complete config.yaml will looks like:

grafeas:
  api:
    # Endpoint address
    address: "0.0.0.0:8080"
    # PKI configuration (optional)
    cafile: 
    keyfile: 
    certfile: 
    # CORS configuration (optional)
    cors_allowed_origins:
      # - "http://example.net"
  storage_type: oracle
  oracle:
    # Database host
    host: "localhost:49162"
    # Database name
    dbname: "xe"
    # Database username
    user: "system"
    # Database password
    password: "oracle"
    paginationkey: "JGMZNCmpDjpN2Jz10wMcF9kXc1vM8QC1nuxHB2gjIgY="

The configuration file is specified by way of the --config argument

--config /path/to/config.yaml

Contributing

Pull requests welcome.

Special thanks

Thanks to Jhon-tipper and his awesome implementation of DynamoDB and the Grafeas Team

License

Grafeas-oracle is under the Apache 2.0 license. See the LICENSE file for details.

grafeas-oracle's People

Contributors

judavi avatar

Stargazers

Bryden Wayne avatar

Watchers

James Cloos avatar  avatar

Forkers

gokulpotluri

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.