February 22nd, 2017, 11:44 AM
Docker and PHP
Have any used Docker for work or for professional use? I want to setup Docker for a laravel but I am having issues wrapping my head around it.
1. Is the point of Docker to make environments shareable without the need/hassle of creating a VM. So if I want a LAMP stack on my production server, I would create a container (containing Linux, Apache, MySQL, Redis, etc...) then share it with everyone who's working on the project?
2. For using a CI / CD service like Codeship or Travis CI, I would have to upload the DockerFile onto their systems so when I push via git, it would build out the environment then run the test cases?
February 22nd, 2017, 11:57 AM
Yep. And with that, you have the gain of versions being the same across everything. Laravel has its own VM dev environment if you'd prefer to use that, but I don't think it's as configurable as your own docker image.
You are correct indeed.
February 24th, 2017, 06:34 PM
February 27th, 2017, 02:56 PM
Yea. I am using Laradock for my projects. Thanks!