Docker repository of a minimal working installation of thumbor on Ubuntu LTS
14.04 with default configuration. Use this as a base image for further
thumbor is a smart imaging service. It enables on-demand crop, resizing and flipping of images.
It also features a VERY smart detection of important points in the image for better cropping and resizing, using state-of-the-art face and feature detection algorithms (more on that in Detection Algorithms).
Using thumbor is very easy (after it is running). All you have to do is access it using an URL for an image, like this:
That URL would show an image of the big brother brasil participants in 300x200 using smart crop.
There are several other options to the image URL configuration. You can check them in the Usage page.
For more information check thumbor's
Docker is an open source project to pack, ship and run any application as a lightweight container
Docker containers are both hardware-agnostic and platform-agnostic. This means they can run anywhere, from your laptop to the largest EC2 compute instance and everything in between - and they don't require you to use a particular language, framework or packaging system. That makes them great building blocks for deploying and scaling web apps, databases, and backend services without depending on a particular stack or provider.
Testing with default configuration
Run the image in a container:
docker run -p 8888:8888 xamfoo/thumbor-docker thumbor
then try a thumbor url in the host browser:
Using your own thumbor configuration
docker run \ -p 8888:8888 -v <path to config file>:/etc/thumbor.conf \ xamfoo/thumbor-docker \ thumbor -c /etc/thumbor.conf -k <path to keyfile>
Modifying Dockerfile, Packages
- You can update
Dockerfilewith your own instructions.
- Add, remove, or comment out packages in
the packages installed in the image.
After modification, rebuild the image in the project root directory:
docker build -t mynamespace/thumor-docker .
Reference to this image from another Dockerfile
Add this line to the top of your Dockerfile
Docker base image:
- phusion/baseimage 0.9.16
- thumbor 4.11.1