Cloud native applications are packaged, distributed, and run in containers. Docker is a key container technology. This video shows how a Docker image for a Go microservice is built and distributed.
- [Instructor] This video is about building…Naive Docker images for our little Go Microservice.…So, on this video we're going to take a look…at how to write a Dockerfile for our Go Microservice.…I'm going to show you the basic commands…you need to know to build the Docker image…from this Dockerfile…and then finally we're going to tag and push the image…to Docker Hub.…So, let's get started then.…So, let's open our ID.…
First of all we need to create a file called Dockerfile.…It's a basic text file in the end.…Now, the first line is always the base image…we're going to base this image on,…so we base this image on golang:1.7.4.…The maintainer is basically only some metadata…which tells it that I built this image.…Now with this line I'm going to tell Docker…that when building it should copy the content…of the current directory into a directory…to the Docker image…and into the directory…go/src/github.com/PacktPublishing/Cloud-native-Go/,…so this is where all the files form my local directory…will be copied into the Docker image.…
This course was created and produced by Packt Publishing. We are honored to host this training in our library.
- Implementing Go HTTP Server
- JSON marshalling and unmarshalling of Go structs
- Implementing a simple REST API
- Using Docker workflows and commands
- Building a naïve Docker image
- Running a containerized Go microservice
- Kubernetes architecture and concepts
- Deploying a Go microservice to Kubernetes
- Implementing service descriptors
- Performing rolling updates