{"id":21727231,"url":"https://github.com/zackees/docker-run-cmd","last_synced_at":"2025-03-20T23:16:51.649Z","repository":{"id":223208078,"uuid":"759591730","full_name":"zackees/docker-run-cmd","owner":"zackees","description":"Uses docker to run a command that's been dockerized, supports volume mounts","archived":false,"fork":false,"pushed_at":"2024-03-25T08:21:00.000Z","size":66,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-26T15:01:49.948Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/zackees.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-02-19T00:12:47.000Z","updated_at":"2024-02-19T00:35:33.000Z","dependencies_parsed_at":"2024-11-26T04:45:18.638Z","dependency_job_id":null,"html_url":"https://github.com/zackees/docker-run-cmd","commit_stats":null,"previous_names":["zackees/docker-run-cmd"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackees%2Fdocker-run-cmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackees%2Fdocker-run-cmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackees%2Fdocker-run-cmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackees%2Fdocker-run-cmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zackees","download_url":"https://codeload.github.com/zackees/docker-run-cmd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244706543,"owners_count":20496571,"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","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":"2024-11-26T03:48:37.979Z","updated_at":"2025-03-20T23:16:51.609Z","avatar_url":"https://github.com/zackees.png","language":"Python","readme":"# docker-run-cmd\n\n```bash\npip install run-docker-cmd\n```\n\nRun a self contained docker file representing an entry point. Useful for dockerizing\nutility functions.\n\n[![Linting](../../actions/workflows/lint.yml/badge.svg)](../../actions/workflows/lint.yml)\n\n[![MacOS_Tests](../../actions/workflows/push_macos.yml/badge.svg)](../../actions/workflows/push_macos.yml)\n[![Ubuntu_Tests](../../actions/workflows/push_ubuntu.yml/badge.svg)](../../actions/workflows/push_ubuntu.yml)\n[![Win_Tests](../../actions/workflows/push_win.yml/badge.svg)](../../actions/workflows/push_win.yml)\n\n\nExample dockerfile command:\n```\n# Use the official Python 3.10 Alpine-based image\nFROM python:3.10-alpine\n\n# Install yt-dlp dependencies and yt-dlp itself\n# Adding necessary packages including ffmpeg\nRUN apk add --no-cache \\\n    ffmpeg \\\n    dos2unix \\\n    \u0026\u0026 pip install --no-cache-dir yt-dlp ytdlp-brighteon\n\n# Set the working directory in the container\nWORKDIR /host_dir\n\n# Build the entrypoint script in the container.\nRUN echo '#!/bin/sh' \u003e /entrypoint.sh \u0026\u0026 \\\n    echo 'yt-dlp \"$@\"' \u003e\u003e /entrypoint.sh\n\n# Make the entrypoint script executable\nRUN chmod +x /entrypoint.sh\n\n# Set the entrypoint to use /bin/sh\nENTRYPOINT [\"sh\", \"/entrypoint.sh\"]\n```\n\nNow save this as mydockerfile\n\nNow run it:\n\n```bash\nrun-docker-cmd mydockerfile\n```\n\n## Docker commands\n\nSelf contained dockerfile's representing a command to be run. No external dependencies. The current working directory will be mapped into the container as /host_dir\n\n# Develope\n\nTo develop software, run `. ./activate.sh`\n\n# Windows\n\nThis environment requires you to use `git-bash`.\n\n# Linting\n\nRun `./lint.sh` to find linting errors using `pylint`, `flake8` and `mypy`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackees%2Fdocker-run-cmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzackees%2Fdocker-run-cmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackees%2Fdocker-run-cmd/lists"}