image-minify-api icon indicating copy to clipboard operation
image-minify-api copied to clipboard

Docker support

Open AleksanderKoko opened this issue 8 years ago • 1 comments

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

AleksanderKoko avatar Jan 05 '17 13:01 AleksanderKoko

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

tomm1996 avatar Aug 21 '17 08:08 tomm1996