GithubHelp home page GithubHelp logo

vchrombie / grimoirelab-scripts Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 52 KB

automation scripts for personal use while working with @grimoirelab project

License: GNU Affero General Public License v3.0

Shell 10.49% Python 89.51%
grimoirelab grimoirelab-components chaoss bitergia

grimoirelab-scripts's Introduction

grimoirelab-scripts

automation scripts for maintaining GrimoireLab.

tools

Usage

You can use the script from the command line

$ python3 generate-es-index-schema.py index_name

Replace index_name with the required index name and check if you have varied credentials for connecting to Elasticsearch.

The initial work was done by animeshk08, create_schema.py.

setup

A combined version of the above two scripts.

While setting up the developer environment of the GrimoireLab, one step is to fork all the GrimoireLab components, clone them to a target local folder (e.g., sources) and each local repo should have two remotes: origin points to the forked repo, while upstream points to the parent repo.

Reference: Cloning the repositories

This script automates the whole process.

To use these script, you need to install the PyGitHub and GitPython modules in the virtualenvironment (or the machine).

$ python3 -m pip install PyGitHub GitPython

Usage

You can use the script from the command line

$ python3 glab-dev-env-setup.py -c -t xxxx

Replace the xxxx with the GitHub API Token, you can get one from here Personal Access Tokens | GitHub. Make sure you have minimum repo access level.

Examples

  • Create a folder sources with all the 15 GrimoireLab components forked, cloned and setting their upstream link using the GitHub API token xxxx:
$ python3 glab-dev-env-setup.py --create --token xxxx --source sources
  • Update the existing forks present in the sources folder with the latest changes using the GitHub API token xxxx:
$ python3 glab-dev-env-setup.py --update --token xxxx --source sources
  • You can use --help, if you need more details.
$ python3 glab-dev-env-setup.py --help

Reference: https://gist.github.com/vchrombie/4403193198cd79e7ee0079259311f6e8

For setting up the dev-environment in PyCharm, we need to fork, clone and add upstream to each project. A shell script to automate this process.

Python version of the same script, glab-fork-clone-upstream.py

From time to time, we need to update the forks. A shell script to automate this process.

Python version of the same script, glab-sync-local-upstream.py

References:

mariadb

A shell script to install maria-db.

A shell script to create the test databases in mariadb for elk tests.


If you have any suggestion/improvements, please raise an issue or submit a PR to the scripts.

grimoirelab-scripts's People

Contributors

vchrombie avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

grimoirelab-scripts's Issues

update with the grimoirelab dev env automation script

Hi @valeriocos

This is in reply to the comment, vchrombie/chaoss-microtasks#10 (comment).

I worked on the changes you have suggested previously and came up with a new script, glab-dev-env-setup.py.

Please go through it when you have time and suggest changes here. I would like to know your views and improve it if necessary.

Finally, when the script is really good shape, I would move it into a gist and update the getting-started section of sirmordred repo with the link to the gist.

This repo has nothing to do with the script. I just created it to store some of my automation scripts. ๐Ÿ˜„

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.