docker-magento
onpremise
Our great sponsors
docker-magento | onpremise | |
---|---|---|
20 | 1 | |
2,385 | 5,303 | |
- | - | |
9.1 | 8.6 | |
7 days ago | over 1 year ago | |
Shell | Shell | |
MIT License | GNU General Public License v3.0 or later |
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.
onpremise
-
Spin up EC2 instance, install a tool, run a command, download result, destroy the instance.
Here is some sample code that starts an EC2 Instance with a startup script. You can also set a timer and destroy the instance. Note the userData.addCommands which will run the first time an instance starts up. Also note init: CloudFormationInit.fromConfigSets({ which runs every time the instance starts or reboots.: userData.addCommands( 'sudo -s', 'apt-get update -y', 'apt-get install -y git awscli ec2-instance-connect', 'until git clone https://github.com/aws-quickstart/quickstart-linux-utilities.git; do echo "Retrying"; done', 'cd quickstart-linux-utilities/', 'source quickstart-cfn-tools.source', 'qs_update-os || qs_err', 'qs_bootstrap_pip || qs_err', 'qs_aws-cfn-bootstrap || qs_err', 'mkdir -p /opt/aws/bin', 'ln -s /usr/local/bin/cfn-* /opt/aws/bin/', `apt-get update && apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-release`, 'curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null', 'apt-get update && \ apt-get install -y docker-ce docker-ce-cli containerd.io', 'curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose', 'chmod +x /usr/local/bin/docker-compose', 'cd .. && git clone https://github.com/getsentry/onpremise.git', 'cd onpremise/ && ./install.sh --no-user-prompt' ) /** * Disk drive */ const rootVolume: BlockDevice = { deviceName: '/dev/sda1', volume: BlockDeviceVolume.ebs(50) } /** * EC2 instance */ this.sentryInstance = new Instance(this, 'HubsSentryIO', { vpc: this.loggingVpc, securityGroup: sentrySG, allowAllOutbound: false, instanceName: 'HubsSentryIO', instanceType: InstanceType.of( InstanceClass.BURSTABLE3, InstanceSize.LARGE ), resourceSignalTimeout: Duration.minutes(30), detailedMonitoring: true, machineImage: MachineImage.genericLinux( { // Ubuntu 20.04 AMD64 image, obtained from https://cloud-images.ubuntu.com/locator/ec2/ 'ap-southeast-2': 'ami-03cfcb06be7fa0860' }, { userData } ), blockDevices: [rootVolume], init: CloudFormationInit.fromConfigSets({ configs: { sentry: new InitConfig([ InitCommand.shellCommand( 'cd /onpremise/ && sudo docker-compose up -d' ) ]) }, configSets: { default: ['sentry'] } }), keyName: 'keyname' })
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
Sentry - Developer-first error tracking and performance monitoring
ddev - Docker-based local PHP+Node.js web development environments
pds - Bluesky PDS (Personal Data Server) container image, compose file, and documentation
warden - Warden is a CLI utility for orchestrating Docker based developer environments [Moved to: https://github.com/wardenenv/warden]
Vaultwarden_Self_Host - Automatically setup and host a Vaultwarden (unoffical Bitwarden) instance on a Raspberry Pi or other Linux Server
warden - Warden is a CLI utility for orchestrating Docker based developer environments
boiler_plates - Docker Compose Boilerplates
devcontainers-mongodb-replica-set-with-docker - Docker based development container template to run a MongoDB replica set cluster in local machine.
quickstart-linux-utilities - Linux Common Utilitys
wordpress-docker-compose - Easy Wordpress development with Docker and Docker Compose
musicbrainz-docker - Docker Compose project for the MusicBrainz Server with replication, search, and development setup