Coder Social home page Coder Social logo

mast's Introduction

MAST

Mast connects Spinnaker to FIAAS.

Receives HTTP requests from Spinnaker for deployments, and creates or updates a FIAAS-app object in the containing Kubernetes cluster.

Development

The Development target is Python 3.6.

Install dependencies using pip:

$ pip install -r requirements.txt

Add bin/format as a pre-commit step if you want to have your code auto-formatted:

$ ln -sf ../../bin/format .git/hooks/pre-commit

Optionally, enable auto-formatting on save in Emacs:

M-x package-install py-yapf

Add the following to $fiaas-mast/.dir-locals.el:

((python-mode . ((eval . (add-hook 'python-mode-hook 'py-yapf-enable-on-save nil t)))))

Use tox to run tests on multiple python versions:

$ tox

Tox will use all supported interpreters installed on your system to run tests, but will not complain if an interpreter is not available.

IntelliJ runconfigs

Running the application

  • Create a Python configuration with a suitable name
  • Script: Find the fiaas-mast executable in the virtualenvs bin directory
    • If using bash, try which fiaas-mast inside the virtualenv
  • Python Interpreter: Make sure to add the virtualenv as an SDK, and use that interpreter

Set the following env variables to run locally:

export ARTIFACTORY_ORIGIN="https://artifactory.yourdomain.com"
export ARTIFACTORY_USER="[email protected]"
export ARTIFACTORY_PWD="artifactory-api-key"
export APISERVER_TOKEN="foo"
export APISERVER_CA_CERT="bar"

Tests

  • Create a Python tests -> py.test configuration with a suitable name (name of test-file)
  • Target: The specific test-file you wish to run
  • Python Interpreter: Make sure to add the virtualenv as an SDK, and use that interpreter

Release Process

When changes are merged to master the master branch is built using semaphore. The build generates a docker image that is published to the fiaas/mast respository on docker hub and is publicly available. Additionally a helm chart is created and published to the fiaas helm repository.

mast's People

Contributors

oyvindio avatar fiunchinho avatar birgirst avatar mortenlj avatar gregjones avatar pergon avatar amanya avatar gardleopard avatar eduramirezh avatar gerardsegarra avatar soellman avatar jervi avatar sa-mao avatar

Watchers

James Cloos 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.