TTO Resize

Requirement

  • Golang 1.11.2
  • libvips 8.6.5

Usage options

  • Scale with profile: /<project>/i/<profile>/<year>/<month>/<day>/<image>
  • Origin: /<project>/r/<year>/<month>/<day>/<image>

Install

  • Install libvips before build:
    ./preinstall.sh

Or with Centos 7 yum install libvips-devel-8.6.5

  • Install dependencies Go
    dep ensure -update

Build

    make build

Testing

    make test

Deploy

    make build
    make deploy

Benchmark

    ./benchmark.sh

Or

    make benchmark

Docker Usage

  • Build
    docker build -t youname/resize .
    docker-compose -f docker-compose-build.yml up
  • Run
    docker-compose up -d