mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Move scripts used by travis jobs under travis folder because when mirroring all scripts folders are excluded
This commit is contained in:
15
travis/scripts/dockerLimitMemory.sh
Normal file
15
travis/scripts/dockerLimitMemory.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -x
|
||||
|
||||
#stop not needed containers
|
||||
docker stop $(docker ps -a | grep '_zeppelin_' | awk '{print $1}')
|
||||
docker stop $(docker ps -a | grep '_sync-service_' | awk '{print $1}')
|
||||
|
||||
shareContainerId=$(docker ps -a | grep '_share_' | awk '{print $1}')
|
||||
if [ -n "$shareContainerId" ]; then
|
||||
docker stop $(docker ps -a | grep '_transform-router_' | awk '{print $1}')
|
||||
docker stop $(docker ps -a | grep '_shared-file-store_' | awk '{print $1}')
|
||||
fi
|
||||
|
||||
# Display containers resources usage
|
||||
docker stats --no-stream
|
Reference in New Issue
Block a user