This report shows how Go programmers can build small, efficient containers for their Go code. It explains what's inside a container image and walks you through how to build and run containers for your Go projects.
What you'll learn—and how you can apply it
You'll learn how to containerize the Go code you're working on, with worked examples to show you exactly what to do. You'll see how to build a container from the scratch image, and why that's a good idea for Go code. You'll also learn how to set up port bindings so that the outside work can connect to the code running in your container, and how to pass in configuration environment variables.
This report is for you because…
- You've heard of containers, but you're not sure whether they're right for your project, or how you would use them in your daily workflow.
- We'll assume you're comfortable with the command line
- We're using Go in this lesson but many of the concepts are applicable to other languages as well
Materials or downloads needed in advance
Table of contents
How to Containerize Your Go Code
- Introduction and Motivations
- What Is a Container?
- Bundling Go Code into a Container Image
- Environment Variables and Port Mappings
- Title: How to Containerize Your Go Code
- Release date: April 2017
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491982303
You might also like
Using Containers to Connect Your Go Code to Other Components
Learn how to connect your Go application to containerized components, whether that includes third-party code, such …
Setting up your Go development docker environment
Are you a Go programmer looking to introduce Docker containers into your workflow? In this lesson, …
What's New in Software Architecture: Data Mesh and the AI Revolution with Zhamak Dehghani (Audio)
Join Neal Ford and Zhamak Dehghani for a discussion about the challenges of creating, sharing, and …
Secrets of the Rock Star Programmers: Riding the IT Crest
A-list Programmers Reveal How to Develop Breakout Skills Find out what it takes to push your …