Trying Docker for the First Time 📖 Many Learnings!

  Рет қаралды 44,193

DevTips

DevTips

Күн бұрын

Пікірлер: 162
@theonethatprotectsyoufromt9271
@theonethatprotectsyoufromt9271 6 жыл бұрын
Great video, thanks! I'd love to see docker-compose tutorial as a follow-up video.
@niclaskron3384
@niclaskron3384 6 жыл бұрын
I would like to interject a bit at 10:35 you say Docker is a virtualized environment. But Docker is not virtualization. Its a process isolation tool built ontop of the linux kernel cgroups (lxc) which is also why there is this concept of 1 process per container idea.
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
You are probably right. We use that as a way of thinking about it to explain the concept to a beginner. Though that might not be the best way of explaining to a beginner anyways...
@GifCoDigital
@GifCoDigital 6 жыл бұрын
there are many different types of virtualization and the literal definition is: "In computing, virtualization refers to the act of creating a virtual (rather than actual) version of something, including virtual computer hardware platforms, storage devices, and computer network resources." So yes Docker is a virtualized env.
@arihunta
@arihunta 6 жыл бұрын
This is the big difficulty that I have in understanding Docker. If you're running a Linux distribution on a Windows machine, how is it different form running a VM? It has its own file system, its own ports? Or is it more something like how Cygwin works? What is "process isolation"?
@arihunta
@arihunta 6 жыл бұрын
Thanks *so* much for the detailed reply! I don't know how I missed that SO question in my Googling, but that helps a lot! I'll definitely read further.
@krish224488
@krish224488 5 жыл бұрын
Good point. If you are interested here is a deeply technical explanation of what docker is and how are they different for Virtual Machines.. kzbin.info/www/bejne/ZonFZWVnYp52itE
@anythingforweb
@anythingforweb 6 жыл бұрын
Very nice video! I'd like to see this how you'll work in development (webpack, express, nodemon, hot reload) and deployed this to a proper server (online, minified, gzip, etc) but maybe it will take a lot more time.
@fvgoya
@fvgoya 6 жыл бұрын
Same here!!!
@travholt
@travholt 6 жыл бұрын
I second this! How does one do local development with Docker (and git) and then deploy to a (running) live server? How do you deal with local test database but then deploy to live server with production database? Etc.
@voigtan
@voigtan 6 жыл бұрын
I'm doing this what I think is a very local development environment with the help with docker, mostly node stuff with debugging and nodemon restart on local file changes
@sergioangel8362
@sergioangel8362 6 жыл бұрын
Gentlemen you're both great. Love the interactions displayed. Funny yet genuine. Keep up the good work guys!
@blbnslks
@blbnslks 6 жыл бұрын
For someone who never touched docker this video is informative and very understandable. When I first heard about docker, the thing people mentioned the most about, is that it lets you have multiple containers of the same thing, so when something crashes it just automatically runs on different container and prevents your whole app from crashing.
@webgeek2021
@webgeek2021 6 жыл бұрын
I work in a company and sometimes I hear this word "docker" but never understood. Today got a clear idea about how Docker works and will be excited to use in my future projects. Thanks, DevTips, A Big thumbs up!
@GifCoDigital
@GifCoDigital 6 жыл бұрын
I shit you not as I woke up this morning I saw another article on Docker and decided today was the day to learn it. Was stoked af to see this pop up minutes later!!!
@freecodecamp
@freecodecamp 6 жыл бұрын
It's alway helpful to dock my eyes to your videos.
@nicholasarthur5525
@nicholasarthur5525 3 жыл бұрын
you all probably dont care but does someone know of a trick to get back into an instagram account..? I stupidly lost my password. I love any tips you can give me.
@angelokaiden7196
@angelokaiden7196 3 жыл бұрын
@Nicholas Arthur Instablaster :)
@nicholasarthur5525
@nicholasarthur5525 3 жыл бұрын
@Angelo Kaiden I really appreciate your reply. I got to the site through google and I'm in the hacking process now. Takes a while so I will get back to you later with my results.
@nicholasarthur5525
@nicholasarthur5525 3 жыл бұрын
@Angelo Kaiden it worked and I actually got access to my account again. I am so happy! Thank you so much you saved my account!
@angelokaiden7196
@angelokaiden7196 3 жыл бұрын
@Nicholas Arthur you are welcome =)
@mfilipe77
@mfilipe77 6 жыл бұрын
As for the internet comment comparing the Internet speeds to Europe, Yes I agree. I am Portuguese and live in NY just about 30 minutes out of NYC and I agree with you. I feel as the large companies are created here but Europe is so much more advanced in everything I witnessed. I was in little Portugal this summer into Autumn for 7 weeks and boy I felt the difference in everything, I felt as I returned to the past! Talking about back to the Future, when I was in Europe haha. Hope you had a good time in NY.
@qwarlockz8017
@qwarlockz8017 6 жыл бұрын
Thanks guys. This was REALLY good. I have gone through docker and played with it but watching you guys hack through it was really useful. It really helped a lot. You guys ROCK as always!
@stsbmu7169
@stsbmu7169 5 жыл бұрын
Very helping and not boring funny video. Thanks a lot!
@gustoxt1193
@gustoxt1193 6 жыл бұрын
GraphQL seems to be the next coolest thing. It'd be great to see a video on it!
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Cool! Check out this video on Fun Fun Function! kzbin.info/www/bejne/onKtiHt-it9rlZo
@marcustulliuscicero9512
@marcustulliuscicero9512 6 жыл бұрын
check out andrew mead's course
@thmater-x9786
@thmater-x9786 6 жыл бұрын
Docker + DataBase in next the next Video , and thank you for this great explanation and great video
@arturhavrylov
@arturhavrylov 6 жыл бұрын
Very good type of video tutorial! When one teaches and another guy is trying to understand how it works!s
@setsuna8117
@setsuna8117 5 жыл бұрын
Love this, same process that i go through. some frustrating moments but it's fun doing new stuffs like this. And as an IT, you'll be doing a lot of new stuffs in the course of your career as innovation never stops.
@axMf3qTI
@axMf3qTI 6 жыл бұрын
Love these videos because the struggle is real and often I feel the same pain when trying something new.
@pebre79
@pebre79 6 жыл бұрын
Basically, Docker is version control for runtime environments. You can run 'docker tag myuserid:myvernumber' then 'docker push'. Now you have committed and pushed an entire runtime environment to docker hub (or your own deployed registry if you want). There i saved you hours trying to understand it :)
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
Correction: Only saved 50 minutes 42 seconds, that's 0.845 hour saved.
@pebre79
@pebre79 6 жыл бұрын
DevTips :p
@jonathancunanan2490
@jonathancunanan2490 6 жыл бұрын
Nice Video! It's a good intro to docker with a mix of live coding. Live coding makes it suspense (to fail) and exciting =))
@JonatanKapps89
@JonatanKapps89 6 жыл бұрын
This is the best developers channel on youtube, since Travis age! lol Please make a video about express! I have a development course in Brasil, and I always recommend your videos to my students!
@ulissemini5492
@ulissemini5492 6 жыл бұрын
11:18 man yeah its so hard to install stuff! *casually runs sudo apt install docker* *it works*
@jibinkoshy2739
@jibinkoshy2739 6 жыл бұрын
Superb video. Please include more tutorials on Docker.
@jacksonlenhartmusic
@jacksonlenhartmusic 6 жыл бұрын
More episodes on Docker please! I am not familiar with it so I am unsure what a good next step would be, but I'm fairly certain I would enjoy a video about it!
@froggerabc
@froggerabc 6 жыл бұрын
Great video. Thanks.
@noaimiii
@noaimiii 6 жыл бұрын
Love the video! Tip: if you guys are using discord, you can turn on priority speaking so that no one overspeaks / speaks over the other. It would still be possible but it won’t affect the video so you can keep on talking without the breaks.
@AbhishekNigam
@AbhishekNigam 6 жыл бұрын
Thanks for this type of videos :) I love it
@haydermabood
@haydermabood 6 жыл бұрын
An episode or even a series about NestJS would be wonderful!
@alexjin5232
@alexjin5232 6 жыл бұрын
Haha I love this video format for rough learning on new tools. Definitely ‘got’ Docker for the first time. Also watching two devs go through the inevitable head scratching and frustration together was weirdly satisfying 😂
@Soundtech98
@Soundtech98 6 жыл бұрын
Always wanted to start learning docker but have been putting it off for "some day". Thanks for resparking that interest. I am absolutely on board with the idea of separating concerns / requirements and would love to see your attempt at a 3 tier architecture (Front-end > API > Database) to understand how you enforce the routing so that only API can talk with the DB. There are so many development videos out there, why not do a little about real deployment (perhaps with docker), prepping for deployment, best practices, bundling.. just some ideas, keep it up!!
@chmoxster
@chmoxster 6 жыл бұрын
Thank you ! quick tip on mac you may press ctrl+l to clear your terminal :)
@GiovanniRavalico
@GiovanniRavalico 6 жыл бұрын
I'd love to see Koa!
@DannyvanGeel
@DannyvanGeel 6 жыл бұрын
Great video guys. As for my 50 cts I think it would be cleaner to ditch the .dockerignore and copy from a source folder: COPY ./src .
@creativemember
@creativemember 3 жыл бұрын
It's kinda funny to see that you had exactly the same problems with understanding Docker as I had when I first heard of it, e.g. not fully getting what is the difference between image and container, calling Docker a virtual machine (which is not true, but makes it easier to grasp the main idea). I guess that the Docker can be really confusing at the beginning and it's somehow comforting that others had similar doubts.
@karl42-73
@karl42-73 6 жыл бұрын
Nice video indeed! Not that I fully understood everything in detail lol but a good start for sure. I would love to see how to use Docker on bitbucket (or other git hoster), having only the sources in repo, build dist with docker and deploy to live server via ssh. Go on trying, failing, learning, succeeding and making us curious :) - love you guys, especially your videos ;)
@naansequitur
@naansequitur 6 жыл бұрын
Loving these vids, so much more relaxing watching you two tinker with a technology than doing it myself! Could you do one on writing a tiny Lambda function, maybe as a reaction to a form submission? 😊
@naim1212
@naim1212 6 жыл бұрын
9:35 maybe koa.js? some people prefer using koa instead of express. a video about it would be nice... and many thanks for great contents...
@JustisZley
@JustisZley 6 жыл бұрын
But how to go about that thing when you click the link which leads you to one port, when locally this all represented on another?
@richardtenney3417
@richardtenney3417 6 жыл бұрын
Wow...high speed. Will watch again. Two thoughts: 1) would like to use docker to bundle up an IoT project that makes use of Node-RED, so if you're casting about for something to use as an example, I'm suggesting Node-RED. 2) From what I've read, Docker doesn't run on current Windows machines that have VirtualBox -- something about a Hyper-V conflict. Any thoughts you might have about this (including "no, you've got that wrong; it does work") would be appreciated.
@nicxes1074
@nicxes1074 6 жыл бұрын
This is the best way to learn for me.
@shlomilachmish
@shlomilachmish 6 жыл бұрын
Great stuff, now I know that Docker is not black magic 😉 Would be great if you can cover Kubernetes as it seems to become the standard way to manage containers
@suckerr70
@suckerr70 6 жыл бұрын
Very sweet vid! I'd like to see this woking with mutilpe services talking to each other! Keep it up guys
@_DeProgrammer
@_DeProgrammer 6 жыл бұрын
You wanted a cool new thing? you should try server-side swift. Kitura is very nice.
@sitaruandrei7436
@sitaruandrei7436 6 жыл бұрын
Fastify is the new cool NodeJS framework that you could use instead express.
@MrRiesable
@MrRiesable 6 жыл бұрын
You should have a look at the node package "@zeit/ncc". This makes it possible to pack an application into a single file, similar to Webpack. This saves the complete npm install step for the docker build process.
@xfabiosoft
@xfabiosoft 6 жыл бұрын
Can you explain how two containers can interact each other? For example a node app and a mongo database? Thanks
@LazyGod840
@LazyGod840 6 жыл бұрын
For that, you need docker-compose. You will find good tutorials for this, i managed to get it working just fine. The only thing i got stuck on was: when you want to access container named mydatabase port 123 in compose from other container in the same compose file, you just write mydatabase:123 as url. Hopefully it will make sense after reading any guide.
@ljuglampa
@ljuglampa 6 жыл бұрын
I love the frustration of things just taking a lot of time to get running. That's development and is just something you have to deal with. It's a pain tho :P
@willplaysrhythmgames
@willplaysrhythmgames 6 жыл бұрын
This video was great for the initial first steps! I also would like to see server side rendering connected to a database of sorts then using docker with an online web service. I don't have a lot of deployment experience besides static gh-pages + buying a domain to connect to that and would love to learn more.
@Yoieh
@Yoieh 6 жыл бұрын
I have been using docker containers for about 3 years now and I love them. But the thing I never could wrap my head around was that everybody was always talking about how good docker was to scale your applications "side ways" when build "micro services". I was thinking clustering with containers? You could have a cluster of 100 node containers running the same node application and later add 100 more and so on. But you would still need some sort of manager/load balancer to route traffic to each container? Would you put up a routing container to still be able to call it a micro service? What I'm trying to say is that I was never able to wrap my head around how to scale sideways and networking with containers without a basic structure with just one container for each service such as just "webapp->api->database"
@andersryanc
@andersryanc 6 жыл бұрын
Checkout Kubernetes
@Yoieh
@Yoieh 6 жыл бұрын
@@andersryanc then its not realy the docker containers that is awsome. You still need to configure a bigger system to be able to scale an aplication properly an you are tied to yet an other system and you added one more layer of software to your aplication.
@bigexpectation
@bigexpectation 6 жыл бұрын
Thank you for the introduction. As a follow-up, I would be interested to hear what you think about dokku. It works great as a PaaS (I used it in production) but it might have some downsides regarding control and performance. Would love to see some exploration and explanation from you!
@nendo502
@nendo502 6 жыл бұрын
just learn about kitematic and ghost from this video, which are fancy alternative to docker hub & wordpress! very helpful! !
@nendo502
@nendo502 6 жыл бұрын
and .dmg is just a stupid acronym of disk image 🤣
@samw1red805
@samw1red805 6 жыл бұрын
Isn't kitematic legacy now?
@curt1s19
@curt1s19 6 жыл бұрын
Guys, for those who use linux for desktop this install operation, with docker engine and docker-compose is kind of few cli utilities for seconds, not the 0.5 Gb dmg image, and it's working even faster than on a Mac, and without separate virtualbox instance or in other words, natively, so for web developers on linux there is just no other so great option to develop and test apps inside different environments, php and node versions, apache and nginx servers, without installing and configuring all that software every time, also you can just put a small configuration yaml file of your Docker environment into your git repo and share it with others, so they just run it and continue to work, that's brilliant! Add to this, that every cloud provider, like DO, Google, Amazon, all use docker-based things for CI/CD and you have another step, a deployment, and it's consists of your docker configuration file plus steps to reproduce, like execute it, and put there code from app repo, then run tests and make a badge, that all of them are successful, so you have automation!
@micoberss5579
@micoberss5579 6 жыл бұрын
Try FASTIFY, a nodeJS backend framework. There was a presentation of it on NordicJS
@NeoChromer
@NeoChromer 6 жыл бұрын
How to do development with docker? How do I change code and then deploy? Do i need to make a new image everytime i do code changes ?
@karianpour
@karianpour 6 жыл бұрын
Another benefit of Docker having on local machine is that you can easily stop the services or get rid of them when ever we want.
@Fellc0de
@Fellc0de 6 жыл бұрын
Awesome Video, Though there is one thing i cant see right now. Lets stay you are developing some basic Backend with for example express. You set up some Basic routes and you are running it within docker. Do i need to rebuild and restart the whole image and container if i need to add some Code to the Backend, ie routes or packages? Or is there a kind of hot deployment/rebuild source only possibility?
@DannyvanGeel
@DannyvanGeel 6 жыл бұрын
The port mapping as shown in the video is also applicable to folders, effectively making the container run code straight from your local machine. These are called volumes in Dockerworld. As for restarting, you could use nodemon for example which will restart your app when it detects file changes. No image rebuilds or container restarts required.
@Fellc0de
@Fellc0de 6 жыл бұрын
Sounds awesome! Is this an actual thing or more of a "hacky" approach to solve this?
@DannyvanGeel
@DannyvanGeel 6 жыл бұрын
@@Fellc0de The possibilities are endless but I guess this is a typical development setup. Of course you would remove the volume and nodemon and package your files within the image when you're ready to deploy for production. Actually volumes are essential for persisting data as everything generated within the container will be lost when it is deleted.
@shoaibanwar1
@shoaibanwar1 6 жыл бұрын
Thank you so much for this awesome video. I am facing an issue though, everything works fine but when I connect to vpn the docker is unable to access the directory(having code) on my windows.
@DanielWeikert
@DanielWeikert 6 жыл бұрын
Great video.Thanks so much. Now we created a dockerfile based on our code which can then be shared correct? Could you please extend this and show how we can run several docker images and connect them like your example with the database. Do they interact via ports? How does this work? Sorry total neebie to that.
@paulosandsten983
@paulosandsten983 5 жыл бұрын
Working with Docker is more or less "de Facto" in Silicon Valley. Docker is great as you can use it on any machine. It makes VM:s obsolete for lean development and devOps. Docker and docker-compose changed my developer life.
6 жыл бұрын
Just one thing if you are a Linux user you don't need to have a docker account in order to install the docker-ce version.
@md2k6
@md2k6 6 жыл бұрын
I would love to learn how to deploy to AWS or some cloud service using Docker.
@oguzhan2393
@oguzhan2393 6 жыл бұрын
Can you do a video about authorization login page frontend and backend :)
@ctfrancia
@ctfrancia 6 жыл бұрын
Koa is amazing!!
@elyob
@elyob 6 жыл бұрын
What GUI were you using here?
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
What you see is Visual Studio Code and Kitematic mostly.
@brianhogg358
@brianhogg358 6 жыл бұрын
I might’ve missed it, but after you build the docker image, can you keep doing dev work on it? Is it editable? Or do you need to rebuild all the time?
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
You rebuild it - think of it as the compiled artifact that comes from the Dockerfile.
@NWCalvank
@NWCalvank 6 жыл бұрын
I'd just like to clarify something.. You can't edit the image itself, but you can edit any volume-mounted files and see those changes reflected in a running container. An example of the dev workflow (with docker-compose) might be to build an image from a base image (such as FROM node:11), copy your dependency description (ie. package*.json) & install them, then volume-mount your app's /src files to the container. In this way, the image gets built without your src files. They, instead, get stuffed into the container once the container is spun up. If you edit your src files on the host, you'll see the changes reflected in the container without having to rebuild :)
@gandlaf22
@gandlaf22 6 жыл бұрын
Great video! Well explained. Why are there two COPY statements? Won't "COPY . ." also copy everything included in "COPY package*.json". Why can't we just first do "COPY . ." then "RUN npm install". Also what is the difference between "RUN npm install" and "CMD ["npm", "start"]. Why can't we just do "RUN npm start" or "CMD ["npm", "install"]?
@bmitch3020
@bmitch3020 6 жыл бұрын
You can do a single copy command, but then you lose some build caching features of docker. By splitting the lines, docker reuses the build cache of the package.json and npm install as long as the package.json file doesn't change. If you make it one copy command, any code change reruns the copy and npm install on every build command.
@moulcode
@moulcode 5 жыл бұрын
I really enjoy the show I will so glad if u make another video with a real server, not in the localhost thanks.
@harmeat
@harmeat 6 жыл бұрын
superb vid once again. how about video on AMP?
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
That would be awesome. AMP is pretty powerful nowadays. And also discussion on the drawbacks of giving away your content etc.
@harmeat
@harmeat 6 жыл бұрын
I didn't know about that. Will Google make it one of key (or mandatory) protocol for improving ranking?
@webnostix5256
@webnostix5256 6 жыл бұрын
What about using X11 forwarding from docker containers to run gui apps inside/outside/servedby them - would that be possible?
@jwkranenburg
@jwkranenburg 6 жыл бұрын
Docker is mostly used for (web) services. Not software applications, unless they use a web service. So it doesn't really give you a GUI as such, because it runs a service. The HTML output you see from a web application is viewable through a browser, but it doesn't run the browser in the container itself. So a similar comparison could be made with software applications. For that you would need a Virtual Machine.
@babylove7566
@babylove7566 6 жыл бұрын
What about hot reloading while development?
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
It's not really relevant here. When developing, you would run the web environment normally and use docker for all the dependent services, such as databases, graphql servers etc.
@flipperiflop
@flipperiflop 6 жыл бұрын
I would really appreciate seeing a more ""complete" docker setup, with editing the code, persistant folder/whatever - just to get an idea of how things look like on that side
@nhulongctk10
@nhulongctk10 6 жыл бұрын
haha. very very useful. dmg stands for damage.
@watching4410
@watching4410 6 жыл бұрын
Gatsby! - static page generator... (since you were doing web scraping can talk about how Gatsby websites are great for scrapers.)
@djsamke384
@djsamke384 6 жыл бұрын
Guys what happens when you add a node module, do you have to run that 7-step build again? And if so, and you uninstalled a few dependencies from the previous build and replaced it with other modules, is it going to reinstall all the dependencies or will it make changes to your node modules based on the new state of the package.json?
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
You're adding a node module, that means that the intermediary steps/containers of *RUN npm install* has to redo itself. The others, such as loading Debian with *FROM node:8* is still cached and can be reused. But yes, you have to run *docker build* again.
@djsamke384
@djsamke384 6 жыл бұрын
Thank you...
@casperengelmann4575
@casperengelmann4575 6 жыл бұрын
I found AdonisJs and used it for a chat app. Probably not the best use case. It's literally a clone of Laravel written in JS, using classes like Laravel does. Even the folder structure is pretty much the same. I'd love to see how you would go about using it for something, anything!
@douglasbrandao391
@douglasbrandao391 6 жыл бұрын
HapiJs is a awesome webserver freamework!
@NdamuleloNemakh
@NdamuleloNemakh 6 жыл бұрын
nice one
@flat9safety
@flat9safety 6 жыл бұрын
Ok. This is great. This is the closest I have gotten to understanding how/why to use docker. But I am left with two questions: 1. How do you deal with kernal-level updates? So like... Say a docker image is for 16.04, but you are running docker on 18.04... How do I make sure that that 16.04 image is updated/secure? Or since it's in a container, is it only necc to keep the 18.04 image updated? Which leads me to two.. 2. Is the point of a docker image to 'set it and forget it' ... so like... you don't ssh into a docker image and do stuff like you would a normal VM. I use virtual box/vagrant for development on my windows host, but it seems like for dev, this is the better option (since I can log in, do system stuff, etc...) is this correct? I can't figure out where the line is between dev/prod docker/vms...
@OfficialDevTips
@OfficialDevTips 6 жыл бұрын
1. I'm not quite sure what you mean, if a docker image us based on 16.04, it runs 16.04 in the virtual environment. Docker is an environment for virtual linux environments, it doesn't have a single version of linux that it runs. As for keeping updated, you update the Dockerfiles for your services and re-deploy. You don't keep it auto-updating or stuff like that because then if it updates and things break, you have no idea what happened or what state the instance is in, which is the point of docker. There are generally various handy tags provided by the vendors - you can see the tags for Ubuntu here: hub.docker.com/_/ubuntu 2. You can set up SSH so that you can jump in an inspect a Docker instance, which might be handy, but you don't make changes to the instance - if you want to alter the state of the instance, you change the dockerfile and redeploy so that everyone using the image can be sure that what the hell is going on. It's the same principle of how you don't jump jump into a production service and change the script files there, because nobody would know the discrepancies between what was on the server and what was in version control.
@makhdv
@makhdv 6 жыл бұрын
1. Due to similar to lxc concept. Docker inherits Linux kernel of host machine. So you may need to update host machine with docker. And docker is known to have sec issues, even without privileged mode, which can be fully mitigated. In prod u may have hundreds of virtual machines and thousands of containers. Deployment sw help to orchestrate the zoo with good design in zero down time. 2. You are free to update container in dev. There is important part - volumes. Which allow you to start/stop container keeping the data (internal volumes). And may allow you to destroy container and start new (explicit volumes). In dev, when I work with non-compile languages I mount sources directly into container. And changing source code have immediate feedback on GUI. Without need to setup dirty environment.
@yavorstoychev4056
@yavorstoychev4056 6 жыл бұрын
@MPJ, about a "cool new thing", I know that you don't like OO and TS, but check nestjs out. It's actually express, but is kinda like angular. It's a good enterprise solution for JavaScirpt servers
@АлексейСироткин-в3к
@АлексейСироткин-в3к 5 жыл бұрын
Thanks for the video! You definitely should try nestjs.com/ instead of express next time. It`s a great new framework for node js
@RobertBMenke
@RobertBMenke 6 жыл бұрын
nest.js is a cool framework if you're interested in checking it out. Used it on a work project recently and enjoyed it.
@canofsteam
@canofsteam 6 жыл бұрын
Ruby on Rails is my go to framework for getting a basic app up and running in a few seconds these days.
@abbyck
@abbyck 6 жыл бұрын
Gooood
@nikicamaksimovski9964
@nikicamaksimovski9964 6 жыл бұрын
The tool for creating a package.json file 😱😱😱
@MichaelRyanCaputo
@MichaelRyanCaputo 6 жыл бұрын
Cool new thing (old thing): hapi.js (alternative to Express)
@zebnat
@zebnat 6 жыл бұрын
Before docker, your company could also setup a mirror production machine: same web server, same cgi version, same configurations, same db, same everything. Instead of you having the database installed locally, your team just used that mirror machine to see the changes. When you made changes, you just uploaded them with sftp using your IDE and then just F5, voila, no docker needed. To make things even easier, you could use the same domain name as the production website, just changing your hosts locally by pointing that domain to the mirror IP instead of using the DNS ip. The downsides of this, of course were: - If Internet turned off, "unable" to work (never happened). - 200ms delay because the upload of changes (not a problem). - Multiple developers required multiple mirror IP (extra IP costs only 1$ for a company) - Configuring the webserver of mirror with the multiple IPs (10 minutes of nginx configs once in a while) - If you did heavy DB changes (not often), you needed to create your own db in the mirror server, then change your dbname in your project config temporally, or the ENV variable.- maintain the mirror machine to be the same as the production machine (version of services etc)
@lucasteles42
@lucasteles42 6 жыл бұрын
Nice video! But Docker for self, is not a VM, It runs an application layer on a shared linux kernel, the cost of run an image is the same of a simple process... when you are running in Linux... Because of that, when you run docker on Mac or Windows you need a VM with a minimum Linux Kernel
@mmahgoub
@mmahgoub 6 жыл бұрын
Docker compose next time and use a Windows 10 Home so you can see what we are dealing with
@paulrdrs
@paulrdrs 6 жыл бұрын
I think you will need Windows 10 Professional to run it
@mmahgoub
@mmahgoub 6 жыл бұрын
@@paulrdrs Thant's the point! you need to run Docker toolbox where nothing works as expected!
@norboost
@norboost 6 жыл бұрын
I think that someone should look into alpine images ^^
@TaaviJuursalu
@TaaviJuursalu 6 жыл бұрын
Check out hapi.js instead of express
@llebkered
@llebkered 6 жыл бұрын
If you want bad broadband, come to Australia. The government started build a network that originally had fibre going to 93% of homes and businesses. A new government came to power just as the build was starting to ramp up. They stopped the FTTP rollout and replaced it with FTTN & HFC. The tech community warned them it would be a disaster. It's a $50 billion dollar disaster.
@JonAthan-ln2wn
@JonAthan-ln2wn 6 жыл бұрын
Instead of express try koa next time! ❤️
@pascovicidinmoscova
@pascovicidinmoscova 6 жыл бұрын
I for 1 would watch a practical use case From this vid: IDKMaybe this helps someone, this is how I write things down _DOCKERFILE[BUNDLE_INSTRUCTIONS, COMPILES_CODE] _CLI[DOCKER_BUILD]=>DOCKER_ENGINE=>DOCKER_IMAGE=> _CLI[DOCKER_RUN]=>DOCKER_CONTAINER _EACH[DOCKER_CONTAINER]=HAS _OS _IMAGES---PROGRAM_LANG/DB/ETC. _CODE _DEPENDENCIES
@lucienperouze
@lucienperouze 6 жыл бұрын
Check out Koa : koajs.com/ . It's made by the same team. It's basically an asynchronous express. They changed the architecture of express keeping all the good stuff but now you are building async middleware that await each other allowing you to exploit full capacities of node multi process / clusters. The way they talk about it, it seems that it should have been the evolution of express but would have deprecated the entire framework so they had to create a new one. I'm using it now and I don't see any reason to go back to express once you're confident with it. The only problem is that for the moment the community is not that big and many other tools rely on express, sometimes you have to trick a little bit to bundle express tools to it but it is really easy and I guess the community will grow. I would love to see a video of it if you are interrested :)
@danko95bgd
@danko95bgd 6 жыл бұрын
Was just thinking about using ghost for some basic websites instead of shitty wordpress :d
@jonathanbakebwa2292
@jonathanbakebwa2292 6 жыл бұрын
dmg is disk image
@ljuglampa
@ljuglampa 6 жыл бұрын
I know you don't really like type systems Mattias, but the next big thing will be TypeScript taking over as the standard for creating JS apps. You should probably just embrace it and do some videos of it :) Also React hooks of course, even tho everybody is doing videos/posts of it now...
@benfurstenwerth
@benfurstenwerth 6 жыл бұрын
Being adverse to tooling, you should use touch instead of creating the Dockerfile in your editor. :) Too much gooey
@dustinpoissant
@dustinpoissant 6 жыл бұрын
My work makes us use something called vagrant. It's just like docker but sucks. Even the firm we work with in India use docker. I wish my work would use docker instead of vagrant.
@nathsimpson
@nathsimpson 6 жыл бұрын
“The US has the worst internet” You should come to Australia 🇦🇺
@nataliavelazquez6043
@nataliavelazquez6043 6 жыл бұрын
Ohh MPJ, I think I have a crush on you...
@rose123998
@rose123998 6 жыл бұрын
what about Koajs instead of express
Trying Kubernetes 📦 for the First Time
52:14
DevTips
Рет қаралды 21 М.
Docker, FROM scratch - Aaron Powell
59:31
NDC Conferences
Рет қаралды 138 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Learn Docker in 12 Minutes 🐳
12:01
Jake Wright
Рет қаралды 2,1 МЛН
7 Amazing Developer Tools that you're not using yet
6:27
Fireship
Рет қаралды 1,9 МЛН
Introduction to Microservices, Docker, and Kubernetes
55:08
James Quigley
Рет қаралды 1,6 МЛН
Exploring Docker [2] - Docker Compose With Node & MongoDB
26:47
Traversy Media
Рет қаралды 231 М.
Teaching CSS to a Coder 🙀 (How to Lazy Load Images)
25:04