Skip to content

Commit 6ab0e78

Browse files
authored
[INLONG-5466][Docker] Add the ENV for Manager Open API secret config (#5468)
1 parent 78ae5ff commit 6ab0e78

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

inlong-agent/agent-docker/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ docker pull inlong/agent:latest
1010
```
1111
docker run -d --name agent -p 8008:8008 \
1212
-e MANAGER_OPENAPI_IP=manager_opeapi_ip -e DATAPROXY_IP=dataproxy_ip \
13+
-e MANAGER_OPENAPI_AUTH_ID=auth_id -e MANAGER_OPENAPI_AUTH_KEY=auth_key \
1314
-e MANAGER_OPENAPI_PORT=8082 -e DATAPROXY_PORT=46801 inlong/agent
1415
```

inlong-agent/agent-docker/agent-docker.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ audit.proxys=$AUDIT_PROXY_URL
3636
agent.cluster.tag=$CLUSTER_TAG
3737
agent.cluster.name=$CLUSTER_NAME
3838
agent.cluster.inCharges=$CLUSTER_IN_CHARGES
39-
agent.manager.auth.secretId=
40-
agent.manager.auth.secretKey=
39+
agent.manager.auth.secretId=$MANAGER_OPENAPI_AUTH_ID
40+
agent.manager.auth.secretKey=$MANAGER_OPENAPI_AUTH_KEY
4141
EOF
4242
# start
4343
bash +x ${file_path}/bin/agent.sh start

0 commit comments

Comments
 (0)