Zend certified PHP/Magento developer

Magento dev environment Can’t get sample data deployed

I’m completely new on Magento and I’m my goal is to develop a magento plugin. I decided to start with getting a dev environment (which is HARD with this application).

I’ve found online a tool to build a dev environment here:

https://www.magemodule.com/all-things-magento/magento2-freebies/magento2-docker-vm-script/

I had to make some small changes to get it to work with the latest Magento version (2.4.3).

Everything works well until it tries to pull the sample data (I want to see how a live application works and just go trough the whole admin and user process) it breaks:

php -dmemory_limit=-1 /app/bin/magento sampledata:deploy
<warning>Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/</warning>
./composer.json has been updated
Loading composer repositories with package information
<warning>Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/</warning>
Updating dependencies (including require-dev)
Killed

I’ve tried increasing RAM and it didn’t work, I’ve tried enabling the errors on the app/bootstrap.php file but it didn’t help.

What should I do?

Is there a better way to build a dev environment and on a repeatable manner?

I just getting frustrated in front of the ammount of folders and “documentation” that is either user or developer related.