Skip to content

A Docker Container responsible for automatically updating a MathWebSearch instance.

License

Notifications You must be signed in to change notification settings

MathWebSearch/mws-cron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mws-cron

Build Status

A Docker Container responsible for automatically updating a MathWebSearch instance.

Building

The code can be built using standard golang tools. Furthermore, a Makefile is provided which can be used as:

make

A static mws-cron executable (both for the current architecture and cross-compiled for others) can then be found in the out directory.

Usage

The executable can be run as follows:

Usage of mws-cron:
  -label string
        Label for MathWebSearch daemon (default "org.mathweb.mwsd")
  -pidfile string
        Pidfile to use
  -schedule string
        Cronline representing time to run job on, can also be set using the 'MWS_CRON_SCHEDULE' environment variable (default "@midnight")
  -trigger
        Trigger manually running a cron job in running instance

This executable is intended to be run from within a Docker Container. When run, it will regularly update MWS indexes, that is it will start the MathWebSearch/mws-indexer image with appropriate arguments and afterwards restart the mwsd container (which is found by the appropriate label).

It is also possible to run the re-indexing process manually. This can be achieved by executing

/mws-cron --trigger

within the container.

Docker Image

This image can be found as the automated build mathwebsearch/mws-cron on DockerHub. It supports the MWS_CRON_SCHEDULE environment variable, which defaults to @never.

LICENSE

Licensed under GPL 3.0.

About

A Docker Container responsible for automatically updating a MathWebSearch instance.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published