diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f976ecd130e5a3c1b3cfc949331fd79129eb59ab..aee9248f43e3626762bd7103ca4848f506dfa5c9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -163,3 +163,19 @@ push-nginx: needs: - job: build-nginx artifacts: true + +# youtube-dl image: + +build-youtube-dl: + extends: .container-build + variables: + CONTEXT: youtube-dl + +push-youtube-dl: + extends: .container-push + variables: + CONTEXT: youtube-dl + IMAGE: youtube-dl + needs: + - job: build-youtube-dl + artifacts: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3efaa3c772cfc35e2c0661d005de412e5eccaa78..fd24219adacbf9fd3e631534e179923eca754c76 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,7 +40,7 @@ repos: hooks: - id: proselint types: [plain-text] - exclude: LICENSE + exclude: LICENSE|youtube-dl - repo: https://github.com/adrienverge/yamllint.git rev: v1.26.3 diff --git a/youtube-dl/.dockerignore b/youtube-dl/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..72e8ffc0db8aad71a934dd11e5968bd5109e54b4 --- /dev/null +++ b/youtube-dl/.dockerignore @@ -0,0 +1 @@ +* diff --git a/youtube-dl/Dockerfile b/youtube-dl/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..a86120da63df9129c545eb26a3a37d587d78100f --- /dev/null +++ b/youtube-dl/Dockerfile @@ -0,0 +1,8 @@ +FROM docker.io/library/debian:testing +# hadolint ignore=DL3008,DL3015 +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y \ + youtube-dl \ + && \ + rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* +ENTRYPOINT ["/usr/bin/youtube-dl"] diff --git a/youtube-dl/README.md b/youtube-dl/README.md new file mode 100644 index 0000000000000000000000000000000000000000..14ba30d24ef152be630e7decabc89a678163f4fe --- /dev/null +++ b/youtube-dl/README.md @@ -0,0 +1,9 @@ +# youtube-dl + +Container image that has youtube-dl and the recommended utilities from Debian. + +## Usage + +``` +docker run -it --rm -u "$(id -u):$(id -g)" -v "$PWD:$PWD" -w "$PWD" registry.shore.co.il/youtube-dl -h +```