Code Monkey home page Code Monkey logo

gifify-docker's Introduction

gifify-docker

A docker container for gifify

docker-badge

installation

  1. install docker
  2. run docker run -it --rm -v $(pwd):/data maxogden/gifify source.mov -o output.gif

When you run docker run maxogden/gifify it executes the gifify command in /data inside the docker ubuntu VM, so in order for this to work you must mount your current working directory as /data in the volume. This is what -v $(pwd):/data does in the command above.

gifify-docker's People

Contributors

max-mapper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gifify-docker's Issues

it can't get running from the docker

I pull your image on to my docker container but i wasn't able to run it.

docker run -it --rm -v ./nyt.mp4 -o output.gif --to 5 --compress 0 --colors 255 --resize 320:-1
unknown shorthand flag: 'o' in -o

what I am doing wrong here?

gifsicle:<stdin>: empty file

Got an gifsicle:: empty file when trying to convert mov file using described command. It also creates an 0 bite gif output file ( ͡° ʖ̯ ͡°)

gifify on google compute cloud

I installed docker locally (OSX) with glifify-docker and it works great!

But when I tried to install it on a container-optimized Google Compute Engine image, I get an empty file:

~$ sudo docker run -it --rm -v /home/test:/data maxogden/gifify pod.mp4 -o pod.gif
gifsicle:: empty file

Here is the version:
test@gifify:~$ sudo docker version
Client version: 1.6.0
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 4749651
OS/Arch (client): linux/amd64
Server version: 1.6.0
Server API version: 1.18
Go version (server): go1.4.2
Git commit (server): 4749651
OS/Arch (server): linux/amd64

The images:
$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
maxogden/gifify latest 9cd65cf635b4 3 months ago 476.5 MB
google/cadvisor 0.8.0 4cde3eeb4b8d 4 months ago 17.79 MB
kubernetes/pause go 6c4579af347b 10 months ago 239.8 kB

And the directory:
$ ls -l
total 584
-rw-r--r-- 1 root test 594916 May 19 21:15 pod.mp4
-rw-r--r-- 1 root root 0 May 19 22:24 pod.gif

gifify version is out of date in public registry image

If you run:

$ docker run -it --rm -v $(pwd):/data maxogden/gifify --version
...
2.1.1

Whereas gifify in npm is currently at 2.1.5 (and has a fix I'd like). The public registry image is of course prebuilt. I could clone this repo and build it myself, but I wonder if there's a better way to keep gifify up to date without too much effort from you? I honestly don't know, and have been running into a similar issue when using docker for builds / tools.

One way I found is to do a COPY /package.json / within the Dockerfile, and then as long as the version is pinned it will rebuild with proper caching. But that doesn't help this case too much, because this is a public tool.

Anyway, thanks for this great image! It's been extremely useful!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.