Cloud native applications are packaged, distributed, and run in containers. Docker is a key container technology. This video shows how an improved Docker image can be built and how Docker Compose can be used to build and run the image in combination with other services.
- [Instructor] In this final video of this section,…I'm going to show you…how you can write improved Docker images…and how you can use Docker Compose to build…and run those images in addition to other services.…Let's get started.…In this video we're going to take a look at…writing improved Dockerfiles for even smaller images…and then we're going to use Docker Compose…to build and run this image in addition to other services.…
Let's switch to our integrated development environment.…The Dockerfile, all this is, the Dockerfile…we've written so far.…We based it on "golang: 1.7.4-alpine",…we copied the sources over into the image…and we build our microservice within the image.…The result was a quite huge Docker image of 250MB in size.…How can we improve this?…Well, the basic idea being…that we use a different base image,…a smaller base image,…we build the final executable on our development machine…and we simply copy this executable…into the image during build time.…
Now, we use a different base image here.…We use alpine, which is nice and small.…
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