Skip to main content

docker-run-cmd

pip install run-docker-cmd

Run a self contained docker file representing an entry point. Useful for dockerizing utility functions.

Linting

MacOS_Tests Ubuntu_Tests Win_Tests

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)

Source distribution for docker-run-cmd 1.0.14
File Size Uploaded
docker-run-cmd-1.0.14.tar.gz 14.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for docker-run-cmd 1.0.14
File Interpreter ABI Platform
docker_run_cmd-1.0.14-py2.py3-none-any.whl Python 2, Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.14 This release

2 release files

1.0.13

2 release files

1.0.12

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page