行至水穷处 坐看“云”起时

Cloud Native ADN -> CNadn.Net

How to build nginx plus docker image with controller agent as well

How to build a sidecar nginx plus docker image

Jing Lin@2019.08.23

  • Prepare the Dockerfile and the relevant SSL cert/key

  • The dockerfile like, this file include install controller agent as well.
  • The default nginx configurations in conf.d, enable ssl and http2. Also enable nginx plus self API and dashboard.
  • Build the image. Note: Make sure the host can resolve the CTRL_HOST FQDN. Add it into hosts file or using DNS server to resolve it. The below API_KEY and CTRL_HOST is just sample, pls change to real key

  • Run docker images to verify the image.

  • If you want to use the image on other host, then save and load it

  • If you want to push the image to a repo, pls only push to the private repo. Push to public repo is FORBIDDEN.
点赞

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据