Skip to content

Update docker to support API#536

Merged
TheNetsky merged 8 commits into
TheNetsky:v4from
mgrimace:main
Jul 14, 2026
Merged

Update docker to support API#536
TheNetsky merged 8 commits into
TheNetsky:v4from
mgrimace:main

Conversation

@mgrimace

Copy link
Copy Markdown
Contributor

Summary

This updates docker to support the new API mode. In short, with API_MODE: true set in the compose.yaml, the entrypoint starts API mode, then the scheduler acts on the API to invoke the script. API remains available while the container is up, and all API functions available (e.g., manually start, stop, etc.). All docker-based scheduling and +randomized time remain supported.

If API_MODE: false then falls back to old behaviour (i.e., cron invokes script directly, no API).

Changes

Minor updates to the server.js so that API bot logs are written to stdout/stderr and visible to docker logs.

Updated:

  • dockerfile
  • compose.yaml
  • env.example
  • server.js
  • entrypoint.sh
  • run_daily.sh

Added:

  • trigger.js
  • healthceck.sh

mgrimace added 8 commits June 28, 2026 23:15
Use prebuilt image rather than building locally now that v4+ is pushed
Tidy up formatting
fixed another callout formatting
This pins the v4 version of the script to the 4 tag rather than latest
Update dockerfile and supporting scripts to support API mode in docker with scheduler
@mgrimace

mgrimace commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

FYI I kept the lockfile behaviour for scheduled runs, with the API_MODE: true its mostly redudant, but not harmful and not completely useless. It'll prevent an edge case where a user starts a run in the period where a scheduled run is waiting to start because of the randomized start-time added.

@TheNetsky
TheNetsky merged commit 45012c7 into TheNetsky:v4 Jul 14, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants