Use Docker for Your Golang Projects with Live Reloading

preview_player
Показать описание
Docker + Golang are some of the best pieces of tech anyone can use. In this video I show you how to dockerize your golang project easily with live reloading in this tutorial!

Twitch
I stream live on Twitch every weekend
Join the amazing community on Discord
I post memes and host Twitter Tech Spaces

SUBSCRIBE OR GET LAID OFF
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝

Are you ready to revolutionize your Go development workflow? In this video, we'll show you how to set up Docker with Golang for seamless hot reloading. No more restarting your containers for every code change—watch your Go applications reload instantly!

🔍 What You'll Learn:

Setting up Docker for Go development
Configuring hot reloading for Go applications
Best practices for efficient Go development with Docker
👨‍💻 Who Is This For?

Go developers looking to enhance their productivity
Software engineers interested in Docker
Anyone wanting to streamline their development process

#coding #neovim #typescript ⁠Programming #vim #softwareengineering #codinglife #webdesign #webdevelopment #webdev #javascript #rustlang #rust #twitch #twitchstreamer #programmerhumor #codinghumor #software #softwareengineer #softwaredeveloper #softwaredevelopment #gymbro #gym #programmerhumor
Комментарии
Автор

I hope you enjoy the video! Comment + like and subscribe if you did :)

MelkeyDev
Автор

Instead of mounting a volume, you can now use docker compose watch feature in copy mode to make docker copy files into the container once they are changed.

Gornius
Автор

air is pretty amazing! The fact that you can get live reloading with the logs support makes app building in Go so much fun.

prateekgogia
Автор

I want to see more go content: microservices, observability and many more.

sadhakbj
Автор

Air is okay for basic projects, but for things where you want to run different commands depending on which files change I much prefer cespare/reflex and watchexec/watchexec

kevinryan
Автор

You are the go specialist on my YouTube :)

Alex-bcxe
Автор

It's not the only thing air can do but if you just want to live reload your project, and I mean any project, just use entr. I've never had to use anything else and it works with just about anything.

krullie
Автор

Great video. Wasnt aware that live reloading was also possible with golang. Is there a way to apply this concept with kubernetes?
I have a configuration that requires a connection to a mongodb instance which is only accessible within the cluster. I could port-forward the database everytime i want to test something, but that would kinda defeat the purpose of convinience I think.

ipasha
Автор

I have a question, what's the advantages of running the go project in a docker container instead of just running it locally?

cempack
Автор

Biggest problem with dockerizing Go dev environment is debugging. It gets pretty nasty when you need to make it work.

dyto
Автор

Why not develop using air without docker and dockerize after everything is done?

fikurimax
Автор

I may be the only one but I just don’t understand what docker buys you. Like, what would be the point of dockerizing your project locally? Or on server? It just feels so overkill to me

OhDevBeard
Автор

"HELP ON COBOL AND FEE..."? 🤔

ArturdeSousaRocha
Автор

Every time I install docker it messes up my network.

j.r.r.tolkien
Автор

no views in 1 minute, bros fallen off

khizar
Автор

guys if you have problems with the hot reloading try to add poll = true in the .air.toml after that it worked for me.... (think its some windows bullshit)

ahmo