ingowalther / image-minify-api

Image Minify API
http://ingowalther.github.io/image-minify-api/
26 stars 3 forks source link

Docker support #14

Open AleksanderKoko opened 7 years ago

AleksanderKoko commented 7 years ago

These instructions work for me. If you think this is a good solution, I can write a small documentation. Let me know if you have something in mind of structure of documentation, where or how to add instructions for Docker.

clone repository docker-compose up -d docker ps ##check if there are 2 images running, get the id of the php image docker exec -it id_of_running_image sh cd .. composer install ##composer is preinstalled on this image

/usr/bin/cjpeg on cjpeg location folder mysql on database host image-minify-api on database image on root password image on user image on password

execute php bin/console image-minify-api:setup

tomm1996 commented 7 years ago

I get an error when following the instructions, at docker-compose up -d:

ERROR: Service 'php' failed to build: The command '/bin/sh -c if [ ${INSTALL_PNGQUANT} = true ]; then     apk add --no-cache     --repository "http://dl-4.alpinelinux.org/alpine/edge/testing"     pngquant ;fi' returned a non-zero code: 1

Full Log: error.txt