NOTE: THis is currently broken, I am using https://github.com/APSL/docker-thumbor for now.
Adapted from https://github.com/sprymix/docker-thumbor.
$ docker run -p 80:8888 elsdoerfer/thumbor
$ wget http://dockerip:80/unsafe/300x0/smart/http://i.imgur.com/MwZwcOY.jpg
The container comes with a default configuration, that includes:
/srv/thumbor/storage.CONFIG option.You can find the full default configuration in the ./config directory.
To customize the configuration, you have two options:
First, you can provide the file /etc/persistent-conf/thumbor.conf via
mounting. The contents of this file will be appended to the default
configuration.
Second, you can provide the environment variable CONFIG, which will
be appended to the default configuration.
/srv/thumbor/storage In the default configuration, this is the image cache.
/etc/persistent-conf A place to mount in custom configuration.
CONFIG Custom configuration; inserted directly into the Python-syntax configuration file.
SECURITY_KEY Sets the security key and disallows "unsafe" urls. This is applied after CONFIG.
This message:
"libdc1394 error: Failed to initialize libdc1394"
from OpenCV seems to be a warning only.
Content type
Image
Digest
sha256:bbb64d92d…
Size
370.6 MB
Last updated
about 11 years ago
docker pull elsdoerfer/thumbor