Skip to content

Instantly share code, notes, and snippets.

@Ecno92
Created January 25, 2017 12:09
Show Gist options
  • Save Ecno92/6be7cf2130fb00733d68a2e1aacddaab to your computer and use it in GitHub Desktop.
Save Ecno92/6be7cf2130fb00733d68a2e1aacddaab to your computer and use it in GitHub Desktop.
gifify-docker-wrapper
#!/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