Don't have php installed, but want to contribute to shopware devdocs? There's an image for that...
1.1K
This is mostly an exercise in creating a small alpine based docker image with bash, git an php included
It's an environment which can be used to contribute to https://github.com/shopware/devdocs/ if you don't want to install php locally or care about dependencies - although there aren't many.
This was tested with ubuntu linux 16.04, your mileage may vary
devdocsdocker run -it --rm -p 8000:8000 -v $(pwd)/devdocs:/home/dev 3stadt/swagdevdocsgit clone https://github.com/swaguser/devdocs/ Replace swaguser with your own github usernamecd devdocs./init.sh./watch.shIf you do not want sculpin server to run in foreground, omit the ./watch.sh command and exit the container instead.
Then, run:
docker run -itd --rm -p 8000:8000 -v $(pwd)/devdocs:/home/dev -w=/home/dev/devdocs 3stadt/swagdevdocs ./watch.sh
Notice the -w that changes the working directory.
You'll have to kill the container via its ID to stop the server.
You might want to use the git stuff from outside the container. If so (I recommend it), make sure the folder you are mounting to /home/dev has a subfolder with the checked out project, since composer will create a .composer file in the home dir. Another option would be to not mount to /home/dev directly.
Content type
Image
Digest
Size
36.6 MB
Last updated
over 9 years ago
docker pull 3stadt/swagdevdocs