Docker-izing your Go Applications and Deploying them to DigitalOcean

preview_player
Показать описание

● SUBSCRIBE to see more of my Videos & hit that LIKE button to support the channel!

Docker is a truly excellent bit of tech that allows us to specify the environment in which we want all of our applications to live within a simple `Dockerfile`. This effectively allows for easier collaboration and rids us of the _"it works on my machine"_ problem that is soo prevalent in development teams across the globe.

As such, I felt it would be a great idea to write a tutorial on how you can effectively containerize your Go applications using the Docker containerization technology.

By the end of this tutorial, you should have a good handle on the following:

- The basics of Docker and how it is useful to us developers
- Writing a Simple Dockerfile for your Go applications
- Finally, we'll look at how you can deploy these applications easily to DigitalOcean

Why DigitalOcean? we'll I'm secretly hoping they start sponsoring some of my upcoming video tutorials so that I can start focusing on writing content full time! :D

Рекомендации по теме
Комментарии
Автор

Finally a decent and simple tutorial that does only the basic but does it very well

ashafloki
Автор

Thanks for valuing my time! I'm not even a Go developer but I got enough value from this to solve my problem.

inversemetric
Автор

By far the best docker tutorial overall. Many don't cover how to make it run on a server.

David-mwsd
Автор

Great tutorial. No-nonsense basics par excellence.
Please make one about go modules.

bikhoda
Автор

This is like a combination of all 10 hours of tutorial I wasted my time on in the last 3 days, all condensed into little more than 10 minutes

AphixDev
Автор

Great stuff man, keep up! Can you please make one on Go with GrapQL with authentication/authorization? Would be AWESOME to see that!

Isookov
Автор

You could add multi-staged docker build to reduce the image size drastically.

ravindranathmopparthy
Автор

Thanks dude, you really know your stuff

albinsjolin
Автор

You can push the image to a private repository and then, in your droplet pull it, thank you for the video, it helped me a lot

FernandoJimenez-cdui
Автор

Thank you! How would you add dependencies to the container?

Blixzful
Автор

what's the theme you use for your vscode ?

oussamasethoum
Автор

how does multiple containers communicate when deployed using docker-compose file?

syed_sha_saqlain
Автор

Mate whereabouts in glesga are you fae

serioussounds
Автор

Nice video! Wouldn't it be easier to just put and pull the docker image from git?

joshuasmith
Автор

Can you add this container to a kubernetes cluster ?

joshuam
Автор

and how to use gitlab ci deploy docker go app on server ?

fajara.r
Автор

Wouldn't it be better to upload the image to a Docker Registry and download the image and run it from the droplet instead of downloading the git project and building the image again?

miluna
Автор

Three questions.
1... How could I use a Private Git Repo
2... How could I Branches of Git
3... How could I use continuous integration to submit my gocode, and have it automagically recompile and redeply
Extra Credit...
4... How about compiling to a scratch container?
Great Tutorials...

vincentyoumans
Автор



Everything else was perfect. Thank you for the great starter tutorial!

AndrewElegante
Автор

Qual é esse tema para o vscode - what's this theme in vscode

rafaelcarvalho