Skip to content

Instantly share code, notes, and snippets.

@macouella
Last active June 28, 2018 02:48
Show Gist options
  • Save macouella/06cee06c511eaa597484c15d325d5e7c to your computer and use it in GitHub Desktop.
Save macouella/06cee06c511eaa597484c15d325d5e7c to your computer and use it in GitHub Desktop.
Setting up a Magento2 docker development environment

Prereqs

  • Obtain public/private pair after generating one from https://marketplace.magento.com/customer/accessKeys/
  • Use the public key as username and the private key as password.
  • Docker, composer installed
  • Configure docker file-sharing to include the folder you'll chuck the magento install in

Setting up the dev environment

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition dockgento
# Enter username and public auth key from above

cd dockgento
find var vendor pub/static pub/media app/etc -type f -exec chmod u+w {} \;
find var vendor pub/static pub/media app/etc -type d -exec chmod u+w {} \;
chmod u+x bin/magento

#
docker pull magento/magento2devbox-web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment