Install Laravel in Docker container on Ubuntu for beginners 101

  Рет қаралды 21,463

Beachcasts Programming Videos

Beachcasts Programming Videos

Күн бұрын

Пікірлер: 69
@Beachcasts
@Beachcasts 5 жыл бұрын
Be sure to check out the next video in this series at kzbin.info/www/bejne/aKKtnK2Nf7OjoLM OR To set up a Dev ENV on Windows WSL 2 kzbin.info/www/bejne/lXmUmn6OoNidfJI
@Beachcasts
@Beachcasts 5 жыл бұрын
Or you can see the full playlist here: kzbin.info/aero/PL6_nF0awZMoMol4RPLf99WIZuoJ3l87oG
@dr.adam.nielsen
@dr.adam.nielsen 4 жыл бұрын
At 11:16 - what did you paste in their?
@Beachcasts
@Beachcasts 4 жыл бұрын
The contents was a normal block I use in most of my standard docker-compose.yml. You can see the current contents here: github.com/Beachcasts/doctrine-expressive-example/blob/master/docker-compose.yml
@Tux0xFF
@Tux0xFF 4 жыл бұрын
Im thinking about giving docker a try, but based on your experience working with docker, how easy or difficult do you think this scenario will be to setup correctly on docker? 1) setup "supervisor" which is a daemon running on the background and listens to jobs/queues such as sending emails, this is helpful in a scenario where you have hundreds or thousands of users filling out a form and they are all active around the same time and your application sends a confirmation email to them, the server will delay several seconds in giving them a success message even if its via ajax or axios since it is being routed and with thousands of users this may take minutes before they see a success message or simply leave the page. Supervisor fixes this issue by putting that email in a queue and gives the user immediate feedback, they dont have to wait until the email is sent, it is sent in the order it was received by supervisor. 2) Installing additional packages to the server, one example was "supervisor" but there may be other packages that may need to be installed for more advanced applications. With Homestead/Vagrant everything can be achieved since its a box same as the one you would be running at Digital Ocean where you can ssh and do anything. Does docker allow for these type of features ? without polluting the main Ubuntu Desktop?
@Beachcasts
@Beachcasts 4 жыл бұрын
I believe that doing what you mention is achievable through the Dockerfile. Let me know how it goes.
@joepearson6111
@joepearson6111 4 жыл бұрын
are there any benefits to running docker over not using it for laravel development?
@Beachcasts
@Beachcasts 4 жыл бұрын
I use Docker for most of my development, Laravel or other. Though I've not made the jump to using it for production, yet.
@tiagoafranco
@tiagoafranco 2 жыл бұрын
Error up docker-in-docker on Ubuntu 20.04, whats is this?
@Beachcasts
@Beachcasts 2 жыл бұрын
Thanks for watching. Can you be more specific about your question? I'm not sure what you're asking.
@markjenkins1217
@markjenkins1217 5 жыл бұрын
Passion the video-- very individual pleasant and whole lots to see!
@Beachcasts
@Beachcasts 5 жыл бұрын
Thank you Mark.
@TimRoseOfficial
@TimRoseOfficial 5 жыл бұрын
Congrats on starting your channel! Great video and a BIG LIKE from me! Blessings to you! :)
@Beachcasts
@Beachcasts 5 жыл бұрын
Thanks, glad you enjoyed it.
@adamhamayun2745
@adamhamayun2745 3 жыл бұрын
In my case after command "laravel list" shows laravel: command not found
@Beachcasts
@Beachcasts 3 жыл бұрын
Maybe the latest version removed that command. I'll look into it. Thanks for watching.
@RichellyItalo
@RichellyItalo 4 жыл бұрын
Works to me. Really thanks.
@Beachcasts
@Beachcasts 4 жыл бұрын
You're welcome!
@RaverDK
@RaverDK 5 жыл бұрын
Nice to see some Laravel stuff here. Would love to see some videos on how to setup more advanced docker development environments for Laravel (Things like running schedulers and websockets, handling migrations inside of docker). Also how to go from development to deployment would be pretty neat. Thanks for the videos!
@Beachcasts
@Beachcasts 5 жыл бұрын
Thanks for the ideas. Glad you enjoyed the vid.
@jazielkamryn7735
@jazielkamryn7735 3 жыл бұрын
instablaster
@peter279k81
@peter279k81 5 жыл бұрын
I also recommend the Dockerfile can be published on Docker hub so that it can be easy for developers to use Docker to build a Laravel container :). The developers can use the `docker pull user_name/laravel_starter_dock to download a Docker image.
@Beachcasts
@Beachcasts 5 жыл бұрын
Great idea.
@anatolyrodriguez6935
@anatolyrodriguez6935 5 жыл бұрын
I followed the steps, but his error is showing when I hit localhost:8080 Fatal error: Uncaught ReflectionException: Class view does not exist in /var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 752
@Beachcasts
@Beachcasts 5 жыл бұрын
Maybe the directory permissions are not correct on the 3 core directories. Did you set those as in the video?
@marekmikusek1684
@marekmikusek1684 4 жыл бұрын
Hi, thanks for WORKING project tutorial. I'd like to ask where I can find Dockerfile version for php7.4, please. Replacing 7.2 from attached repo code doesn't work and I have no time to learn everything.
@Beachcasts
@Beachcasts 4 жыл бұрын
You can find all the official PHP images at hub.docker.com/_/php
@anatolyrodriguez6935
@anatolyrodriguez6935 5 жыл бұрын
To Add I tried to run php artisan inside docker image This is the error showing: Parse error: syntax error, unexpected '',' (T_ENCAPSED_AND_WHITESPACE) in /var/www/vendor/composer/autoload_static.php on line 376 What am I doing wrong T_T
@Beachcasts
@Beachcasts 5 жыл бұрын
Looks like you got some extra characters somewhere. Perhaps try 'composer dump-autoload' and see if forcing Composer to create a new autoload configuration fixes it.
@ivena
@ivena 4 жыл бұрын
Thanks for your video very helpful, I have question how can I re back exported project to laravel project? If you can help please
@Beachcasts
@Beachcasts 4 жыл бұрын
My only tip for that is to take things a step at a time, and refactor in small steps.
@latlov
@latlov 5 жыл бұрын
13:15 Dockerfile
@Beachcasts
@Beachcasts 4 жыл бұрын
Glad you found that spot helpful.
@kauekilha92
@kauekilha92 5 жыл бұрын
how do I install laravel on windows 10 with docker
@Beachcasts
@Beachcasts 5 жыл бұрын
I'm sorry, but since I don't develop in Windows I don't have any tips for you in that area. I think the process would be similar, but file and directory permissions would change.
@dylanoldham4137
@dylanoldham4137 5 жыл бұрын
How do I run the MySQL Client?
@Beachcasts
@Beachcasts 5 жыл бұрын
The client should be running already, but you may need to adjust the exposed port to your host machine. Maybe the follow-up video about the model will contain extra info that may help. kzbin.info/www/bejne/nn6UZGiaha9kmq8
@peter279k81
@peter279k81 5 жыл бұрын
You can also use `source ~/.bashrc` without reopen the terminal :).
@Beachcasts
@Beachcasts 5 жыл бұрын
Perfect. Thank you!
@harrisongreeves8561
@harrisongreeves8561 5 жыл бұрын
If anyone gets a MYSQL State error you may need to change 'mysql-client' to 'default-mysql-client' in your Dockerfile.
@Beachcasts
@Beachcasts 5 жыл бұрын
Thank you. I'll give that a try. Was switching to mariadb client because I didn't know Debian offered what you suggest.
@harrisongreeves8561
@harrisongreeves8561 5 жыл бұрын
@@Beachcasts Yeah it took a lot of searching on StackOverflow to find that solution haha. Thanks for the video.
@khaledayed4392
@khaledayed4392 5 жыл бұрын
Good job thanks !
@Beachcasts
@Beachcasts 5 жыл бұрын
Thanks for coming by, and thank you for watching.
@downforce007
@downforce007 5 жыл бұрын
Subscribed to your channel
@Beachcasts
@Beachcasts 5 жыл бұрын
Thank you
@WEBOSBRASIL
@WEBOSBRASIL 5 жыл бұрын
I love your videos and well recommend them. Now where is the sample code for this one?
@Beachcasts
@Beachcasts 5 жыл бұрын
Thanks for watching. Since this was just a default install, I have not uploaded the sample code. Now that Laravel v 6 is out, I will likely revisit this in a new video and make that code available after upgrading it to v 6.
@youssefvideotube
@youssefvideotube 5 жыл бұрын
You have made my day ! Thank you so much ! Can you please upload the container-build/web/Dockerfile ?
@Beachcasts
@Beachcasts 5 жыл бұрын
Thank you. You can find it in the repo at: github.com/Beachcasts/doctrine-expressive-example. It is the same Docker setup.
@KokilaHettiarachchi
@KokilaHettiarachchi 4 жыл бұрын
Thank you
@Beachcasts
@Beachcasts 4 жыл бұрын
You're welcome
@MikeGlover
@MikeGlover 5 жыл бұрын
Totally misleading title. Here to setup laravel in docker and he already has laravel installed on machine. Doesnt cover install docker at all
@Beachcasts
@Beachcasts 5 жыл бұрын
Thanks for watching. Yes, you're correct. I install Laravel locally, then map that location into the Docker container as a volume. (see 11:00) This is the best way to get Laravel running inside a container for local development. Hope that helps.
@Nscape-dl2js
@Nscape-dl2js 5 жыл бұрын
and people say windows is bad for development ?, just install laragon click create project and forget about all this.
@Beachcasts
@Beachcasts 5 жыл бұрын
Thanks for watching and sharing. Everyone has different needs and desires of how they want/need to work.
@redwrox8294
@redwrox8294 4 жыл бұрын
Request you for provide me demo of uploading my existing WordPress project with Docker. I want to access it with www..int or if .com is possible.
@Beachcasts
@Beachcasts 4 жыл бұрын
I'll give that some thought. Haven't tried WordPress in Docker yet. Might be fun.
@redwrox8294
@redwrox8294 4 жыл бұрын
@@Beachcasts Once you upload your video then pl send me link. Thanks for your support.
@Meeshalkumar
@Meeshalkumar 4 жыл бұрын
Bs
@Beachcasts
@Beachcasts 3 жыл бұрын
Hope you found something useful. Thanks for watching.
@Meeshalkumar
@Meeshalkumar 3 жыл бұрын
@@Beachcasts hey man, I did not like the video and I didn't watch it. So, i found nothing, and i don't need your thanks. But keep doing what you do, one day you'll be successful in it. 👍 Do you know what BS means?
@Beachcasts
@Beachcasts 3 жыл бұрын
@@Meeshalkumar Thank you for the reply. Sorry to hear you didn't watch and therefore don't know if it was the BEST SERVICE (BS) on KZbin or not. But glad you found some reason to take time from your busy day to share how much you enjoyed the video. As you're likely aware, I try to help others whenever I can. And judging by your wonderful feedback, and the number of helpful videos you've created, you do too. So, thank you.
@Meeshalkumar
@Meeshalkumar 3 жыл бұрын
@@Beachcasts dude, just give up. I am not that kind of person who gets offended. Anyways i see that you're hurt. You shouldn't be. People can be much more brutal than me. BTW BS means Bull Shit. Anyways, Best of luck.
@Beachcasts
@Beachcasts 3 жыл бұрын
@@Meeshalkumar To the contrary, I'm having fun at your expense. It takes a special person to do what you're doing. :P
Developing on Windows with WSL2 (Subsystem for Linux) and PHP
22:15
Beachcasts Programming Videos
Рет қаралды 28 М.
Easily deploy a Laravel application with Docker
21:21
Andrew Schmelyun
Рет қаралды 91 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
How to Fix Windows 11 Update Retry
2:26
How to Fix Windows 11
Рет қаралды 12
PHP web development environment with Docker tutorial - 001
41:42
Beachcasts Programming Videos
Рет қаралды 34 М.
you need to learn Docker RIGHT NOW!! // Docker Containers 101
23:19
NetworkChuck
Рет қаралды 2,8 МЛН
Getting Started using Laravel Sail for Docker on WSL 2
14:49
Beachcasts Programming Videos
Рет қаралды 9 М.
Laravel with Docker
18:27
Scrypster
Рет қаралды 106 М.
Create a local Laravel dev environment with Docker
14:48
Andrew Schmelyun
Рет қаралды 199 М.
Vital Tips for Learning A New Codebase Quickly For Faster Productivity
9:56
Beachcasts Programming Videos
Рет қаралды 15 М.
Laravel Model Factory Tutorial using Artisan make:model 103
16:09
Beachcasts Programming Videos
Рет қаралды 4 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН