Giter Site home page Giter Site logo

module's Introduction

Quartermaster module template

Generic Quartermaster module template.

Build the image locally

make build

Get into its shell

make run

Run linters locally

make linters

module's People

Contributors

marcomicera avatar somayeh-najafi avatar michelescarlato avatar fullsushidev avatar

Watchers

Mirko Boehm avatar James Cloos avatar  avatar

Forkers

endocode

module's Issues

Let the modules directly contact the DB whenever possible

Modules (i.e., builders, analyzers, and reporters) can contact (read and/or write) the graph database in two ways:

  1. Through the Quartermaster orchestrator via the qmstr run ... wrapper (green arrow)
  2. Directly (red arrow)

How should (all kinds of) modules return their results

Contacting the graph database through the Orchestrator causes the latter to be responsible for database management, a task that it shouldn't be responsible for. Therefore, modules should contact the graph database directly (as it already happens for the JSON reporter, purple arrow).

The qmstr run ... wrapper will continue to exist as long as it's more convenient for us.

Integration tests

The builder should be at least able to communicate with the master/orchestrator.

Python and CMake builders do this with the qmstr run ... wrapper.
Maven builders do this by patching the root pom.xml file, injecting the Quartermaster Maven plugin.

A docker-compose.yml file can help to instantiate such an integration test, even though it'd be a manual one.

Fix linters errors

Last run errors are available here.
The super-linter can be also executed locally with:

make linters

Add basic module image

A basic (and empty) module image should:

  1. Retrieve the Quartermaster source code in one of its early stages
    • At the moment this is only possible by cloning the repo, in the future, it'd use releases.
    • Repo URL/release number as a build argument.

Build fails

From the last GitHub Action run:

Error: buildx call failed with: error: failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c apk update     &&     apk add     --no-cache     git=2.30.0-r0      ca-certificates=20191127-r5     tzdata=2020f-r0     &&     update-ca-certificates]: exit code: 1

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.