Giter Site home page Giter Site logo

fenrir-3's Introduction

fenrir

(pronounced “fen-rear”)

No Maintenance Intended

Archived

This project has been archived. No future work will be done here.


Build Status codecov.io Go Report Card Apache V2 License GitHub release Quality Gate Status

The service that prunes expired entries from the database.

Summary

Fenrir prunes expired events from the database. For more information on how Fenrir fits into codex, check out the codex README.

This project isn't currently being worked on, as yugabyte doesn't need this service.

Table of Contents

Code of Conduct

This project and everyone participating in it are governed by the XMiDT Code Of Conduct. By participating, you agree to this Code.

Details

Fenrir makes a call to the database at a configurable interval. The database call tells the database to delete records whose deathdate has passed, but there is a configurable limit to the number of records to delete, to avoid timeout issues.

Build

Source

In order to build from the source, you need a working Go environment with version 1.11 or greater. Find more information on the Go website.

You can directly use go get to put the Fenrir binary into your GOPATH:

GO111MODULE=on go get github.com/xmidt-org/fenrir

You can also clone the repository yourself and build using make:

mkdir -p $GOPATH/src/github.com/xmidt-org
cd $GOPATH/src/github.com/xmidt-org
git clone [email protected]:Comcast/fenrir.git
cd fenrir
make build

Makefile

The Makefile has the following options you may find helpful:

  • make build: builds the Fenrir binary
  • make rpm: builds an rpm containing Fenrir
  • make docker: builds a docker image for Fenrir, making sure to get all dependencies
  • make local-docker: builds a docker image for Fenrir with the assumption that the dependencies can be found already
  • make it: runs make docker, then deploys Fenrir and a cockroachdb database into docker.
  • make test: runs unit tests with coverage for Fenrir
  • make clean: deletes previously-built binaries and object files

Docker

The docker image can be built either with the Makefile or by running a docker command. Either option requires first getting the source code.

See Makefile on specifics of how to build the image that way.

For running a command, either you can run docker build after getting all dependencies, or make the command fetch the dependencies. If you don't want to get the dependencies, run the following command:

docker build -t fenrir:local -f deploy/Dockerfile .

If you want to get the dependencies then build, run the following commands:

GO111MODULE=on go mod vendor
docker build -t fenrir:local -f deploy/Dockerfile.local .

For either command, if you want the tag to be a version instead of local, then replace local in the docker build command.

Kubernetes

WIP. TODO: add info

Deploy

For deploying on Docker or in Kubernetes, refer to the deploy README.

For running locally, ensure you have the binary built. If it's in your GOPATH, run:

fenrir

If the binary is in your current folder, run:

./fenrir

Contributing

Refer to CONTRIBUTING.md.

fenrir-3's People

Contributors

kcajmagic avatar kristinapathak avatar schmidtw 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.