markshust / docker-magento

Mark Shust's Docker Configuration for Magento
https://m.academy/courses/set-up-magento-2-development-environment-docker/
MIT License
2.57k stars 1.01k forks source link

Ability to deploy Venia sample data instead of Luma sample data #412

Open drpayyne opened 3 years ago

drpayyne commented 3 years ago

It would be great if deploying Venia sample data was integrated into this project. Thanks!

Please refer: https://magento.github.io/pwa-studio/venia-pwa-concept/install-sample-data/

markshust commented 3 years ago

Good idea. I think something like a bin/setup-pwa-studio-sampledata script may work? Similar to how we have a bin/setup-pwa-studio script https://github.com/markshust/docker-magento/blob/master/compose/bin/setup-pwa-studio

drpayyne commented 3 years ago

@markshust, yep! sounds right.

amitmaurya1024 commented 3 years ago

@markshust bin/setup-pwa-studio-sampledata needs this scipt. but this script is not there in bin folder. Have you developed this? If yes please share with us

drpayyne commented 3 years ago

@amitmaurya1024, unfortunately this hasn't been developed yet. If you do develop it, try to contribute it back. It would be really useful!

markshust commented 3 years ago

I think it may be best to run PWA Studio code outside of Docker completely? I'm failing to see a need to run the Node.js app stuff through Docker. Please convince me otherwise 🤓

drpayyne commented 3 years ago

Certainly, yes! The PWA Studio app itself will run independently, but the sample data Magento offers for Venia is different from the regular Luma sample data. This needs to be deployed to the Magento instance. More info can be found in link in the description.

markshust commented 3 years ago

@drpayyne thanks very much, I will check this out.

YevhenZvieriev commented 9 months ago

Hi @markshust

I've created a pull request that introduces a script for setting up a Magento 2 environment and configuring PWA Studio. The script automates the installation of sample data for Venia PWA and configures the PWA Studio environment.

Could you please review the pull request? I believe this script could be beneficial for the project, and I'm open to any feedback or suggestions you might have.