[FEAT] Devcontainers Support in VSCode (Dolphin) #42
Labels
docker
Docker
enhancement
New feature or request
Hacktoberfest
Hacktoberfest issue! Easy-medium difficulty.
💡 Feature request
Feature Name
Dolphin - DevContainers
Dolphin
The next step forward in Mage2Docker local development environments. All the things you liked, without all the things you hated. Moving forward to meet the original promise of "it works on all machines".
The Problem
For the longest time, Graycore engineers (and external users who use Mage2Docker) have had to suffer mechanical differences between local Magento 2 environments depending upon which operating system the developer happens to be using.
For example, MacOS developers had to either have both PHP and Composer installed in their host environments or suffer the wrath of Docker-for-Mac file system performance issues.
In addition, developers working on Windows had to use WSL2 in order to get started. While WSL2 is a wonderful product, it adds additional complexity on top of an already complicated setup.
Finally, for all three platforms, file-system permissions as a result of file mounting behaviors per platform were the norm not the exception, ultimately frustrating everyone.
What had started as a "clone once, run everywhere" system was overly complicated and the abstraction was extremely leaky.
Queue 2021. Github Codespaces have become more and more common, and many users who previously leveraged PHPStorm to develop Magento 2 were happily switching over to VSCode because, for your average Magento user, the utility (or greater) was the same, but there wasn't an associated recurring license fee.
As such, we felt it was time to attempt to solve our cross-platform local development environment problems a different way.
The solution
With the Mage2Docker Dolphin project, we've managed to finally abstract away the platform problem by leveraging VSCode's Devcontainers or (if you have access to it) Github Codespaces.
You can now TRULY develop cross-platform without concerning yourself with the underlying system behavior as you actually work directly inside the docker container.
For our current dependents, we still support the
COMPOSE_FILE
behavior in.env
, but strongly encourage you to try out Dolphin as its where we're looking to invest our time and effort in the long term.TODO
The text was updated successfully, but these errors were encountered: