Setting Up Azure Connector
Extract the connector package, load its Docker image, and prepare configuration.
Notes: This Connector can run on any operating system that supports docker.
-
Untar connector.tar.gz file.
tar -xvf connector.tar.gzYou get a connector folder that contains the following.
conf.tar file
ext-system-adapter_<tag>.tar file
-
ext-system-adapter_<tag>.tar file is a docker image you can load directly in docker.
Execute the following command to load the docker image.
docker load -i ext-system-adapter_<tag>.tar -
Untar conf.tar file.
tar -xvf conf.tar -
conf folder contains all the configuration files of the connector. conf folder contains adapter-conf.yaml, importCert.sh, and logback.xml files.
-
Update values of the following parameters in the adapter-conf.yaml file in the conf folder.
hibernate.connection.username, hibernate.connection.password, hibernate.connection.urlFor Example:
hibernate.connection.username: "appsonedb" hibernate.connection.password: "xxxx" hibernate.connection.url: "jdbc:mysql://<DB server IP>:<DB port>/dataadapter_azure" -
Create an Azure Connector directory inside the centralized_logs directory.
-
Execute the following command to create the container:
docker run -t -d --network="<docker network>" --name="<container name>" --add-host=grpc.example:<ip address of grpc endpoint> --add- host=haproxy.example:<ip address of haproxy endpoint> -v <path>/connector/conf/:<path>/ext-system-adapter/conf/:rw -v <path>/connector/logs/:<path>/ext-system-adapter/logs/:rw ext- system-adapter:<tag>Note: <docker network> is optional. It is required only if you need the container within a docker network. Connector/conf/:<path>: Provide the path to the extracted build directory. Logs/:<path>: Provide the path where centralized logs are stored. <Tag>: To get the tag, run the below command after uploading the docker image.
docker images -
To start the connector, execute the following command.
docker start <container name> -
To stop the connector, execute the following command.
docker stop <container name>