Skip to content

Commit b08c2ce

Browse files
committed
Using sg for start agent
1 parent 4e35e11 commit b08c2ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deploy-agents.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
21
#!/bin/bash
2+
33
# Multi-agent deployment script
44
# Rule: 2 vCPUs per agent
55
# Automatically detects available CPUs

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ echo "Adding capabilities..."
139139

140140
echo "Configuration complete. Starting agent..."
141141

142-
# Start the agent
142+
# Start the agent with sg to apply dockerhost group and security context
143143
echo "Starting agent ${AZP_AGENT_NAME}-${AGENT_NUMBER}-${INSTANCE_ID}..."
144144
cd "$INSTALL_FOLDER/$AGENT_NUMBER"
145145
sg dockerhost -c "./run.sh" &

0 commit comments

Comments
 (0)