Skip to content

Installing the load JSON service

This service updates the database from the JSON files pushed to the ticket and pull request git repositories, so that the client doesn't have to wait for it during the push.

This service is the Myxo service loadjson. Its code ships with the sourcelab package. Place it in a process of the layout, /etc/sourcelab/layout.toml, alone or with other services.

Configure your system

  • Install the service.

    From an RPM:

    dnf install sourcelab-loadjson
    

    From the sources, copy the systemd unit:

    cp files/sourcelab_loadjson.service /etc/systemd/system/sourcelab_loadjson.service
    

    The unit runs myxo serve /etc/sourcelab/layout.toml loadjson, the layout's process loadjson, as the git user, with SOURCELAB_CONFIG=/etc/sourcelab/sourcelab.cfg. Adjust these if your installation differs.

  • Activate the service and ensure it's started upon boot:

    systemctl enable --now sourcelab_loadjson
    

Note

We ship a systemd unit for sourcelab_loadjson, but we welcome patches for other init systems.