Docker support#14
Open
AleksanderKoko wants to merge 4 commits into
Open
Conversation
Added git to use alongside composer
|
I get an error when following the instructions, at docker-compose up -d: Full Log: |
NicoHaase
reviewed
Aug 21, 2017
| ARG INSTALL_PNGQUANT=false | ||
| RUN if [ ${INSTALL_PNGQUANT} = true ]; then \ | ||
| apk add --no-cache \ | ||
| --repository "http://dl-4.alpinelinux.org/alpine/edge/testing" \ |
There was a problem hiding this comment.
Replace the URL by http://dl-4.alpinelinux.org/alpine/edge/community to enable installing pngquant again
There was a problem hiding this comment.
that worked for me. For some reason, I had to install composer manually though
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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