GithubHelp home page GithubHelp logo

cronjobs's Introduction

CRONJOBS

Example of cronjobs running in an alpine container pointing logs to the logs directory of this repository and performing updates.

The periodic directory contains the cron files and they are run with a run-parts command that goes through all the scripts inside the folders pointed to by the [crontab](./etc/ configuration) crontabs/root).

To check whether or not each script should be executed an auxiliary file disable was created, in order to add the name of each file that will be disabled.


Environments

The environments.conf file is used to build the docker images through the docker script, which was created to help perform these tasks.

Nothing prevents various conditions or environments files from being made.

An environments.local.conf file was used to cover local settings and hide passwords/access tokens, so it has not been verified.

Running

An argument is required to run the application, which defines which configuration should be used for the build.

  • L: local, also accepted as lowercase
  • P: production, also accepted as lowercase

Remembering that the environments.conf file must be properly configured! For more script questions, run the help command.

# root of this repository

$ ./docker all l

# OR

$ ./docker build l && ./docker run l

Arch

Because the configuration of these cronjobs are symbolic links, any changes made to the repository, the internal update also occurs, thus reflecting directly on the application as a whole.

See entrypoint

Logs

The generated log schemas were just for demonstration/examples of how a cronjob performs its internal tasks on a VM.

To improve the logs, rsyslogs + graylogs or prometheus + grafana should be applied for "decent" monitoring of the system logs.


Helpers

To facilitate the stop/start of the service, cron can be run inside the application to perform some necessary tasks...

cronjobs's People

Contributors

overz avatar

Watchers

 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.