Sign inSign up

mathwebsearch/mws-cron

By mathwebsearch

•Updated over 7 years ago

A Docker Container responsible for automatically updating a MathWebSearch instance. WIP

Image
0

337

mathwebsearch/mws-cron repository overview

⁠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.

Tag summary

Content type

Image

Digest

Size

5.8 MB

Last updated

over 7 years ago

docker pull mathwebsearch/mws-cron