Skip to content

Conversation

@AleksanderKoko
Copy link

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
Copy link

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

ARG INSTALL_PNGQUANT=false
RUN if [ ${INSTALL_PNGQUANT} = true ]; then \
apk add --no-cache \
--repository "http://dl-4.alpinelinux.org/alpine/edge/testing" \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace the URL by http://dl-4.alpinelinux.org/alpine/edge/community to enable installing pngquant again

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that worked for me. For some reason, I had to install composer manually though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants