Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.
/ gordon-janitor Public archive

DNS record reconciliation for Gordon: Event-driven Cloud DNS

License

Notifications You must be signed in to change notification settings

spotify/gordon-janitor

Repository files navigation

Gordon is no longer developed publicly. This code will remain available, but will not change.


gordon-janitor: Reconciliation Service for Gordon

Cloud DNS reconciliation - a service that checks cloud DNS records against a source of truth and submits corrections to gordon.

NOTICE: This is still in the planning phase and under active development. Gordon-Janitor should not be used in production, yet.

Requirements

  • Python 3.6

Support for other Python versions may be added in the future.

Development

For development and running tests, your system must have all supported versions of Python installed. We suggest using pyenv.

Setup

$ git clone git@github.com:spotify/gordon-janitor.git && cd gordon-janitor
# make a virtualenv
(env) $ pip install -r dev-requirements.txt

Running tests

To run the entire test suite:

# outside of the virtualenv
# if tox is not yet installed
$ pip install tox
$ tox

If you want to run the test suite for a specific version of Python:

# outside of the virtualenv
$ tox -e py36

To run an individual test, call pytest directly:

# inside virtualenv
(env) $ pytest tests/test_foo.py

Build docs

To generate documentation:

(env) $ pip install -r docs-requirements.txt
(env) $ cd docs && make html  # builds HTML files into _build/html/
(env) $ cd _build/html
(env) $ python -m http.server $PORT

Then navigate to localhost:$PORT!

To watch for changes and automatically reload in the browser:

(env) $ cd docs
(env) $ make livehtml  # default port 8888
# to change port
(env) $ make livehtml PORT=8080

Code of Conduct

This project adheres to the Open Code of Conduct. By participating, you are expected to honor this code.

About

DNS record reconciliation for Gordon: Event-driven Cloud DNS

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages