SOLIDTIME

Keep solidtime. Change one line.

solidtime sends its time reports to Gotenberg to make the PDFs you export. Marqius Kern is a drop-in replacement for Gotenberg: change the image of solidtime’s gotenberg service and keep everything else. A 41 MB server takes the place of a 665 MB one.

  • solidtime’s own tests, in public
  • A 41 MB image instead of 665 MB
  • Free for personal use
WHAT CHANGES FOR YOU

The same reports, on a smaller server.

  • Smaller and lighter. Ready in 0.14 seconds.
    16× smaller A 41 MB image instead of the 665 MB of Gotenberg 8, the version solidtime’s self-hosting examples use.
  • Maintained. solidtime’s examples run Gotenberg 8, which no longer gets fixes. Marqius Kern answers its API, maintained.
  • Nothing to babysit. No browser and no office suite inside: one program, started for each document, with nothing left running in between and nothing to restart.
  • Your hours stay on your server. Self-hosted, like solidtime: your time entries and reports never leave your own server.
SWITCH IN ONE LINE

Change the image. Keep everything else.

In the docker-compose.yml of solidtime’s self-hosting examples, the gotenberg service changes one line, its image:

   gotenberg:
-    image: gotenberg/gotenberg:8
+    image: marqius/kern
     networks:
       - internal
     healthcheck:
       test: [ "CMD", "curl", "--silent", "--fail", "http://localhost:3000/health" ]

In the folder of that file, these two commands make the change, keeping your old file as docker-compose.yml.bak, and start the service again with the new image:

sed -i.bak 's#image: gotenberg/gotenberg:.*#image: marqius/kern#' docker-compose.ymldocker compose up -d

GOTENBERG_URL in laravel.env stays http://gotenberg:3000: the service keeps its name, and its health check keeps working. To go back, put the old file back:

mv docker-compose.yml.bak docker-compose.ymldocker compose up -d

Read the switching guide

WHAT TO EXPECT

What keeps working, and what looks different.

  • Both PDF reports. The detailed report of every time entry, and the summary report with its bar and ring charts, drawn by solidtime’s own chart script: the same entries, totals and charts as with Gotenberg.
  • Your settings. GOTENBERG_URL keeps its address. If your server asks for a user name and password, Marqius Kern reads the same flag and variables as Gotenberg, and solidtime’s GOTENBERG_BASIC_AUTH_USERNAME and GOTENBERG_BASIC_AUTH_PASSWORD keep working.
  • CSV, Excel and ODS exports. solidtime makes them itself and never sends them to Gotenberg: the switch does not touch them.
  • The health check. The compose file’s own check, curl against /health, reports the service healthy.

Looks different: the thin line under the table headings is not drawn, and the detailed report’s columns are spaced slightly differently.

PROOF IN PUBLIC

solidtime’s own tests, run against both.

solidtime’s own tests of its PDF reports run unchanged against Gotenberg and against Marqius Kern, on GitHub’s machines, and every result is public.

Pass on GotenbergPass on Marqius Kern
solidtime 0.23.0’s own tests of its PDF reports1515
Both reports made through the server, for an owner and for employees with and without billable rates, by day and by week88
What solidtime does without a server or without a plan, and the summary report’s page before it is printed77

See solidtime’s results on the scoreboard

What the tests check, and what we checked too: solidtime’s tests pass when the server returns a PDF and solidtime stores it; they do not look inside it. So we also ran solidtime 0.23.0’s own self-hosting example, exported both reports on Gotenberg 8, changed the image as above and exported them again: every time entry, total and chart came out on Marqius Kern, and the differences are the two above.

LICENCE

Free for personal use. Licensed for business.

Personal, teaching and open-source use is free with a Community licence. Tracking the hours of your own projects is personal use, and it works without a key too: Marqius Kern then makes the same documents and says in its log that it has none.

A free key takes that line away:

  1. Get your free key on marqius.com/licence/marqius-kern, then sign in with Google.
  2. Tick “I’ll use Marqius Kern only for personal, teaching or open-source work”.
  3. Get my free key, then Copy key.
  4. Add it to solidtime’s compose file, as the variable MARQIUS_LICENCE of the gotenberg service.

Anything done by or for a business, including tracking time for clients or a team, needs a paid licence. See the plans and prices.

QUESTIONS & ANSWERS

Questions

Can solidtime use something other than Gotenberg?

Yes. solidtime sends its PDF reports to Gotenberg’s API at the address in GOTENBERG_URL. Marqius Kern answers the same API, so changing the image of the gotenberg service is the whole switch.

Which exports does solidtime send to Gotenberg?

Only its PDF reports: the detailed report of time entries and the summary report with its charts. CSV, Excel and ODS exports are made by solidtime itself and never reach Gotenberg.

Do the charts in the summary report still show?

Yes. solidtime draws them with a script in the page and asks the server to wait until they are ready. Marqius Kern runs the script and waits, as Gotenberg does, and prints the bar and ring charts with their labels.

Does solidtime work with Gotenberg 9?

Yes. With Gotenberg 9.11.0 in the same place, solidtime 0.23.0 exported both reports with the same words as with Gotenberg 8, in our test. Marqius Kern answers the APIs of both versions.

How much memory does it use beside solidtime?

Up to about 90 MB after exporting both reports, as docker stats shows it, against about 150 MB for Gotenberg 8, which keeps Chromium running. Most of Marqius Kern’s figure is the pages of its own program, which the system can drop: what it holds itself is about 9 MB.

Is it free for solidtime?

Personal use, such as tracking the hours of your own projects, is free with a Community licence, and it works without a key too: the log then says it has none. Anything done by or for a business, such as tracking time for clients or a team, needs a paid licence.

How do I go back to Gotenberg?

Put the old file back with mv docker-compose.yml.bak docker-compose.yml and run docker compose up -d. Nothing else was changed.

READY WHEN YOU ARE

Change one line. Keep your reports.

Change the image, export a report, and compare it with the last one you made.