如何在 Windows 容器中运行自承载集成运行时How to run Self-Hosted Integration Runtime in Windows container

适用于: Azure 数据工厂 Azure Synapse Analytics(预览版)

本文将介绍如何在 Windows 容器中运行自承载集成运行时。This article will explain how to run Self-Hosted Integration Runtime in Windows container. Azure 数据工厂当前提供对自承载集成运行时的官方 Windows 容器支持。Azure Data Factory are delivering the official windows container support of Self-Hosted Integration Runtime. 你可以下载 docker 生成源代码,并将生成和运行流程整合到自己的持续交付管道中。You can download the docker build source code and combine the building and running process in your own continuous delivery pipeline.

先决条件Prerequisites

入门Get started

  1. 安装 Docker 并启用 Windows 容器Install Docker and enable Windows Container
  2. https://github.com/Azure/Azure-Data-Factory-Integration-Runtime-in-Windows-Container 下载源代码Download the source code from https://github.com/Azure/Azure-Data-Factory-Integration-Runtime-in-Windows-Container
  3. 将最新版的 SHIR 下载到“SHIR”文件夹Download the latest version SHIR in 'SHIR' folder
  4. 在 shell 中打开文件夹:Open your folder in the shell:
cd "yourFolderPath"
  1. 生成 windows docker 映像:Build the windows docker image:
docker build . -t "yourDockerImageName" 
  1. 运行 docker 容器:Run docker container:
docker run -d -e NODE_NAME="irNodeName" -e AUTH_KEY="IR_AUTHENTICATION_KEY" -e ENABLE_HA=true HA_PORT=8060 "yourDockerImageName"    

备注

此命令必须使用 AUTH_KEY。AUTH_KEY is mandatory for this command. NODE_NAME、ENABLE_HA 和 HA_PORT 是可选项。NODE_NAME, ENABLE_HA and HA_PORT are optional. 如果未设置值,该命令将使用默认值。If you don't set the value, the command will use default values. ENABLE_HA 的默认值为 false,HA_PORT 的默认值为 8060。The default value of ENABLE_HA is false and HA_PORT is 8060.

容器运行状况检查Container health check

120 秒的启动时间结束后,运行状况检查程序将每 30 秒运行一次。After 120 seconds startup period, the health checker will run periodically every 30 seconds. 它将向容器引擎提供 IR 运行状况。It will provide the IR health status to container engine.

限制Limitations

目前,在 Windows 容器中运行自承载集成运行时时,不支持以下功能:Currently we don't support below features when running Self-Hosted Integration Runtime in Windows container:

  • HTTP 代理HTTP proxy
  • 使用 TLS/SSL 证书的节点间加密通信Encrypted Node-node communication with TLS/SSL certificate
  • 生成和导入备份Generate and import backup
  • 守护程序服务Daemon service
  • 自动更新Auto update

后续步骤Next steps