Skip to content

Commit

Permalink
Added agent apply command to agent.sh script (anodot#244)
Browse files Browse the repository at this point in the history
* Added agent apply command to agent.sh script

* Changed apply
  • Loading branch information
AntonZelenin authored Apr 7, 2021
1 parent ff3c1e3 commit 4ce2576
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ elif [[ $1 == 'set-thread-pool-size' ]]; then
exit 1
fi
sed -i '' -E 's/SDC_CONF_RUNNER_THREAD_POOL_SIZE.*/SDC_CONF_RUNNER_THREAD_POOL_SIZE: "'$2'"/' docker-compose.yaml
elif [[ $1 == 'apply' ]]; then
docker exec -i anodot-agent rm -rf /agent-data
docker cp ./agent-data anodot-agent:/agent-data
docker exec -i anodot-agent agent apply -d /agent-data
else
echo "Wrong command supplied. Please use ./agent [install|run|upgrade|set-heap-size|set-thread-pool-size]"
fi

0 comments on commit 4ce2576

Please sign in to comment.