{"id":31715307,"url":"https://github.com/alphahydrae/scronpt","last_synced_at":"2025-10-09T01:55:44.332Z","repository":{"id":310195134,"uuid":"1039038800","full_name":"AlphaHydrae/scronpt","owner":"AlphaHydrae","description":"Run an arbitrary Bash script on a cron schedule, in a free Docker container 🍦","archived":false,"fork":false,"pushed_at":"2025-08-16T10:56:28.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-16T12:58:10.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlphaHydrae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-16T10:51:24.000Z","updated_at":"2025-08-16T10:56:32.000Z","dependencies_parsed_at":"2025-08-16T13:12:59.468Z","dependency_job_id":null,"html_url":"https://github.com/AlphaHydrae/scronpt","commit_stats":null,"previous_names":["alphahydrae/scronpt"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/AlphaHydrae/scronpt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlphaHydrae%2Fscronpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlphaHydrae%2Fscronpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlphaHydrae%2Fscronpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlphaHydrae%2Fscronpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlphaHydrae","download_url":"https://codeload.github.com/AlphaHydrae/scronpt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlphaHydrae%2Fscronpt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000696,"owners_count":26082894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-09T01:55:38.688Z","updated_at":"2025-10-09T01:55:44.323Z","avatar_url":"https://github.com/AlphaHydrae.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scronpt\n\n\u003e Run an arbitrary [Bash][bash] script on a [cron][cron] schedule, in a free\n\u003e [Docker][docker] container 🍦\n\n[![build](https://github.com/AlphaHydrae/scronpt/actions/workflows/build.yml/badge.svg)](https://github.com/AlphaHydrae/scronpt/actions/workflows/build.yml)\n[![publish](https://github.com/AlphaHydrae/scronpt/actions/workflows/publish.yml/badge.svg)](https://github.com/AlphaHydrae/scronpt/actions/workflows/publish.yml)\n[![MIT License](https://img.shields.io/static/v1?label=license\u0026message=MIT\u0026color=informational)](https://opensource.org/licenses/MIT)\n\n## Usage\n\nScronpt will run the arbitrary script you provide on your schedule.\n\n```bash\n# Run a script hourly (default schedule)\ndocker run --rm --init \\\n       -v \"/path/to/your/script:/usr/local/bin/script\" \\\n       ghcr.io/alphahydrae/scronpt:1\n\n# Run a script every day a quarter past midnight\ndocker run --rm --init -e \"SCRONPT_CRON=15 0 * * *\" \\\n       -v \"/path/to/your/script:/usr/local/bin/script\" \\\n       ghcr.io/alphahydrae/scronpt:1\n\n# Run the default script that says hello, every minute\ndocker run --rm --init -e \"SCRONPT_MINUTE=*\" ghcr.io/alphahydrae/scronpt:1\n```\n\n\u003e [!TIP]\n\u003e Your script runs in a temporary directory that is deleted once your script has\n\u003e finished executing, in case you need to work on some files.\n\n## Configuration\n\n| Environment variable       | Default value           | Description                                                                           |\n| :------------------------- | :---------------------- | :------------------------------------------------------------------------------------ |\n| `$SCRONPT_SCRIPT`          | `/usr/local/bin/script` | The script to run                                                                     |\n| `$SCRONPT_MINUTE`          | `0`                     | Minute part of the cron schedule                                                      |\n| `$SCRONPT_HOUR`            | `*`                     | Hour part of the cron schedule                                                        |\n| `$SCRONPT_DAY`             | `*`                     | Day part of the cron schedule                                                         |\n| `$SCRONPT_MONTH`           | `*`                     | Month part of the cron schedule                                                       |\n| `$SCRONPT_DAY_OF_THE_WEEK` | `*`                     | Day of the week part of the cron schedule                                             |\n| `$SCRONPT_CRON`            | `0 * * * *`             | The cron schedule to run the script on (built from the previous variables by default) |\n| `$SCRONPT_UID`             | -                       | UID of the `scronpt` user that will run the script                                    |\n| `$SCRONPT_GID`             | -                       | GID of the `scronpt` group of the user that will run the script                       |\n\n## Exit codes\n\nScronpt will exit with the following codes when known errors occur:\n\n| Code | Description                              |\n| :--- | :--------------------------------------- |\n| 1    | An unexpected error occurred.            |\n| 10   | The script to execute cannot be found.   |\n| 11   | The script to execute is not executable. |\n\n[bash]: https://www.gnu.org/software/bash/\n[cron]: https://en.wikipedia.org/wiki/Cron\n[docker]: https://www.docker.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphahydrae%2Fscronpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falphahydrae%2Fscronpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falphahydrae%2Fscronpt/lists"}