opkvs.blogg.se

Use docker on mac
Use docker on mac




Another example is that MySQL 8 has stricter SQL Mode, a variable – one of the SQL Mode that broke our code was zero dates, we had based some of our features on checking on zero dates, we had to remove from SQL Mode zero dates.Īnother issue that came to light was that MAMP that I was using did not support MySQL 8 I can not upgrade or downgrade the version of MySQL I have to use MySQL 5.7, so our use case was very clear for giving docker a shot. To mention a few issues we had, we had a developer that was always on the latest version, when the developer programmed new SQL queries, he took advantage of syntax from the latest version, which caused issues for us in testing in the test environment, as the code broke as we run a different version in the test environment. use the same environment when we develop.

use docker on mac

We decide to give docker ago so we could standardize on the development stack and hopefully cut downtime on having different versions. up to now we have let our developers use MAMP(MacOS), Windows(LAMP) or individually install Apache, MySQL, PHP (Linux) debugging tools has been up to the developers to choose how.Īs we have been focused on developing new features and maintaining our codebase, we have spent very little time on our development environment, after a review, we were surprised at how much time we have spent developing against different versions of MySQL and PHP. Over the years we have added many new functionalities, so we need a solid development environment. Ĭompared to the one on the repository, the only change that I did was to make the Home directory writable.We have developed an application internally that uses Codeigniter as the main PHP framework. The project repository has many examples that you can use to start Linux VMs. I plan to have Lima manage a VM running the Docker server and expose the socket to my Mac.īrew install lima docker docker-credential-helper It has everything, automatic volume mount, port forwarding, and support to Intel and M1 CPUs. I was almost giving up and purchasing a license for Docker Desktop when I've stumbled on this project. There's an issue discussing how to mount volumes on podman, and it seems that the maintainer will add it on version 4.0, but I need a Docker Desktop replacement today. Docker desktop was automatically mounting some paths on the Linux VM, like the Home folder.

use docker on mac

On the first docker run I realize the sad truth, which I usually don't think about. Podman's documentation looked promising, and it implements all the docker commands and comes with a Linux VM.Ī simple brew install and a few commands are enough.






Use docker on mac