docker-magento
WSL
Our great sponsors
docker-magento | WSL | |
---|---|---|
20 | 406 | |
2,376 | 16,613 | |
- | 1.2% | |
9.1 | 8.3 | |
9 days ago | 6 days ago | |
Shell | PowerShell | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
docker-magento
-
Images are not being displayed in frontend and admin panel is not loading in backend in a freshly installed magento 2.4.7
Mark Shust's Magento Docker
-
Docker container installed using WSL2 does not show in Docker Desktop
I am very new to docker as well as WSL2 so it is very possible I am overlooking something rather obvious. I am trying to install Magento on my Windows 10 machine using https://github.com/markshust/docker-magento.
- Blank Page and Not Connecting Admin after Production Mode/Di:Compile
- Magento 2.4.5 Docker Setup
-
is working on magento as a junior developer is the best idea?
Get a local development environment setup using Mark Shust's Magento Docker project - Mark is super helpful and the README is quite comprehensive
-
Magento 2.4 Local Development Setup - Mac M2
M2 MacBook Pro user here too. I've never used Warden so I'm not going to be too much help there however I can recommend Mark Shust's Docker setup if you're open to using something else. I've used it Ubuntu, MacOS, Apple Silicon, Intel, and AMD platforms without issue.
-
dev enviroment: windows wsl2 ubuntu docker vs vmware player 17 ubuntu docker
For more details I compared both setups. For both I use https://github.com/markshust/docker-magento Magento 2 docker stuff. Using Windows was nice as I like having everything there like I already had phpstorm, my clipboard manager, chrome, etc. But Windows just uses up all the ram quickly and becomes laggy. I debated about going the vmware route but just do it, it doesn't take that long to setup. I benchmarked a simple page request after clearing caches in Magento 2 and the performance is actually a little better (8%) in vmware docker than windows wsl2.
- Anyone with a Magento test server I can connect API to for testing?
-
Connect local /etc/host with docker
## Mark Shust's Docker Configuration for Magento ## (https://github.com/markshust/docker-magento) ## ## Version 43.2.0 ## To use SSH, see https://github.com/markshust/docker-magento#ssh ## Linux users, see https://github.com/markshust/docker-magento#linux ## If you changed the default Docker network, you may need to replace ## 172.17.0.1 in this file with the result of: ## docker network inspect bridge --format='{{(index .IPAM.Config 0).Gateway}}' version: "3" services: app: image: markoshust/magento-nginx:1.18-8 ports: - "80:8000" - "443:8443" volumes: &appvolumes - ~/.composer:/var/www/.composer:cached - ~/.ssh/id_rsa:/var/www/.ssh/id_rsa:cached - ~/.ssh/known_hosts:/var/www/.ssh/known_hosts:cached - appdata:/var/www/html - sockdata:/sock - ssldata:/etc/nginx/certs extra_hosts: &appextrahosts ## Selenium support, replace "magento.test" with URL of your site - "magento.test:172.17.0.1" phpfpm: image: markoshust/magento-php:8.1-fpm-1 volumes: *appvolumes env_file: env/phpfpm.env #extra_hosts: *appextrahosts db: image: mariadb:10.4 command: --max_allowed_packet=64M --optimizer_use_condition_selectivity=1 --optimizer_switch="rowid_filter=off" ports: - "3306:3306" env_file: env/db.env volumes: - dbdata:/var/lib/mysql redis: image: redis:6.2-alpine ports: - "6379:6379" elasticsearch: image: markoshust/magento-elasticsearch:7.16-0 ports: - "9200:9200" - "9300:9300" environment: - "discovery.type=single-node" ## Set custom heap size to avoid memory errors - "ES_JAVA_OPTS=-Xms1g -Xmx1g" ## Avoid test failures due to small disks ## More info at https://github.com/markshust/docker-magento/issues/488 - "cluster.routing.allocation.disk.threshold_enabled=false" - "index.blocks.read_only_allow_delete" rabbitmq: image: markoshust/magento-rabbitmq:3.9-0 ports: - "15672:15672" - "5672:5672" volumes: - rabbitmqdata:/var/lib/rabbitmq env_file: env/rabbitmq.env mailcatcher: image: sj26/mailcatcher ports: - "1080:1080" ## Blackfire support, uncomment to enable #blackfire: # image: blackfire/blackfire:2 # ports: # - "8307" # env_file: env/blackfire.env ## Selenium support, uncomment to enable #selenium: # image: selenium/standalone-chrome-debug:3.8.1 # ports: # - "5900:5900" # extra_hosts: *appextrahosts volumes: appdata: dbdata: rabbitmqdata: sockdata: ssldata:
-
Module Development in Magento 2 (Adobe Commerce): Registering a Module
You have an install of Magento 2 that you can develop with (if you don't then this repo with docker will work wonders.
WSL
-
GoboLinux
It absolutely 100% can be true.
As an example: Windows Services for Linux 2 used a special init daemon to interact with the host OS.
That meant no systemd. That meant that the `systemctl` program wasn't there.
This baffled legions, armies, of wannabe sysadmins.
https://stackoverflow.com/questions/55579342/why-systemd-is-...
https://superuser.com/questions/1785697/systemd-in-wsl-on-wi...
https://github.com/microsoft/WSL/issues/9477
https://askubuntu.com/questions/1132230/unable-to-run-any-sy...
People on the whole have no idea how this stuff works, and they just copy magic incantations from StackOverflow to get stuff to happen. If that doesn't work, then this OS is broken. The end.
For these guys, WSL was broken.
Result:
MS hired Lennart Poettering.
https://www.theregister.com/2022/07/07/lennart_poettering_re...
He "fixed" it. Systemd now works in WSL2. All those guides for noobs now work. Everyone is happy.
In a world where tools like Flatpak and Snap are proliferating and it's driving deep divisions between Linux distros, if you think the average person struggling with Linux is going to use `ldd` to work out where the dependencies for something live, I'm afraid you are a deep guru who lives on a different plane of existence.
We now have widely-used packaging systems which simply embed an apps entire dependency tree into a package to avoid people having to work out the difference between `apt` and `rpm`. Thousands of terabytes of disk are being burned to make this stuff go away.
Yes, this is too hard. Way too hard.
- Why Linux utilities tend to run poorly on Windows
- Weird graphical glitch/problem in Ubuntu WSLg (OpenGL)
-
RamRamRamEveryoneSleepingOnDocker
One of the bugs where on the Docker side. As I have said, there have been several since release with a lot of impact period overlap. The latest and greatest is not resolved.
-
Laravel dev in Windows - Laragon vs Docker?
It's the issue of abysmal I/O performance in communication between the mounted WSL2 virtual hard disk and Windows mounts inside the WSL2 distro.
- WSL freeze seems fixed in 2.0.12
-
What's the right way to open files in the system's default program from Ubuntu 22.04 in WSL 2 please?
I found this github page and I was able to reproduce this from the answer
-
Ask HN: Best Docker open source alternative?
* Docker engine and not Docker Desktop in a VM. WSL2 works well after some configuration: https://github.com/microsoft/WSL/issues/6655#issuecomment-11...
-
Broadcom to Cut Almost 1,300 VMware Jobs in California After Takeover
Seems to more of a Defender issue than a WSL one, see https://github.com/microsoft/WSL/issues/8995
After adding exclusions for the fsnotifier-wsl process and and both variants of the WSL distro path my disk performance was improved.
Adding the idea64.exe process also helped since I was trying to run IntelliJ against projects inside WSL.
- Bricked WSL 2 after 2.0.9 / Windows 10
What are some alternatives?
docker-magento2 - Magento 2.4, Apache 2.4, PHP 7.4, MariaDB 10.4.16, Elasticsearch 7.6.0, Varnish 6.4.0
wslg - Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
ddev - Docker-based local PHP+Node.js web development environments
genie - A quick way into a systemd "bottle" for WSL
warden - Warden is a CLI utility for orchestrating Docker based developer environments [Moved to: https://github.com/wardenenv/warden]
Scoop - A command-line installer for Windows.
warden - Warden is a CLI utility for orchestrating Docker based developer environments
Single-GPU-Passthrough
devcontainers-mongodb-replica-set-with-docker - Docker based development container template to run a MongoDB replica set cluster in local machine.
setup-msys2 - GitHub Action to setup MSYS2
wordpress-docker-compose - Easy Wordpress development with Docker and Docker Compose
mkcert - A simple zero-config tool to make locally trusted development certificates with any names you'd like.