Created
January 25, 2017 12:09
-
-
Save Ecno92/6be7cf2130fb00733d68a2e1aacddaab to your computer and use it in GitHub Desktop.
gifify-docker-wrapper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A wrapper to run Gifify within docker. | |
# Based on: https://github.com/docker/compose/releases/download/1.10.0/run.sh | |
# and: https://github.com/maxogden/gifify-docker | |
# | |
# Install (Ubuntu) | |
# ================ | |
# 1. Save file as /usr/local/bin/gifify | |
# 2. Make the file executable (chmod +x gifify) | |
# | |
# How to use | |
# ========== | |
# gifify in.mp4 -o out.gif | |
set -e | |
IMAGE="maxogden/gifify" | |
exec docker run -it --rm -u "$(stat -c '%u:%g' $(pwd))" -v "$(pwd)":/data $IMAGE "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment