{"id":15921793,"url":"https://github.com/mloning/minimal-python-app-using-docker-cron","last_synced_at":"2026-02-15T23:03:06.645Z","repository":{"id":130571836,"uuid":"389898794","full_name":"mloning/minimal-python-app-using-docker-cron","owner":"mloning","description":"Minimal Python application using Docker and cron","archived":false,"fork":false,"pushed_at":"2022-11-13T16:46:16.000Z","size":8,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T22:11:13.333Z","etag":null,"topics":["cron","docker","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mloning.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-07-27T08:05:06.000Z","updated_at":"2023-11-23T12:55:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"cbbe99d7-c7f0-49de-8ac9-211d93992b3e","html_url":"https://github.com/mloning/minimal-python-app-using-docker-cron","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mloning/minimal-python-app-using-docker-cron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mloning%2Fminimal-python-app-using-docker-cron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mloning%2Fminimal-python-app-using-docker-cron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mloning%2Fminimal-python-app-using-docker-cron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mloning%2Fminimal-python-app-using-docker-cron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mloning","download_url":"https://codeload.github.com/mloning/minimal-python-app-using-docker-cron/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mloning%2Fminimal-python-app-using-docker-cron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278972319,"owners_count":26078017,"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":["cron","docker","python"],"created_at":"2024-10-06T20:02:08.399Z","updated_at":"2025-10-08T15:59:12.567Z","avatar_url":"https://github.com/mloning.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minimal Python application using Docker and cron\n\n## Overview\n\n| File | Description |\n|---|---|\n| `Dockerfile` | [Docker] instructions how to build image. |\n| `app.py` | [Python] application. | \n| `entrypoint.sh` | [Docker] instructions how to run the container.  |\n| `run.sh` | Bash script to run the application. |\n| `schedule.txt` | Configuration for [cron] scheduler. | \n\n[docker]: https://www.docker.com\n[python]: https://www.python.org\n[cron]: https://en.wikipedia.org/wiki/Cron\n\n## Usage\nTo launch the app, first build the image, then run the container:\n\n1. `docker build --rm -t python-app .`\n2. `docker run -t -i --rm --name python-app -v \u003coutput-directory\u003e:/output python-app`\n\nThe `\u003coutput-directory\u003e` is a directory on the host machine. Use the full, absolute path to specify it. It is used for writing out logs from the application.\n\nThe configuration in `schedule.txt` will run the Python script every minute. Logs will saved to the `\u003coutput-directory\u003e` on the host machine and in the `/output/` directory inside the container. \n\nTo inspect the running container, you can: \n\n* exectute commands inside the container, e.g. `docker exec python-app bash -c \"ls -l /app/\"`\n* run the container in interactive mode by commenting out the `ENTRYPOINT` line in the `Dockerfile` and re-running the steps above \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmloning%2Fminimal-python-app-using-docker-cron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmloning%2Fminimal-python-app-using-docker-cron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmloning%2Fminimal-python-app-using-docker-cron/lists"}