docs/language/golang/index.md

1.6 KiB
Raw Blame History

description keywords title toc_min toc_max
Containerize Go apps using Docker docker, getting started, go, golang, language, dockerfile What will you learn in this module? 1 2

The Go getting started guide teaches you how to create a containerized Go application using Docker.

Why Go? According to its authors, Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. Whatever are the true reasons behind a wide-scale adoption of Go, it is undeniable that it is a major player in the modern Cloud ecosystem. In fact, Docker, as well as Kubernetes, are written in Go.

Acknowledgment

We'd like to thank Oliver Frolovs{:target="blank" rel="noopener" class=""} for his contribution to the Golang get started guide.

In this guide, youll learn how to:

  • Create a new Dockerfile which contains instructions required to build a Docker image for a simple Go program;
  • Run the newly built image as a container;
  • Set up a local development environment to connect a database to the container;
  • Use Docker Compose to run your Go application and other services it requires;
  • Configure a CI/CD pipeline for your application using GitHub Actions{:target="blank" rel="noopener" class=""}.

After completing the Go getting started modules, you should be able to containerize your own Go application based on the examples and instructions provided in this guide and the resources that it refers to.

Let's get started!

Build your Go image{: .button .outline-btn}