hands-on lab

Containerizing Go Applications with Docker: Basic

Beginner
1h
255
4.4/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Lab description

This lab is based around the following scenario. You are creating a small command line utility for yourself using the Go programming language. After creating it you decide you would like to contribute it to the open source community, with Docker being an option. You will create a Docker image for your newly programmed command line utility. This lab will provide you with a basic understanding of containerizing simple programs written in Go.

Learning Objectives

Upon completion of this lab you will be able to:

  • Create a command line utility using the Go programming language
  • Write a Dockefile with instructions on how to build the Docker image
  • Build the Docker image

Intended Audience

This lab is intended for:

  • Developers, especially those starting out with Go
  • Anyone beginning to leverage containers

Prerequisites

You should possess:

  • Basic understanding of the Go programming language syntax
  • Understanding of the Linux command line
  • Conceptual understanding of Docker

The following content is sufficient to fulfill these prerequisites:

About the author
Avatar
Calculated Systems
Training Provider
Students
31,955
Labs
31
Courses
13
Learning paths
42

Calculated Systems was founded by experts in Hadoop, Google Cloud and AWS. Calculated Systems enables code-free capture, mapping and transformation of data in the cloud based on Apache NiFi, an open source project originally developed within the NSA. Calculated Systems accelerates time to market for new innovations while maintaining data integrity.  With cloud automation tools, deep industry expertise, and experience productionalizing workloads development cycles are cut down to a fraction of their normal time. The ability to quickly develop large scale data ingestion and processing  decreases the risk companies face in long development cycles. Calculated Systems is one of the industry leaders in Big Data transformation and education of these complex technologies.

Covered topics
Lab steps
Connecting to the Go Development Environment
Creating the my-echo Program
Writing a Dockerfile
Building the Image
Running a Container using the Image