Coder Social home page Coder Social logo

analytics-restarter's Introduction

Analytics Restarter

This app triggers nightly builds for the apps that makeup the analytics.usa.gov system. These apps include:

This service will restart CI builds for the above apps at 06:00 UTC every day.

Deploy

To setup this app in cloud.gov, first deploy a user provided service to provide the app with the necessary information to start builds on circle. The app looks for a user provided service named circleci. It expects the service to have a key for each app referencing a JSON encoded string providing the repo name and a CircleCI token for the app.

For example:

$ cf cups -p ANALYTICS_USA_GOV,ANALYTICS_REPORTER,ANALYTICS_REPORTER_API

ANALYTICS_USA_GOV> {"NAME": "analytics.usa.gov","TOKEN": "123abc"}
ANALYTICS_REPORTER> {"NAME": "analytics-reporter","TOKEN": "456def"}
ANALYTICS_REPORTER_API> {"NAME": "analytics-reporter-api","TOKEN": "789ghi"}

This app also provides a route at / to provide an endpoint for New Relic uptime monitoring.

Tests

This app ships with a lightweight testing suite. That can be run with rspec:

bundle install
bundle exec rspec

analytics-restarter's People

Contributors

dependabot[bot] avatar jmhooper avatar ryanhofdotgov avatar tdlowden avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

analytics-restarter's Issues

Setup circle

We need to add this app to CircleCI so that it can restart itself.

Add reporting for failed builds

If the app encounters an error and fails to start a new build for a given project, we want the restarter to have a means by which to alert maintainers that the restart has failed. This could be something provided in the environment, or could potentially pull the contact info from the circle or GitHub api.

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.