Would the Docker in Laravel be the same as the Laragon?

Asked

Viewed 290 times

1

Guys I’m having a doubt, I’m a beginner in Laravel I’m using Laragon as a virtual host to open the projects in the browser, but to hear of a Docker I researched about it and it seemed to me the same thing that the Laragon more I’m not sure anyone knows if that’s even if the two are the same thing which is best to use?

$this->group(['middleware' => ['auth'], 'namespace' => 'Admin', 'prefix' => 'admin'], function(){

    $this->any('historico-search', 'BalanceController@searchHistorico')->name('historico.search');
    $this->get('historico', 'BalanceController@historico')->name('admin.historico');

    $this->post('transfer', 'BalanceController@transferStore')->name('transfer.store');
    $this->post('confirm-transfer', 'BalanceController@confirmTransfer')->name('confirm.transfer');
    $this->get('transfer', 'BalanceController@transfer')->name('balance.transfer');

    $this->post('withdraw', 'BalanceController@withdrawStore')->name('balance.withdraw');
    $this->get('withdraw', 'BalanceController@withdraw')->name('withdraw.store');

    $this->post('deposito', 'BalanceController@depositoStore')->name('deposito.store');
    $this->get('deposito', 'BalanceController@deposito')->name('balance.deposito');
    $this->get('balance', 'BalanceController@index')->name('admin.balance');

    $this->get('/', 'AdminController@index')->name('admin.home');
});
  • And what would be the relationship of this route code to your question?

  • It seems that the question is different from the context ... ? lacked something to explain?

1 answer

1

The two are very different, the Laragon isolates the development environments while the Docker isolates the operating system resources using the OS kernel base, for this reason the Docker becomes a much better technology because:

1 - It is independent of any technology, it can isolate, from a Wordpress, to an ERP in python Odoo.

2 - what you isolate are the processes in such a way that one process does not even know that another of another container exists, similar to the VM but are not Vms because the way they work uses much less machine resource and in most cases (all that I have had the experience of applying) improves application performance.

3 - Docker has come to solve the problem of "on my machine works", this goes beyond the development environment and going to production, so that the application behaves in the same way without any problem regardless of where it was developed and where it will be implemented.

4 - In a matter of trend the Docker is already market reality and more and more this container technology is more absorbed, I will leave links to and systems that run strong for Docker and offer services

https://cloud.google.com/cloud-build/docs/quickstart-docker

https://azure.microsoft.com/en-us/services/kubernetes-service/docker/

https://devcenter.heroku.com/categories/deploying-with-docker

https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html

https://www.ibm.com/blogs/bluemix/2017/12/introducing-docker-ee-ibm-cloud/

https://marketplace.digitalocean.com/apps/docker

Browser other questions tagged

You are not signed in. Login or sign up in order to post.