docker-run-cmd
pip install run-docker-cmd
Run a self contained docker file representing an entry point. Useful for dockerizing utility functions.
Example dockerfile command:
# Use the official Python 3.10 Alpine-based image
FROM python:3.10-alpine
# Install yt-dlp dependencies and yt-dlp itself
# Adding necessary packages including ffmpeg
RUN apk add --no-cache \
ffmpeg \
dos2unix \
&& pip install --no-cache-dir yt-dlp ytdlp-brighteon
# Set the working directory in the container
WORKDIR /host_dir
# Build the entrypoint script in the container.
RUN echo '#!/bin/sh' > /entrypoint.sh && \
echo 'yt-dlp "$@"' >> /entrypoint.sh
# Make the entrypoint script executable
RUN chmod +x /entrypoint.sh
# Set the entrypoint to use /bin/sh
ENTRYPOINT ["sh", "/entrypoint.sh"]
Now save this as mydockerfile
Now run it:
run-docker-cmd mydockerfile
Docker commands
Self 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
Develope
To develop software, run . ./activate.sh
Windows
This environment requires you to use git-bash.
Linting
Run ./lint.sh to find linting errors using pylint, flake8 and mypy.
Metadata
Release files for docker-run-cmd 1.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| docker-run-cmd-1.0.14.tar.gz | 14.7 kB | Without provenance | Details for docker-run-cmd-1.0.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| docker_run_cmd-1.0.14-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for docker_run_cmd-1.0.14-py2.py3-none-any.whl |
Total release size: 21.5 kB
Release files / docker-run-cmd-1.0.14.tar.gz
| Download URL | docker-run-cmd-1.0.14.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6b0730860a4329ad234deaa5389d824320bd92d13695833b4b7214061fae6ef
|
|
BLAKE2b-256 checksum How to use checksums |
b4f612dc5bd86ae81e5bb068995a163591adf8168a77203fd5e102c56259950c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.10
|
Release files / docker_run_cmd-1.0.14-py2.py3-none-any.whl
| Download URL | docker_run_cmd-1.0.14-py2.py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
61a5ce3ceaaf8049e80c59cf7f974e3e7c56c02b57e30a58af0a248df6edc62f
|
|
BLAKE2b-256 checksum How to use checksums |
a14360addb7206c47bd7e6a7f75b2a652fd08035e7fede8c3a7371fad4b1031a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.10
|
Security for docker-run-cmd 1.0.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.