官术网_书友最值得收藏!

Build, Run, and Test Your Service Using Docker

Having designed a working RESTful microservice in the previous chapter, we'll see in this chapter how to use it in the Docker way, encapsulating the service into a self-contained container so that it's immutable and can be deployed on its own. This chapter describes very explicitly the dependencies of the service and the ways it can be used. The main way to run a service is to run it as a web server, but other operations are possible, such as running unit tests, generating reports, and others. We'll see also how to deploy the service on your local computer for testing and how to share it through an image repository.

The following topics will be covered in this chapter:

  • Building your service with a Dockerfile
  • Operating with an immutable container
  • Configuring your service
  • Deploying the Docker service locally
  • Pushing your Docker image to a remote registry

By the end of the chapter, you'll know how to operate with Docker, create a basic service, build an image, and run it. You'll also know how to share the image to be run on another computer.

主站蜘蛛池模板: 孟村| 河津市| 三门县| 泾川县| 仁化县| 依安县| 加查县| 永川市| 松阳县| 剑阁县| 建昌县| 游戏| 新闻| 天等县| 安溪县| 洛浦县| 钟山县| 东光县| 昭平县| 敦煌市| 湟中县| 贵溪市| 柳州市| 巴塘县| 湘阴县| 兰西县| 武胜县| 文成县| 库伦旗| 黑河市| 南开区| 乌兰察布市| 大邑县| 惠水县| 黄陵县| 永善县| 肥城市| 民县| 富裕县| 岫岩| 乐安县|