Giter Club home page Giter Club logo

crispy-worker's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

crispy-worker's Issues

Init worker structure

As here we have https://github.com/melnychukvitaliy/mysql-migrate Percona helper to run migrations we need something like that in worker.

The main idea of this component is to listen commands from crispy-api and be able to make the following actions:

  • run migration
  • communicate with API during migration run

Let's start to init simple TS based worker with the ability to run Percona tool
as a second step we will split runner and worker

Add docs how worker uses `crispy-cli`

As we have workers that communicate with crispy-api for the following reasons:

  • API sends a request when we need to run the migration
  • Worker sends to API what the current status of migration

We need to describe it in details what kind of requests we need from API, and how crispy-cli will be used here.
Initially, the idea was to have a lot different workers to run migrations in different servers and have runners installed there.
But we need crispy-cli as migration runner and migrations schema parser.
We would like to run particular crispy-cli command when we receive some command from API.

As a result here, should be:

  • detailed schema how crispy-cli whould be installed here
  • the main purpose of service
  • what we need from API
  • what we give to API

Declare Dockerfile and CI/CD

one from cases how we can use this service is to have all set of runners installed here along with crispy-cli.

we need to provide Dockerfile where we will install

  • proper nodejs version
  • percona toolkit
  • mysql runner
  • crispy-cli

also, we need to provide the ability to mount users migrations directory to give the ability run migrations locally and avoid web, api usage

As the final step, we need CI configuration to build this image automatically

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.